Function at 0x405120
Capabilities:
Create process on windows
Create process suspended
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
xor eax, eax
push 0x40d760
push str.kernel32.dll
mov byte [esp + 0x1b], 0xcc
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1a], al
mov dword [esp + 0x20], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x40d774
push str.kernel32.dll
mov ebx, eax
call esi
push eax
call edi
push 0x438028
push 0x438038
push 0
push 0
push 2
push 1
push 0
push 0
push 0
push str..WinKawaks.exe
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405412
push 0x60
lea eax, [esp + 0x24]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x2cc
lea ecx, [esp + 0x84]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0xffffffffffffffff
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x40542b
mov esi, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x405200
cmp byte [0x438093], 1
je 0x4053cc
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cmp ecx, 1
jne 0x405360
cmp eax, 0x80000003
jne 0x405360
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40524d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0x10002
push edx
mov dword [esp + 0x20], 1
push eax
jmp 0x40539c
cmp eax, 1
jne 0x4052c4
mov ecx, dword [0x43802c]
lea eax, [esp + 0x80]
push eax
push ecx
mov dword [esp + 0x88], 0x10007
call esi
mov eax, dword [0x438028]
push 0
push 1
lea edx, [esp + 0x1a]
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [0x438028]
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x1b]
push edx
push ebx
push eax
call edi
test eax, eax
je 0x4052a8
cmp dword [esp + 0x14], 1
jne 0x40542b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0x10002
push edx
mov dword [esp + 0x20], 2
push eax
jmp 0x40539c
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x405344
mov edx, dword [0x43802c]
lea ecx, [esp + 0x80]
push ecx
push edx
mov dword [esp + 0x88], 0x10007
call esi
mov edx, dword [0x438028]
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x1a]
push ecx
push ebx
push edx
call edi
test eax, eax
je 0x40530d
cmp dword [esp + 0x14], 1
jne 0x40542b
call fcn.00404ef0
mov ecx, dword [0x43802c]
dec dword [esp + 0x138]
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
call fcn.00404f40
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0x10002
push edx
push eax
jmp 0x40539c
cmp eax, dword [esp + 0x1c]
jne 0x40534f
call fcn.00404fa0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0x10002
push edx
push eax
jmp 0x40539c
cmp eax, 0x80000004
jne 0x405384
call fcn.00405040
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 0x10002
push ecx
mov byte [0x438093], 1
push edx
jmp 0x40539c
cmp ecx, 5
je 0x40542b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0x80010001
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
push 0xffffffffffffffff
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
jne 0x405200
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.004098be
mov esp, ebp
pop ebp
ret
mov eax, dword [0x438030]
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x404d90
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [0x438098], eax
call fcn.00404cf0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.004098be
mov esp, ebp
pop ebp
ret
mov edx, dword [0x438094]
push 0
push str.kawaks_loader
push 0x40d318
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004098be
mov esp, ebp
pop ebp
ret