Function at 0x140001450
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1450]
mov eax, 0x1550
call fcn.140004920
sub rsp, rax
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x1440], rax
xor r12d, r12d
mov dword [rsp + 0x50], r12d
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x60]
call fcn.140002a60
nop
cmp qword [rbp + 0x28], r12
je 0x140001cfb
lea rdx, str._echo_on
lea rcx, [rbp - 0x60]
call fcn.140002f50
mov rcx, rax
lea rdx, [0x140003130]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov ecx, 0x20
call fcn.1400039d0
mov r14, rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], 0x10
mov qword [rbp - 0x70], 0x1f
movups xmm0, xmmword [str.ABCDEF0123456789]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], r12b
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1434], 0xffffffff
mov dword [rbp + 0xb4], eax
mov edx, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0xb4], eax
inc rdx
cmp rdx, 0x270
jb 0x140001530
mov dword [rbp + 0xb0], 0x270
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov rbx, r12
mov qword [rsp + 0x68], rbx
mov edi, 0xf
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x58], bl
mov dword [rsp + 0x50], 1
mov esi, 0x20
nop word [rax + rax]
lea rcx, [rbp + 0xb0]
call fcn.1400037c0
mov eax, eax
shr rax, 0x1c
movzx r9d, byte [rax + r14]
cmp rbx, rdi
jae 0x1400015cf
lea rax, [rbx + 1]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
cmp rdi, 0xf
cmova rax, qword [rsp + 0x58]
mov byte [rax + rbx], r9b
mov byte [rax + rbx + 1], 0
jmp 0x1400015d9
lea rcx, [rsp + 0x58]
call fcn.140003280
sub rsi, 1
je 0x1400015eb
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
jmp 0x140001590
mov edx, 0x20
mov rcx, r14
call fcn.140003a0c
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
sub rax, r8
mov ebx, 0x14
lea r14, str.AMIDEEFIx64.EFI__SU
cmp rax, rbx
jb 0x140001695
lea rax, [r8 + 0x14]
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x58]
cmp rcx, 0xf
cmova rdi, qword [rsp + 0x58]
lea rax, [0x140005564]
cmp rax, rdi
jbe 0x140001658
lea rax, [rdi + r8]
cmp r14, rax
ja 0x140001658
cmp rdi, r14
ja 0x140001650
mov rsi, r12
jmp 0x14000165b
mov rsi, rdi
sub rsi, r14
jmp 0x14000165b
mov rsi, rbx
lea rcx, [rdi + 0x14]
inc r8
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rdi + rsi]
mov r8, rbx
sub r8, rsi
lea rdx, [r14 + 0x14]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x58]
jmp 0x1400016ac
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140003640
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x50], 3
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140003480
lea rdx, [0x140003130]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001755
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001750
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001750
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003a0c
movdqa xmm0, xmmword [0x140005670]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400017a8
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003a0c
lea rcx, [rsp + 0x78]
call fcn.140001290
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 0x14
jb 0x140001843
lea rax, [r8 + 0x14]
mov qword [rdi + 0x10], rax
mov rsi, rdi
cmp rcx, 0xf
jbe 0x1400017dd
mov rsi, qword [rdi]
lea rax, [0x14000557c]
lea r14, str.AMIDEEFIx64.EFI__BS
cmp rax, rsi
jbe 0x14000180b
lea rax, [rsi + r8]
cmp r14, rax
ja 0x14000180b
cmp rsi, r14
ja 0x140001803
mov r15, r12
jmp 0x14000180e
mov r15, rsi
sub r15, r14
jmp 0x14000180e
mov r15, rbx
lea rcx, [rsi + 0x14]
inc r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r15
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + r15]
mov r8, rbx
sub r8, r15
lea rdx, [r14 + 0x14]
add rdx, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140001862
mov qword [rsp + 0x28], rbx
lea r14, str.AMIDEEFIx64.EFI__BS
mov qword [rsp + 0x20], r14
mov rdx, rbx
mov rcx, rdi
call fcn.140003640
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140003480
lea rdx, [0x140003130]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001903
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003a0c
movdqa xmm0, xmmword [0x140005670]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140001955
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001950
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001950
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003a0c
lea rcx, [rsp + 0x78]
call fcn.140001290
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 0x14
jb 0x1400019f0
lea rax, [r8 + 0x14]
mov qword [rdi + 0x10], rax
mov rsi, rdi
cmp rcx, 0xf
jbe 0x14000198a
mov rsi, qword [rdi]
lea rax, [0x140005594]
lea r14, str.AMIDEEFIx64.EFI__SS
cmp rax, rsi
jbe 0x1400019b8
lea rax, [rsi + r8]
cmp r14, rax
ja 0x1400019b8
cmp rsi, r14
ja 0x1400019b0
mov r15, r12
jmp 0x1400019bb
mov r15, rsi
sub r15, r14
jmp 0x1400019bb
mov r15, rbx
lea rcx, [rsi + 0x14]
inc r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r15
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + r15]
mov r8, rbx
sub r8, r15
lea rdx, [r14 + 0x14]
add rdx, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140001a0f
mov qword [rsp + 0x28], rbx
lea r14, str.AMIDEEFIx64.EFI__SS
mov qword [rsp + 0x20], r14
mov rdx, rbx
mov rcx, rdi
call fcn.140003640
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140003480
lea rdx, [0x140003130]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001ab0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001aab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001aab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003a0c
movdqa xmm0, xmmword [0x140005670]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140001b02
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001afd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001afd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003a0c
lea rcx, [rsp + 0x78]
call fcn.140001290
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 0x14
jb 0x140001b9d
lea rax, [r8 + 0x14]
mov qword [rdi + 0x10], rax
mov rsi, rdi
cmp rcx, 0xf
jbe 0x140001b37
mov rsi, qword [rdi]
lea rax, [0x1400055ac]
lea r14, str.AMIDEEFIx64.EFI__CS
cmp rax, rsi
jbe 0x140001b65
lea rax, [rsi + r8]
cmp r14, rax
ja 0x140001b65
cmp rsi, r14
ja 0x140001b5d
mov r15, r12
jmp 0x140001b68
mov r15, rsi
sub r15, r14
jmp 0x140001b68
mov r15, rbx
lea rcx, [rsi + 0x14]
inc r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r15
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + r15]
sub rbx, r15
lea rdx, [r14 + 0x14]
add rdx, r15
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140001bbc
mov qword [rsp + 0x28], rbx
lea r14, str.AMIDEEFIx64.EFI__CS
mov qword [rsp + 0x20], r14
mov rdx, rbx
mov rcx, rdi
call fcn.140003640
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140003480
lea rdx, [0x140003130]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001c5d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003a0c
movdqa xmm0, xmmword [0x140005670]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140001caf
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001caa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001caa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003a0c
lea rdx, [0x1400055b0]
lea rcx, [rbp - 0x60]
call fcn.140002f50
mov rcx, rax
lea rdx, [0x140003130]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rbp - 0x58]
call fcn.140002e90
test rax, rax
jne 0x140001cfb
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x60]
call fcn.140001d40
xor eax, eax
mov rcx, qword [rbp + 0x1440]
xor rcx, rsp
call fcn.1400039b0
lea r11, [rsp + 0x1550]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret