Function at 0x412098
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18c
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 0xf
mov eax, dword [edi + 0x14]
ja 0x4120b5
add edi, 4
jmp 0x4120b8
mov edi, dword [edi + 4]
lea ecx, [edi + eax]
mov dword [ebp - 0x10], ecx
mov ecx, 7
lea esi, [ebp - 0x98]
mov dword [esi + 0x18], ecx
xor ebx, ebx
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004041f0
lea eax, [ebp - 0x164]
mov al, byte [eax - 4]
mov byte [esp + 0xc], al
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00414964
xor eax, eax
mov ecx, 0x10
lea edx, [ebp - 0x164]
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx - 4], 0x44
lea esi, [ebp - 0x124]
mov eax, 7
mov dword [esi + 0x18], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
lea eax, [ebp - 0x78]
mov dword [eax + 0x1c], 0x51dfc0
mov dword [eax + 0x20], 0x525f78
mov dword [eax + 0x24], ebp
mov dword [eax + 0x2c], esp
mov dword [eax + 0x24], 0x41253a
mov dword [eax + 8], 1
call fcn.0051ec29
mov dword [esp], esi
mov dword [esp + 4], 0x525e08
call fcn.00414a88
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x110]
sub eax, ecx
jb 0x4121c3
mov dword [ebp - 0x70], 2
lea edx, [ebp - 0x124]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.00414cf4
test eax, eax
je 0x4124a6
lea eax, [ebp - 0x108]
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], 0
mov byte [eax + 4], 0
mov dword [ebp - 0x70], 6
mov dword [esp], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0x525e7e
call fcn.00403518
xor eax, eax
lea ecx, [ebp - 0x24]
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x70], 7
mov dword [esp], ecx
mov dword [esp + 4], 0x11
call fcn.00404190
test al, al
je 0x412245
mov esi, dword [ebp - 0x20]
mov eax, 0x11
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], str.cmd.exe__c_start___
call fcn.0050ddd0
add esi, 0x11
mov dword [ebp - 0x1c], esi
mov eax, 8
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
lea eax, [ebp - 0x108]
mov dword [esp + 4], eax
lea eax, [ebp - 0xb4]
mov dword [esp], eax
call fcn.0042b454
cmp dword [ebp - 0x9c], 0xf
mov ecx, dword [ebp - 0xa0]
ja 0x412283
lea eax, [ebp - 0xb0]
jmp 0x412289
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xec]
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], 0
mov word [eax + 4], 0
mov dword [ebp - 0x70], 9
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x7c], ecx
call fcn.004041f0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x7c]
add edx, ecx
mov dword [ebp - 0x70], 0xa
mov al, byte [ebp - 0x28]
mov byte [esp + 0xc], al
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
lea eax, [ebp - 0xec]
mov dword [esp], eax
call fcn.00414dd8
mov dword [ebp - 0x70], 0xb
lea eax, [ebp - 0x98]
mov dword [esp + 4], eax
lea eax, [ebp - 0xec]
mov dword [esp], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
call fcn.0041482c
mov dword [esp + 4], eax
lea esi, [ebp - 0xd0]
mov dword [esp], esi
call fcn.00414790
lea eax, [ebp - 0xec]
mov dword [esp], eax
call fcn.00403b68
cmp dword [esi + 0x18], 7
ja 0x412345
lea eax, [ebp - 0xcc]
jmp 0x41234b
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x70], 0xc
lea ecx, [ebp - 0x40]
mov dword [esp + 0x24], ecx
lea ecx, [ebp - 0x168]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov edx, 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ecx
call sub.KERNEL32.DLL_CreateProcessW
sub esp, 0x28
cmp eax, 1
jne 0x41241c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], 0xd
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x70], 0xe
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
lea eax, [ebp - 0xd0]
mov dword [esp], eax
call fcn.00403b68
lea eax, [ebp - 0xb4]
mov dword [esp], eax
call fcn.00403adc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41240a
mov ecx, dword [ebp - 0x18]
sub ecx, eax
cmp ecx, 0x1000
jb 0x4123f7
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.005040fc
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.00403adc
mov bl, 1
jmp 0x412472
lea eax, [ebp - 0xd0]
mov dword [esp], eax
call fcn.00403b68
lea eax, [ebp - 0xb4]
mov dword [esp], eax
call fcn.00403adc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x412462
mov ecx, dword [ebp - 0x18]
sub ecx, eax
cmp ecx, 0x1000
jb 0x41244f
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.005040fc
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.00403adc
xor ebx, ebx
lea eax, [ebp - 0x124]
mov dword [esp], eax
call fcn.00403b68
lea eax, [ebp - 0x98]
mov dword [esp], eax
call fcn.00403b68
lea eax, [ebp - 0x78]
mov dword [esp], eax
call fcn.0051ec4a
mov eax, ebx
add esp, 0x18c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x80], 7
ja 0x4124b4
lea eax, [ebp - 0x94]
jmp 0x4124ba
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x70], 3
lea ecx, [ebp - 0x40]
mov dword [esp + 0x24], ecx
lea ecx, [ebp - 0x168]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov edx, 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ecx
call sub.KERNEL32.DLL_CreateProcessW
sub esp, 0x28
cmp eax, 1
jne 0x412470
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], 4
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x70], 5
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov bl, 1
jmp 0x412472