Function at 0x140037aa0
Capabilities:
Create process on windows
Self delete

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0x50], 0
lea rdx, str.InitializeProcThreadAttributeList
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xf8], rax
lea rdx, str.DeleteProcThreadAttributeList
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xe8], rax
lea rdx, str.UpdateProcThreadAttribute
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0xf8], 0
je 0x140037b4f
cmp qword [rsp + 0xe8], 0
je 0x140037b4f
cmp qword [rsp + 0x50], 0
jne 0x140037b61
mov ecx, 0x80004003
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140037ea0
cmp qword [rsp + 0x150], 0
jne 0x140037b7e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140037ea0
mov r8, qword [rsp + 0x158]
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
call fcn.140037830
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
jne 0x140037bb5
xor eax, eax
jmp 0x140037ea0
mov dword [rsp + 0xf4], 0
mov dword [rsp + 0x58], 0xffffffff
mov dword [rsp + 0x70], 0
lea rdi, [rsp + 0x78]
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + reloc.WS2_32.dll_WSASetLastError], 0x70
lea r9, [rsp + 0x100]
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [rsp + 0xf8]
test eax, eax
jne 0x140037c4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xf4], eax
cmp dword [rsp + 0xf4], 0x7a
je 0x140037c4a
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x108], rax
mov rcx, qword [rsp + 0x108]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0xe0], 0
xor eax, eax
jmp 0x140037ea0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x100]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
jne 0x140037cb8
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0xe0], 0
xor eax, eax
jmp 0x140037ea0
lea r9, [rsp + 0x100]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0xd8]
call qword [rsp + 0xf8]
test eax, eax
jne 0x140037d18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xf4], eax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x118]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0xe0], 0
xor eax, eax
jmp 0x140037ea0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov r8d, 0x2000b
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call qword [rsp + 0x50]
test eax, eax
jne 0x140037d8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xf4], eax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x120], rax
mov rcx, qword [rsp + 0x120]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0xe0], 0
xor eax, eax
jmp 0x140037ea0
mov ecx, dword [rsp + 0x178]
or ecx, 0x80000
or ecx, 0x40000
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x168]
mov r8, qword [rsp + 0x160]
mov rdx, qword [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0xf0], eax
cmp dword [rsp + 0xf0], 0
jne 0x140037e1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xf4], eax
cmp qword [rsp + 0xd8], 0
je 0x140037e59
mov rcx, qword [rsp + 0xd8]
call qword [rsp + 0xe8]
mov r8, qword [rsp + 0xd8]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0xd8], 0
cmp dword [rsp + 0xf0], 0
jne 0x140037e70
mov ecx, dword [rsp + 0xf4]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0xe0], 0
mov eax, dword [rsp + 0xf0]
add rsp, 0x130
pop rdi
ret