Function at 0x1400012b0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor esi, esi
mov dword [rsp + 0x5c], esi
mov qword [rsp + 0x60], 0xc
mov r14d, 0xf
mov qword [rsp + 0x68], r14
movsd xmm0, qword [str.password.txt]
movsd qword [rsp + 0x50], xmm0
mov eax, dword [0x140005540]
mov dword [rsp + 0x58], eax
mov byte [rsp + 0x5c], sil
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.140002bd0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
cmp qword [rbp + 0x40], rsi
jne 0x1400013b2
lea rdx, [0x140005548]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e40
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r14
cmova rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.140003370
mov rcx, rax
lea rdx, [0x140003010]
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 edi, [rsi + 1]
jmp 0x1400018f3
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov qword [rsp + 0x48], rsi
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], r14
mov byte [rsp + 0x70], 0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140003530
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x140001482
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x48]
je 0x140001433
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400027f0
add qword [rsp + 0x40], 0x20
jmp 0x140001445
lea r8, [rsp + 0x70]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400036d0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140003530
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x140001412
lea rcx, [rbp - 0x40]
call fcn.140002b10
mov r13d, 2
test rax, rax
jne 0x1400014b1
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
mov edx, r13d
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, [0x140005558]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002e40
mov rcx, rax
lea rdx, [0x140003010]
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]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
cmp rbx, rdi
je 0x140001519
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400014f0
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003370
mov rcx, rax
lea rdx, [0x140003010]
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]
add rbx, 0x20
cmp rbx, rdi
jne 0x1400014e3
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
seta byte [rsp + 0x31]
mov r12, qword [rsp + 0x70]
cmova rbx, r12
movabs rax, 0x7fffffffffffffff
mov rdi, qword [rbp - 0x80]
cmp rdi, rax
ja 0x1400019f3
cmp rdi, 0xf
ja 0x140001576
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], r14
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x70], xmm0
movq r15, xmm0
jmp 0x140001608
mov r14, rdi
or r14, 0xf
cmp r14, rax
jbe 0x1400015b2
mov r14, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003a90
test rax, rax
je 0x14000183f
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x1400015ec
mov eax, 0x16
cmp r14, rax
cmovb r14, rax
lea rcx, [r14 + 1]
cmp rcx, 0x1000
jb 0x1400015da
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400019f9
jmp 0x140001593
test rcx, rcx
je 0x1400015e9
call fcn.140003a90
mov r15, rax
jmp 0x1400015ec
mov r15, rsi
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], r14
lea r8, [rdi + 1]
mov rdx, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
nop
lea rbx, [rbp - 0x70]
cmp r14, 0xf
seta byte [rsp + 0x30]
cmova rbx, r15
lea rcx, [rdi + 1]
call fcn.140003ad4
mov rsi, rax
lea r8, [rdi + 1]
add r8, rbx
sub r8, rbx
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rdx, [0x140005568]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002e40
mov rdx, rsi
mov rcx, rax
call fcn.140002e40
mov rcx, rax
lea rdx, [0x140003010]
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]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rsi + r8], 0
jne 0x140001670
xor r9d, r9d
lea rbx, [0x1400080c0]
mov edi, 1
sub rdi, rbx
sub r13, rbx
mov r10d, 3
sub r10, rbx
mov r11d, 4
sub r11, rbx
nop dword [rax]
nop word [rax + rax]
lea rcx, [r9 + rbx]
xor edx, edx
mov rax, r9
div r8
movzx eax, byte [rdx + rsi]
xor byte [rcx], al
lea rax, [rcx + rdi]
xor edx, edx
div r8
movzx eax, byte [rdx + rsi]
xor byte [rcx + 1], al
lea rax, [rcx + r13]
xor edx, edx
div r8
movzx eax, byte [rdx + rsi]
xor byte [rcx + 2], al
lea rax, [rcx + r10]
xor edx, edx
div r8
movzx eax, byte [rdx + rsi]
xor byte [rcx + 3], al
lea rax, [rcx + r11]
xor edx, edx
div r8
movzx eax, byte [rdx + rsi]
xor byte [rcx + 4], al
add r9, 5
cmp r9, 0x39d
jb 0x1400016b0
lea rdx, [0x140005588]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002e40
xor esi, esi
movzx edi, byte [rsi + rbx]
lea rdx, [0x140005594]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002e40
mov rcx, rax
lea rdx, [0x140001290]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, edi
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___int____ptr64]
inc rsi
cmp rsi, 0x39d
jb 0x140001724
lea rdx, [0x140003010]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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]
mov edx, 0x39e
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
mov rcx, rax
mov edx, 7
nop dword [rax + rax]
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rbx, [rbx + 0x80]
sub rdx, 1
jne 0x1400017a0
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
mov eax, dword [rbx + 0x18]
mov dword [rcx + 0x18], eax
movzx eax, word [rbx + 0x1c]
mov word [rcx + 0x1c], ax
call r8
xor edi, edi
cmp byte [rsp + 0x30], dil
je 0x14000184f
lea rdx, [r14 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140001846
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001846
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140003acc
nop
cmp byte [rsp + 0x31], 0
je 0x14000188f
mov rdx, qword [rbp - 0x78]
inc rdx
mov rax, r12
cmp rdx, 0x1000
jb 0x140001886
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001886
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.140003acc
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400018f3
mov rdx, qword [rsp + 0x40]
call fcn.140003160
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003acc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x140001952
mov rax, qword [rbp - 0x28]
lea rcx, [rbp + 0x30]
cmp qword [rax], rcx
jne 0x140001952
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov rax, qword [rbp - 8]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x10]
mov dword [rax], edx
cmp byte [rbp + 0x3c], 0
je 0x140001961
lea rcx, [rbp - 0x40]
call fcn.140002b10
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400019c1
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003acc
mov eax, edi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140003a70
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400011b0
nop
call fcn.140001110
int3