Function at 0x405b40
Capabilities:
Create process on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov byte [ebp - 0x321], 0
mov dword [ebp - 0x328], edi
push 8
call fcn.00412765
mov esi, eax
add esp, 4
cmp esi, edi
je 0x405b65
push 1
call fcn.00412765
add esp, 4
cmp eax, edi
je 0x405b75
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [ebp - 0x32c], edi
cmp dword [0x429104], edi
jle 0x406449
cmp byte [ebp - 0x321], 0
jne 0x405c98
push 0x31
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ebx, dword [0x429108]
mov ecx, dword [eax + 0xc4]
mov eax, dword [ebx + edi*4]
add esp, 4
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405be5
test dl, dl
je 0x405be1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405be5
add eax, 2
add ecx, 2
test dl, dl
jne 0x405bc5
xor eax, eax
jmp 0x405bea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405d69
inc edi
mov byte [ebp - 0x321], 1
mov dword [ebp - 0x32c], edi
cmp edi, dword [0x429104]
jge 0x405d69
mov edi, dword [ebx + edi*4]
push 0x425b34
mov dword [ebp - 0x328], edi
call fcn.004031d0
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405c27
mov ecx, dword [esi + 4]
sub eax, edx
mov edx, dword [esi]
mov edi, eax
lea ebx, [ecx + edi + 1]
mov dword [ebp - 0x330], edx
mov eax, dword [ebp - 0x330]
push ebx
push eax
call fcn.004127f9
add esp, 8
test eax, eax
je 0x405c41
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [edi + eax]
cmp eax, ecx
jae 0x405c82
mov ecx, dword [ebp - 0x328]
sub ecx, eax
lea esp, [esp]
mov edx, dword [esi]
mov bl, byte [eax + ecx]
mov byte [eax + edx], bl
mov edx, dword [esi + 4]
inc eax
add edx, edi
cmp eax, edx
jb 0x405c70
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx], 0
push 0x425b38
jmp 0x405d5b
mov edx, dword [0x429108]
mov eax, dword [edx + edi*4]
push 0x425b3c
push eax
mov byte [ebp - 0x322], 0
call fcn.004130a0
add esp, 8
test eax, eax
je 0x405cce
push 0x425b34
mov byte [ebp - 0x322], 1
call fcn.004031d0
add esp, 4
mov eax, dword [0x429108]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x334], eax
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ce0
mov ecx, dword [esi + 4]
sub eax, edx
mov edx, dword [esi]
mov edi, eax
lea ebx, [ecx + edi + 1]
mov dword [ebp - 0x330], edx
mov eax, dword [ebp - 0x330]
push ebx
push eax
call fcn.004127f9
add esp, 8
test eax, eax
je 0x405cfa
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [edi + eax]
cmp eax, ecx
jae 0x405d34
mov ecx, dword [ebp - 0x334]
sub ecx, eax
mov edx, dword [esi]
mov bl, byte [eax + ecx]
mov byte [eax + edx], bl
mov edx, dword [esi + 4]
inc eax
add edx, edi
cmp eax, edx
jb 0x405d22
add dword [esi + 4], edi
cmp byte [ebp - 0x322], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx], 0
je 0x405d56
push 0x425b34
call fcn.004031d0
add esp, 4
push 0x425b3c
call fcn.004031d0
mov edi, dword [ebp - 0x32c]
add esp, 4
inc edi
mov dword [ebp - 0x32c], edi
cmp edi, dword [0x429104]
jl 0x405b9a
cmp byte [ebp - 0x321], 0
je 0x406449
push 0x3d
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0xf4]
add esp, 4
push 0x3e
mov dword [ebp - 0x3e0], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0xf8]
add esp, 4
push 0x3f
mov dword [ebp - 0x3dc], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0xfc]
add esp, 4
push 0x40
mov dword [ebp - 0x3d8], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x100]
add esp, 4
push 0x41
mov dword [ebp - 0x3d4], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x104]
add esp, 4
push 0x42
mov dword [ebp - 0x3d0], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x108]
add esp, 4
push 0x43
mov dword [ebp - 0x3cc], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x10c]
add esp, 4
push 0x44
mov dword [ebp - 0x3c8], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x110]
add esp, 4
push 0x45
mov dword [ebp - 0x3c4], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x114]
add esp, 4
push 0x46
mov dword [ebp - 0x3c0], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x118]
add esp, 4
push 0x47
mov dword [ebp - 0x3bc], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x11c]
add esp, 4
push 0x48
mov dword [ebp - 0x3b8], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x120]
add esp, 4
push 0x49
mov dword [ebp - 0x3b4], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x124]
add esp, 4
push 0x4a
mov dword [ebp - 0x3b0], eax
call fcn.00403fe0
add esp, 4
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x128]
push 0x4b
mov dword [ebp - 0x3ac], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x12c]
add esp, 4
push 0x4c
mov dword [ebp - 0x3a8], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x130]
add esp, 4
push 0x4d
mov dword [ebp - 0x3a4], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x134]
add esp, 4
push 0x4e
mov dword [ebp - 0x3a0], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x138]
add esp, 4
push 0x4f
mov dword [ebp - 0x39c], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x13c]
add esp, 4
push 0x50
mov dword [ebp - 0x398], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x140]
add esp, 4
push 0x51
mov dword [ebp - 0x394], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x144]
add esp, 4
push 0x52
mov dword [ebp - 0x390], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x148]
add esp, 4
push 0x53
mov dword [ebp - 0x38c], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x14c]
add esp, 4
push 0x54
mov dword [ebp - 0x388], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x150]
add esp, 4
push 0x55
mov dword [ebp - 0x384], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x154]
add esp, 4
push 0x56
mov dword [ebp - 0x380], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x158]
add esp, 4
push 0x57
mov dword [ebp - 0x37c], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x15c]
add esp, 4
mov dword [ebp - 0x378], ecx
push 0x58
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x160]
add esp, 4
push 0x59
mov dword [ebp - 0x374], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x164]
add esp, 4
push 0x5a
mov dword [ebp - 0x370], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x168]
add esp, 4
push 0x5c
mov dword [ebp - 0x36c], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x170]
add esp, 4
push 0x5d
mov dword [ebp - 0x368], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x174]
add esp, 4
push 0x5e
mov dword [ebp - 0x364], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x178]
add esp, 4
push 0x5f
mov dword [ebp - 0x360], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x17c]
add esp, 4
push 0x60
mov dword [ebp - 0x35c], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x180]
add esp, 4
push 0x61
mov dword [ebp - 0x358], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x184]
add esp, 4
push 0x62
mov dword [ebp - 0x354], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x188]
mov ebx, dword [ebp - 0x328]
add esp, 4
mov dword [ebp - 0x350], eax
xor edi, edi
mov ecx, dword [ebp + edi*4 - 0x3e0]
push ecx
push ebx
call fcn.004130a0
add esp, 8
test eax, eax
jne 0x406468
inc edi
cmp edi, 0x25
jb 0x406191
push eax
push eax
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.00413c5c
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x320]
push 0x423760
push eax
call fcn.004128a6
lea ecx, [ebp - 0x320]
push ecx
call fcn.00413d2b
add esp, 0x14
jmp 0x406200
push 0x105
call fcn.00412765
add esp, 4
mov dword [ebp - 0x32c], eax
test eax, eax
je 0x406200
push 0x104
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40623f
mov edx, dword [0x429108]
mov ecx, dword [edx]
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x406235
push 4
call fcn.00403fe0
mov eax, dword [0x42a118]
mov eax, dword [eax + 0x10]
add esp, 4
push eax
call fcn.0041356b
add esp, 4
mov dword [ebp - 0x330], eax
test eax, eax
jne 0x40626e
mov dword [ebp - 0x330], 0x423572
mov ecx, dword [ebp - 0x328]
push 0x423550
push ecx
call fcn.004119cb
mov edi, eax
add esp, 8
test edi, edi
je 0x4062b3
push 2
push 0
push edi
call fcn.0041209d
add esp, 0xc
push edi
call fcn.00411fae
add esp, 4
push edi
mov ebx, eax
call fcn.00412186
mov edi, ebx
mov ebx, dword [ebp - 0x32c]
add esp, 4
jmp 0x4062b5
xor edi, edi
mov eax, dword [ebp - 0x328]
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4062e0
test dl, dl
je 0x4062dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4062e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4062c0
xor eax, eax
jmp 0x4062e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4063eb
call fcn.00408d30
mov edx, dword [ebp - 0x328]
push eax
push edx
call fcn.004130a0
add esp, 8
test eax, eax
jne 0x4063eb
mov eax, dword [ebp - 0x330]
mov ecx, dword [ebp - 0x328]
push eax
push ecx
call fcn.004130a0
add esp, 8
test eax, eax
jne 0x4063eb
push 0x33
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0xcc]
add esp, 4
push eax
mov eax, dword [ebp - 0x328]
push eax
call fcn.004130a0
add esp, 8
test eax, eax
jne 0x4063eb
push 0x34
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov eax, dword [ecx + 0xd0]
mov edx, dword [ebp - 0x328]
add esp, 4
push eax
push edx
call fcn.004130a0
add esp, 8
test eax, eax
jne 0x4063eb
push 0x35
call fcn.00403fe0
mov eax, dword [0x42a118]
mov eax, dword [eax + 0xd4]
add esp, 4
push eax
call fcn.004136d2
add esp, 4
cmp edi, eax
jbe 0x4063eb
push 0x36
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov eax, dword [ecx + 0xd8]
add esp, 4
push eax
call fcn.004136d2
add esp, 4
cmp edi, eax
jae 0x4063eb
push 0x32
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0xc8]
add esp, 4
push ebx
push eax
mov eax, dword [ebp - 0x328]
call fcn.00402610
add esp, 8
push ebx
call fcn.0041272b
mov edi, dword [esi]
add esp, 4
push 0x44
lea ecx, [ebp - 0x428]
push 0
push ecx
call fcn.00415c60
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x344]
push edx
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x338], eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push 0x100
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esi]
mov dword [esi + 4], 0
test eax, eax
je 0x40645f
push eax
call fcn.0041272b
add esp, 4
push esi
call fcn.0041272b
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret