Function at 0x40823c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
movsx eax, byte [esi]
cmp eax, 0x61
jb 0x408259
sub eax, 0x20
cmp eax, 0x41
jb 0x408269
cmp eax, 0x5a
ja 0x408269
cmp byte [esi + 1], 0x3a
je 0x408287
push 0x2f
push esi
call fcn.004071cc
add esp, 8
test eax, eax
jne 0x408287
push 0x5c
push esi
call fcn.004071cc
add esp, 8
test eax, eax
je 0x40828c
xor edx, edx
mov dword [ebp + 0x18], edx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
push 0x5c
push esi
call fcn.004073d0
add esp, 8
mov edi, eax
test eax, eax
je 0x4082a5
inc edi
jmp 0x4082a7
mov edi, esi
push 0x2e
push edi
call fcn.004073d0
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40830f
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x118]
push edx
push 0x40d021
push ecx
push esi
call fcn.00408034
add esp, 0x10
mov edi, eax
test eax, eax
je 0x40836e
push 0x40d022
mov edx, dword [ebp - 0x10]
push edx
call fcn.00407274
add esp, 8
test eax, eax
je 0x408306
push 0x40d027
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00407274
add esp, 8
test eax, eax
jne 0x40836e
mov dword [ebp - 0x14], 1
jmp 0x40836e
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x118]
push eax
push str..EXE
push edx
push esi
call fcn.00408034
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x40836e
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x118]
push edx
push str..BAT
push ecx
push esi
call fcn.00408034
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40836e
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x118]
push edx
push str..CMD
push ecx
push esi
call fcn.00408034
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x14], eax
test edi, edi
je 0x40838a
cmp dword [ebp - 0x14], 0
je 0x40839c
push 0x40d03b
call fcn.0040787c
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40839c
mov dword [0x40cecc], 2
or eax, 0xffffffff
jmp 0x408660
cmp dword [ebp - 0x14], 0
je 0x4083bb
mov edx, dword [ebp + 0x10]
push edx
push 0x40d043
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004080ec
add esp, 0xc
mov edi, eax
jmp 0x4083d4
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push 0
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
push ecx
call fcn.004080ec
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4083ea
mov dword [0x40cecc], 8
or eax, 0xffffffff
jmp 0x408660
cmp dword [ebp + 0x14], 0
jne 0x4083f7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x408421
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004081d8
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x408421
mov dword [0x40cecc], 8
push edi
call fcn.004018cc
pop ecx
or eax, 0xffffffff
jmp 0x408660
call dword [0x40cf2c]
push 0x44
push 0
lea edx, [ebp - 0x168]
push edx
call fcn.004026a8
add esp, 0xc
mov dword [ebp - 0x168], 0x44
mov word [ebp - 0x138], 0xa
cmp dword [0x40badc], 0
je 0x40848a
push 0
call dword [0x40bad4]
pop ecx
mov esi, eax
mov word [ebp - 0x136], si
movzx eax, si
push eax
call fcn.004018bc
pop ecx
mov dword [ebp - 0x134], eax
test eax, eax
je 0x408408
mov edx, dword [ebp - 0x134]
push edx
call dword [0x40bad4]
pop ecx
mov dword [ebp - 0x124], 0xc
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], 1
test bl, 0x20
je 0x4084b2
or esi, 0x10
jmp 0x4084ba
test bl, 0x10
je 0x4084ba
or esi, 8
test bl, 0x40
je 0x4084c5
or esi, 0x200
test bl, 0x80
je 0x4084cd
or esi, 4
test bh, 2
je 0x4084da
or esi, 0x800
jmp 0x4084e5
test bh, 4
je 0x4084e5
or esi, 0x1000
test bh, 8
je 0x4084f0
or esi, 0x4000000
test bh, 0x20
je 0x4084fa
or esi, 0x20
jmp 0x40851c
test bh, 0x10
je 0x408504
or esi, 0x40
jmp 0x40851c
test bh, 0x40
je 0x408511
or esi, 0x80
jmp 0x40851c
test bh, 0x80
je 0x40851c
or esi, 0x100
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x168]
push eax
push edx
push 0
lea eax, [ebp - 0x124]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x124]
push ecx
push esi
push 1
push eax
push edx
push edi
cmp dword [ebp - 0x14], 0
je 0x40854d
mov ecx, dword [ebp - 0xc]
jmp 0x408553
lea ecx, [ebp - 0x118]
push ecx
call sub.KERNEL32.DLL_CreateProcessA
dec eax
je 0x40859a
call sub.KERNEL32.DLL_GetLastError
and eax, 0xffff
dec eax
je 0x40857a
sub eax, 7
je 0x408581
sub eax, 0x51
jne 0x408588
mov eax, 0x2a
jmp 0x40858d
mov eax, 0x13
jmp 0x40858d
mov eax, 8
jmp 0x40858d
mov eax, 0x15
mov dword [0x40cecc], eax
or esi, 0xffffffff
jmp 0x40864d
cmp ebx, 0x10
jne 0x4085a4
mov ebx, 4
mov eax, ebx
and eax, 7
sub eax, 1
jb 0x4085bb
je 0x408600
dec eax
je 0x40861b
dec eax
sub eax, 2
jb 0x4085ef
jmp 0x408634
push 0xffffffffffffffff
mov edx, dword [ebp - 0x178]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
lea ecx, [ebp - 4]
push ecx
mov eax, dword [ebp - 0x178]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
test bh, 1
jne 0x4085ea
mov edx, dword [ebp - 0x178]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov esi, dword [ebp - 4]
jmp 0x408637
test bh, 1
jne 0x408600
mov eax, dword [ebp - 0x178]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x178]
push edx
mov ecx, dword [ebp - 0x170]
push ecx
call dword [0x40d018]
add esp, 8
mov esi, eax
jmp 0x408637
mov eax, dword [ebp - 8]
push eax
call fcn.004018cc
pop ecx
push edi
call fcn.004018cc
pop ecx
push 0
call fcn.0040782c
pop ecx
or esi, 0xffffffff
test bl, 0x80
jne 0x40864d
test bh, 1
jne 0x40864d
mov eax, dword [ebp - 0x174]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 8]
push edx
call fcn.004018cc
pop ecx
push edi
call fcn.004018cc
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret