Function at 0x404489
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x40477d
mov eax, dword [esi + 0x544]
cmp eax, ebx
je 0x40477d
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], 1
push ecx
push eax
call fcn.00403744
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x404772
add esi, 0x94c
mov dword [ebp - 8], 2
push esi
push edi
call fcn.00403beb
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x404772
push 0x40
mov dword [ebp - 8], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0xb88
call fcn.0040515a
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x404772
push 0xb88
mov dword [ebp - 8], 4
push dword [ebp + 8]
push esi
call fcn.00406e20
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
mov dword [esi + 0x504], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esi + 0x528], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x518], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x51c], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x520], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esi + 0x524], eax
mov eax, dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi + 0x510], eax
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x514], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov dword [esi + 0x52c], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi + 0x530], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x534], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 0x538], eax
lea eax, [esi + 0xb4c]
push 0x401a08
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x53c], edi
mov dword [esi + 0x544], edi
mov eax, dword [ecx + 0x548]
cmp eax, ebx
mov dword [esi + 0x548], eax
je 0x404772
cmp byte [ebp + 0x14], 1
mov dword [ebp - 8], 5
jne 0x404665
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x70], 0x44
push 1
rep stosd dword es:[edi], eax
pop eax
mov dword [ebp - 0x44], eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push ebx
push ebx
add eax, 0x54c
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp - 0x24], ebx
je 0x404772
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
jmp 0x4046b9
cmp dword [ebp + 0xc], ebx
jne 0x404693
add ecx, 0x54c
push ecx
call fcn.0040513f
cmp eax, ebx
pop ecx
je 0x404772
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4046bc
cmp dword [ebp + 0x10], ebx
jne 0x4046bc
call fcn.00404e51
test al, al
je 0x4046bc
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push ebx
push dword [ebp - 4]
call dword [0x40792c]
mov dword [ebp - 0xc], eax
call fcn.00404e51
test al, al
jne 0x4046df
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push dword [ebp - 0x18]
push ebx
push ebx
push dword [ebp - 4]
call fcn.00406659
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], 6
je 0x404772
mov edi, dword [ebp - 0xc]
cmp edi, ebx
je 0x404772
call fcn.00404e51
test al, al
je 0x40473a
push 2
lea eax, [esi + 0x540]
push ebx
push ebx
push eax
mov dword [eax], ebx
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x404a2a
mov eax, 0x404784
sub ecx, eax
push ecx
push eax
push esi
push edi
push dword [ebp - 4]
call fcn.004042ca
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], ebx
jne 0x40475e
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], ebx
jne 0x40476c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 8]
jmp 0x40477f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret