Function at 0x140029740
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov byte [rsp + 0x55], 0
mov byte [rsp + 0x54], 0
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x55]
mov rcx, qword [rsp + 0xe0]
call fcn.140027940
movzx eax, byte [rsp + 0x55]
test eax, eax
je 0x1400297e9
lea r9, [rsp + 0x98]
mov r8b, 1
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call sym.ProcessHacker.exe_PhLoadMappedImage
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400297b2
mov eax, dword [rsp + 0x50]
jmp 0x140029a56
movzx eax, word [rsp + 0xc0]
cmp eax, 0x10b
jne 0x1400297cb
mov dword [rsp + 0x60], 1
jmp 0x1400297d3
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x54], al
lea rcx, [rsp + 0x98]
call sym.ProcessHacker.exe_PhUnloadMappedArchive
movzx eax, byte [rsp + 0x54]
test eax, eax
jne 0x14002980f
lea rdx, [0x140110ed0]
lea rcx, str.kernel32.dll
call fcn.140015cc0
mov qword [rsp + 0x68], rax
jmp 0x1400298ae
mov rax, qword [0x14013ba38]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400298ae
mov eax, 0x30
add rax, 0x7ffe0000
lea rdx, str.SysWow64kernel32.dll
mov rcx, rax
call sym.ProcessHacker.exe_PhConcatStrings2
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x28], 0
lea rax, [0x14013ba38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [0x140110ed0]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0xe0]
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x80]
call sym.ProcessHacker.exe_PhDereferenceObject
cmp dword [rsp + 0x50], 0
jge 0x1400298a2
mov eax, dword [rsp + 0x50]
jmp 0x140029a56
mov rax, qword [0x14013ba38]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x88]
call fcn.14000aae0
mov rax, qword [rsp + 0x88]
add rax, 2
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140029913
mov eax, dword [rsp + 0x50]
jmp 0x140029a56
mov rax, qword [rsp + 0x88]
add rax, 2
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xe0]
call sym.ProcessHacker.exe_PhWriteVirtualMemory
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140029955
jmp 0x140029a2b
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x1400299bc
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400299ba
jmp 0x140029a2b
jmp 0x140029a07
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140029a07
call fcn.140021c20
mov dword [rsp + 0x50], eax
jmp 0x140029a2b
mov r8, qword [rsp + 0xf0]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rsp + 0x78], 0
mov r9d, 0x8000
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov eax, dword [rsp + 0x50]
add rsp, 0xd8
ret