Function at 0x100377e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x7c
push ebx
push esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x10037832
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 8], eax
jne 0x10037852
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x94]
push 0x100897ac
push eax
call fcn.10037ed0
add esp, 8
pop esi
mov eax, 4
pop ebx
add esp, 0x7c
ret
test esi, esi
mov dword [eax], 1
mov dword [eax + 8], esi
jne 0x1003788d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x94]
push 0x100897ac
push ecx
call fcn.10037ed0
add esp, 8
pop esi
mov eax, 4
pop ebx
add esp, 0x7c
ret
push ebp
mov ebp, dword [esp + 0x8c]
mov eax, ebp
push edi
lea edx, [eax + 1]
jmp 0x100378a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100378a0
sub eax, edx
mov edx, dword [esp + 0x94]
mov ecx, dword [edx + 0x6c]
mov edx, dword [ecx]
push ebx
push edx
push 0
add eax, ebp
push str.___hn_u__u:_u_
push eax
call fcn.10067cff
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, 0x10
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
push eax
push 0x200
push eax
push eax
push eax
push ebp
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], 0x44
mov dword [esp + 0x9c], 1
mov word [esp + 0xa0], 7
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10037967
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x9c]
push 0x100897ac
push ecx
call fcn.10037ed0
mov edx, dword [esp + 0x24]
add esp, 8
push edx
call esi
pop edi
pop ebp
pop esi
mov eax, 4
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.CSNTPLAT
call edi
push 1
push eax
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
call ebx
push 0x64
push esi
call ebp
test eax, eax
je 0x10037a1b
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100379bf
cmp dword [esp + 0x14], 0x103
je 0x10037984
mov edx, dword [esp + 0x9c]
push 0x100897ac
push edx
call fcn.10037ed0
add esp, 8
mov edi, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
push esi
call ebx
mov edx, dword [esp + 0x1c]
push edx
call ebx
test di, di
jne 0x10037a25
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x10037a11
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x10]
mov di, word [ecx + 4]
jmp 0x100379d9
mov edx, dword [esp + 0x9c]
push edx
push edi
call fcn.10038c00
add esp, 8
pop edi
pop ebp
pop esi
mov eax, 4
pop ebx
add esp, 0x7c
ret