Function at 0x140033c60
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows
Self delete

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 - 0x12c0]
mov eax, 0x13c0
call fcn.140051c10
sub rsp, rax
mov rax, qword [0x14007b040]
xor rax, rsp
mov qword [rbp + 0x12b0], rax
mov edi, ecx
xor r14d, r14d
mov dword [rsp + 0x50], r14d
lea r9, [rbp + 0x2aa]
nop
sub r9, 2
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub di, cx
add di, 0x30
mov word [r9], di
mov edi, edx
test edx, edx
jne 0x140033cb0
xorps xmm0, xmm0
movups xmmword [rbp + 0x200], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x210], xmm1
lea rax, [rbp + 0x2aa]
cmp r9, rax
jne 0x140033d17
movdqa xmm0, xmmword [0x14006ad80]
movdqu xmmword [rbp + 0x210], xmm0
mov word [rbp + 0x200], r14w
jmp 0x140033d33
lea r8, [rbp + 0x2aa]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp + 0x200]
call fcn.1400066a0
mov dword [rsp + 0x50], 6
mov r9d, 0xe
lea r8, str.memory.exe__p
lea rcx, [rbp + 0x200]
call fcn.14001e7c0
xorps xmm0, xmm0
movups xmmword [rbp + 0x220], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x230], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x220], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x230], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov dword [rsp + 0x50], 0xe
mov rdx, qword [rbp + 0x218]
cmp rdx, 7
jbe 0x140033dec
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword ds:[rbp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033de7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140033de7
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140050f60
movdqa xmm0, xmmword [0x14006ad80]
movdqu xmmword [rbp + 0x210], xmm0
mov word [rbp + 0x200], r14w
mov qword [rbp - 0x70], 0x18
mov qword [rbp - 0x60], 1
mov qword [rbp - 0x68], r14
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400349a8
mov dword [rbp + 0xd0], 0x68
xorps xmm0, xmm0
movups xmmword [rbp + 0xd8], xmm0
movups xmmword [rbp + 0xe8], xmm0
movups xmmword [rbp + 0xf8], xmm0
movups xmmword [rbp + 0x108], xmm0
movups xmmword [rbp + 0x118], xmm0
movups xmmword [rbp + 0x128], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rbp + 0x128], rax
psrldq xmm0, 4
movd eax, xmm0
or eax, 0x101
mov dword [rbp + 0x10c], eax
mov word [rbp + 0x110], r14w
lea rdx, [rbp + 0x220]
cmp qword [rbp + 0x238], 7
cmova rdx, qword [rbp + 0x220]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140033f05
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword ds:[rsp + 0x78]
jmp 0x1400349a1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x2b0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140034979
lea r13, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
movabs r12, 0x7fffffffffffffff
lea r15, str..exe
lea rbx, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rdi, [0x140065678]
mov eax, dword ds:[rsp + 0x54]
test eax, eax
je 0x140034979
mov r8d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x1e0], xmm0
mov qword [rbp + 0x1f0], r14
mov qword [rbp + 0x1f8], r14
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x1e0]
call fcn.1400067a0
nop
mov qword [rbp - 0x20], rdi
lea rcx, [rbp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or dword [rsp + 0x50], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x20]
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 - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], r13
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx - 0x24], edx
lea rax, [rbp - 0x10]
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov qword [rbp - 0x10], rbx
lea rsi, [rbp + 0x1e0]
mov rdi, qword [rbp + 0x1f8]
cmp rdi, 0xf
cmova rsi, qword [rbp + 0x1e0]
mov ecx, 2
mov rax, qword [rbp + 0x1f0]
cmp rax, 0x7fffffff
ja 0x140034b47
test rax, rax
je 0x1400340a3
lfence
mov rdi, qword [rbp + 0x1f0]
mov rcx, rdi
call fcn.1400069a0
mov rbx, rax
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbx + rdi]
mov qword [rbp + 0x58], rdx
mov rcx, qword [rbp + 8]
mov qword [rcx], rbx
mov rcx, qword [rbp + 0x28]
mov qword [rcx], rbx
sub edx, ebx
mov rax, qword [rbp + 0x40]
mov dword [rax], edx
mov ecx, 3
mov rdi, qword [rbp + 0x1f8]
jmp 0x1400340a7
mov qword [rbp + 0x58], r14
mov dword ds:[rbp + 0x60], ecx
xorps xmm0, xmm0
movups xmmword [rbp + 0x1c0], xmm0
mov qword [rbp + 0x1d0], r14
mov qword [rbp + 0x1d8], 0xf
mov byte [rbp + 0x1c0], 0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
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 + 0x1c0]
lea rcx, [rbp - 0x20]
call fcn.14000f840
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 0x14003486f
nop dword [rax]
nop word [rax + rax]
lea r8, [rbp + 0x1c0]
cmp qword [rbp + 0x1d8], 0xf
cmova r8, qword [rbp + 0x1c0]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
test eax, eax
jle 0x140034820
mov rbx, rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
cmp rsi, r12
ja 0x140034b4e
lfence
add rbx, rbx
mov rcx, rbx
call fcn.1400069a0
mov qword ds:[rsp + 0x60], rax
lea rdi, [rbx + rax]
mov qword [rsp + 0x70], rdi
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword ds:[rsp + 0x68], rdi
lfence
lea r8, [rbp + 0x1c0]
cmp qword [rbp + 0x1d8], 0xf
cmova r8, qword [rbp + 0x1c0]
mov dword [rsp + 0x28], esi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x20], rsi
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xorps xmm0, xmm0
movups xmmword [rbp + 0x160], xmm0
mov qword [rbp + 0x170], r14
mov qword [rbp + 0x178], r14
mov r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], 0
jne 0x140034205
mov rdx, rsi
lea rcx, [rbp + 0x160]
call fcn.1400066a0
nop
lea rcx, [rbp + 0x160]
cmp qword [rbp + 0x178], 7
cmova rcx, qword [rbp + 0x160]
mov qword [rsp + 0x20], 0x16
lea r9, str.deviceharddiskvolume
xor r8d, r8d
mov rdx, qword [rbp + 0x170]
call fcn.1400087c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140034769
lea rcx, [rbp + 0x160]
cmp qword [rbp + 0x178], 7
cmova rcx, qword [rbp + 0x160]
movzx edi, word [rcx + rax*2 + 0x2c]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1a0], xmm0
mov qword [rbp + 0x1b0], r14
mov qword [rbp + 0x1b8], r14
mov r8d, 0x16
lea rdx, str.DeviceHarddiskVolume
lea rcx, [rbp + 0x1a0]
call fcn.1400066a0
nop
mov rcx, qword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x1b8]
cmp rcx, rdx
jae 0x1400342f5
lea rax, [rcx + 1]
mov qword [rbp + 0x1b0], rax
lea rax, [rbp + 0x1a0]
cmp rdx, 7
cmova rax, qword [rbp + 0x1a0]
mov word [rax + rcx*2], di
mov word [rax + rcx*2 + 2], r14w
jmp 0x140034305
movzx r9d, di
lea rcx, [rbp + 0x1a0]
call fcn.14000d2c0
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x260]
call fcn.14004eb80
nop
lea r9, [rbp + 0x260]
cmp qword [rbp + 0x278], 7
cmova r9, qword [rbp + 0x260]
mov rax, qword [rbp + 0x270]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [rbp + 0x160]
call fcn.140036f00
lea r9, [rbp + 0x160]
mov rbx, qword [rbp + 0x160]
mov r11, qword [rbp + 0x178]
cmp r11, 7
cmova r9, rbx
mov r10, qword [rbp + 0x170]
cmp r10, 4
jb 0x1400349e6
lea rcx, [r10 - 4]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [r9 + rax*2]
mov rdi, r8
sub rdi, r15
cmp word [r8], 0x2e
jne 0x1400343f3
mov edx, 4
mov rax, r15
movzx ecx, word [rax + rdi]
cmp cx, word [rax]
jne 0x1400343f3
add rax, 2
sub rdx, 1
jne 0x1400343a4
sub r8, r9
sar r8, 1
cmp r8, 0xffffffffffffffff
je 0x1400349e6
add r8, 4
cmp r8, r10
ja 0x140034406
mov qword [rbp + 0x170], r8
lea rax, [rbp + 0x160]
cmp r11, 7
cmova rax, rbx
mov word [rax + r8*2], r14w
jmp 0x140034462
cmp r8, r9
je 0x1400349e6
sub r8, 2
sub rdi, 2
jmp 0x140034395
mov rdx, r8
sub rdx, r10
mov rax, r11
sub rax, r10
cmp rdx, rax
ja 0x14003444b
mov qword [rbp + 0x170], r8
lea r8, [rbp + 0x160]
cmp r11, 7
cmova r8, rbx
lea rdi, [r8 + r10*2]
test rdx, rdx
je 0x140034440
movzx eax, r14w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r10 + rdx]
mov word [r8 + rax*2], r14w
jmp 0x140034462
lfence
mov r9, rdx
lea rcx, [rbp + 0x160]
call fcn.14000f6a0
mov rsi, qword [rsp + 0x60]
lea rdx, [rbp + 0x160]
cmp qword [rbp + 0x178], 7
seta dil
cmova rdx, qword [rbp + 0x160]
mov rax, qword [rbp + 0x170]
lea r8, [rdx + rax*2]
lea rdx, [rbp + 0x160]
test dil, dil
cmovne rdx, qword [rbp + 0x160]
xorps xmm0, xmm0
movups xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x190], r14
mov qword [rbp + 0x198], r14
cmp rdx, r8
jne 0x1400344d7
mov rcx, r14
mov qword [rbp + 0x190], rcx
mov edx, 7
mov qword [rbp + 0x198], rdx
mov word [rbp + 0x180], r14w
jmp 0x1400344f7
sub r8, rdx
sar r8, 1
lea rcx, [rbp + 0x180]
call fcn.1400066a0
mov rdx, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x190]
lea rax, ds:[rbp + 0x180]
cmp rdx, 7
cmova rax, qword [rbp + 0x180]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rcx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call fcn.140004d80
test al, al
jne 0x140034686
mov r8, qword [rbp + 0x190]
cmp r8, 2
jbe 0x140034686
lea rax, [rbp + 0x180]
cmp qword [rbp + 0x198], 7
seta r9b
mov rdi, qword [rbp + 0x180]
cmova rax, rdi
cmp word [rax + 4], 0x5c
jne 0x140034686
lea rdx, [rbp + 0x180]
test r9b, r9b
cmovne rdx, rdi
xorps xmm0, xmm0
movups xmmword [rbp + 0x240], xmm0
mov qword [rbp + 0x250], r14
mov qword [rbp + 0x258], r14
lea rcx, [rbp + 0x240]
call fcn.1400066a0
or dword [rsp + 0x50], 0x30
lea rcx, [rbp + 0x240]
call fcn.140004c60
movzx edi, al
lea rcx, [rbp + 0x240]
call fcn.1400058e0
test dil, dil
je 0x140034624
lea rdx, [rbp + 0x180]
call fcn.14004f180
test al, al
jne 0x140034686
lea rdx, [0x14005a338]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400064a0
lea rdx, [rbp + 0x180]
cmp qword [rbp + 0x198], 7
cmova rdx, qword [rbp + 0x180]
mov r8, qword [rbp + 0x190]
mov rcx, rax
call fcn.140008ee0
lea rdx, [0x140008380]
mov rcx, rax
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 rdx, [rbp + 0x140]
jmp 0x140034674
lea rdx, [0x14005a808]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400064a0
lea rdx, [rbp + 0x180]
cmp qword [rbp + 0x198], 7
cmova rdx, qword [rbp + 0x180]
mov r8, qword [rbp + 0x190]
mov rcx, rax
call fcn.140008ee0
lea rdx, [0x140008380]
mov rcx, rax
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 rdx, [rbp + 0x150]
lea r8, ds:[rbp + 0x180]
call fcn.140006140
nop
mov rcx, qword [rbp + 0x198]
cmp rcx, 7
jbe 0x1400346cf
lea rdx, [rcx*2 + 2]
mov rcx, qword [rbp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400346ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034b11
call fcn.140050f60
mov qword [rbp + 0x190], r14
mov qword [rbp + 0x198], 7
mov word [rbp + 0x180], r14w
lea rcx, [rbp + 0x260]
call fcn.1400058e0
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 7
jbe 0x14003474f
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword ds:[rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003474a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034b18
call fcn.140050f60
mov qword [rbp + 0x1b0], r14
mov qword [rbp + 0x1b8], 7
mov word [rbp + 0x1a0], r14w
mov rdx, qword [rbp + 0x178]
cmp rdx, 7
jbe 0x1400347af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400347aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034b27
call fcn.140050f60
mov qword [rbp + 0x170], r14
mov qword [rbp + 0x178], 7
mov word [rbp + 0x160], r14w
test rsi, rsi
je 0x140034820
mov rax, qword [rsp + 0x70]
sub rax, rsi
sar rax, 1
lea rdx, [rax + rax]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14003480a
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034b2e
mov rcx, rsi
call fcn.140050f60
xorps xmm0, xmm0
mov qword [rsp + 0x70], r14
movdqu xmmword [rsp + 0x60], xmm0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
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 + 0x1c0]
lea rcx, [rbp - 0x20]
call fcn.14000f840
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]
nop dword [rax + rax]
test al, al
jne 0x140034120
mov rdi, qword [rbp + 0x1f8]
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0xf
jbe 0x1400348b0
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400348ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034b35
call fcn.140050f60
mov qword [rbp + 0x1d0], r14
mov qword [rbp + 0x1d8], 0xf
mov byte [rbp + 0x1c0], 0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], r13
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x10]
call fcn.140036b20
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, ds:[rbp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
cmp rdi, 0xf
jbe 0x14003494f
lea rdx, ds:[rdi + 1]
mov rcx, qword [rbp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003494a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034b3c
call fcn.140050f60
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x2b0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140033f67
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x220]
call fcn.1400058e0
mov rcx, qword ds:[rbp + 0x12b0]
xor rcx, rsp
call fcn.140050f40
lea r11, [rsp + 0x13c0]
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
lea rcx, [rbp + 0x260]
call fcn.1400058e0
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 7
jbe 0x140034a4f
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword ds:[rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034a4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034b18
call fcn.140050f60
mov qword [rbp + 0x1b0], r14
mov qword [rbp + 0x1b8], 7
mov word [rbp + 0x1a0], r14w
mov rdx, qword [rbp + 0x178]
cmp rdx, 7
jbe 0x140034aaf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034aaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034b1f
call fcn.140050f60
mov qword [rbp + 0x170], r14
mov qword [rbp + 0x178], 7
mov word [rbp + 0x160], r14w
test rsi, rsi
je 0x140034820
mov rax, qword [rsp + 0x70]
sub rax, rsi
sar rax, 1
lea rdx, [rax + rax]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14003480a
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003480a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_]
nop
call fcn.14000aa60
int3