Function at 0x402dc0
Capabilities:
Create process on windows
Set console window title
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x44dc
call fcn.00430be0
mov eax, dword [0x43a004]
xor eax, esp
mov dword [esp + 0x44d8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x2d0], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
movzx eax, word [edi]
mov dword [esp + 0x18], 0
cmp eax, 0x2f
je 0x402f47
test ax, ax
je 0x402e20
cmp word [edi + 2], 0x3a
je 0x402f47
xor esi, esi
mov ebx, edi
test ax, ax
je 0x402e6f
nop dword [eax]
test esi, esi
jne 0x402e5b
movzx eax, word [ebx]
push 8
push eax
call fcn.0041f340
add esp, 8
test eax, eax
jne 0x402e6f
movzx eax, word [ebx]
push eax
push str.___
call fcn.0041de51
add esp, 8
test eax, eax
jne 0x402e6f
xor eax, eax
cmp word [ebx], 0x22
sete al
add ebx, 2
xor esi, eax
cmp word [ebx], 0
jne 0x402e30
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, ebx
sub eax, edi
sar eax, 1
lea eax, [ecx + eax*2]
mov ecx, ebx
lea edx, [eax + 2]
mov dword [esp + 0x1c], eax
mov edi, edx
sub edi, ebx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x402e90
mov ecx, esi
mov dword [esp + 0x24], ecx
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402ea6
sub esi, ecx
add edx, 0xfffffffe
mov ax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x402eb6
mov ecx, esi
mov edi, edx
shr ecx, 2
xor eax, eax
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov edx, edi
mov word [ebx], ax
mov ebx, dword [esp + 0x20]
mov ecx, ebx
sub edx, ebx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402ef0
movzx eax, word [edi]
push 0x103
push eax
call fcn.0041f340
add esp, 8
test eax, eax
je 0x402fdf
mov ecx, 0x436c7c
lea eax, [edi + 2]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402f67
test dx, dx
je 0x402f43
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402f67
add eax, 4
add ecx, 4
test dx, dx
jne 0x402f21
xor eax, eax
jmp 0x402f6c
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f50
sub ecx, edx
sar ecx, 1
lea ebx, [edi + ecx*2]
jmp 0x402e73
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402fdf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea esi, [eax + 1]
call edi
test eax, eax
jne 0x402fc3
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2d2], 0x5c003a
mov ax, word [ecx]
mov word [esp + 0x2d0], ax
xor eax, eax
mov word [esp + 0x2d6], ax
lea eax, [esp + 0x2d0]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x402fc3
mov edx, 0x152
mov ecx, 0x44a020
call fcn.0041cc00
xor eax, eax
test esi, esi
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x44d8]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov esi, ebx
mov ecx, ebx
test ax, ax
je 0x40300a
mov edx, eax
nop dword [eax]
cmp dx, 0x22
je 0x402ffc
mov word [ecx], dx
add ecx, 2
movzx eax, word [esi + 2]
add esi, 2
mov edx, eax
test ax, ax
jne 0x402ff0
xor eax, eax
lea edx, [esp + 0x2d8]
mov word [ecx], ax
mov ecx, ebx
call fcn.0041c710
test eax, eax
jne 0x403055
push edi
push 0x6c
push 0x44a020
call fcn.0041cd80
add esp, 0xc
mov dword [0x43bbd4], 0x2331
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x44d8]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
cmp dword [0x43bbd0], 0
mov ecx, 0x20
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov dword [esp + 0x20], esi
mov word [eax], cx
jne 0x4030c1
cmp dword [0x43be70], 1
je 0x4030c1
push 0x104
push 0x44a200
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push edi
push 0x44a200
push 0x436c60
lea eax, [esp + 0xa4]
push 0x104
push eax
call fcn.00402bb0
add esp, 0x14
mov dword [0x43bbe8], 1
lea eax, [esp + 0x98]
push eax
call esi
lea eax, [esp + 0x2d8]
push 0x2e
push eax
call fcn.0041df18
mov esi, eax
add esp, 8
test esi, esi
je 0x403140
push 0x436c80
push esi
call fcn.0041f4c2
add esp, 8
test eax, eax
je 0x4030fd
push str..cmd
push esi
call fcn.0041f4c2
add esp, 8
test eax, eax
jne 0x403140
mov ecx, dword [esp + 0x1c]
cmp word [ecx + 2], 0x20
lea eax, [ecx + 2]
jne 0x403119
nop dword [eax + eax]
add eax, 2
cmp word [eax], 0x20
je 0x403110
push dword [esp + 0x2d0]
xor edx, edx
mov word [ecx], dx
mov edx, edi
push eax
lea ecx, [esp + 0x2e0]
call fcn.00401a60
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x40341b
push 0x20
push ebx
call fcn.0041de51
add esp, 8
lea edx, [esp + 0x4e0]
mov ecx, 0x436be8
test eax, eax
mov esi, 0x436c98
cmove esi, ecx
mov ecx, esi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x403163
lea ecx, [esp + 0x4e0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403180
sub ecx, edx
mov edi, 0x1fff
sar ecx, 1
mov eax, edi
sub eax, ecx
push eax
lea eax, [esp + 0x4e4]
push ebx
push eax
call fcn.0041fff1
lea ecx, [esp + 0x4ec]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4031b4
sub ecx, edx
mov eax, edi
sar ecx, 1
sub eax, ecx
push eax
lea eax, [esp + 0x4e4]
push esi
push eax
call fcn.0041fff1
mov esi, dword [esp + 0x28]
add esp, 0xc
add esi, 2
cmp word [esi], 0
je 0x403246
lea ecx, [esp + 0x4e0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4031f0
sub ecx, edx
mov eax, edi
sar ecx, 1
sub eax, ecx
push eax
lea eax, [esp + 0x4e4]
push 0x436ba0
push eax
call fcn.0041fff1
lea ecx, [esp + 0x4ec]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403223
sub ecx, edx
lea eax, [esp + 0x4e0]
sar ecx, 1
sub edi, ecx
push edi
push esi
push eax
call fcn.0041fff1
add esp, 0xc
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
xor eax, eax
push 7
push dword [0x44a000]
mov word [esp + 0x82], ax
mov eax, 0xa
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0
movlpd qword [esp + 0x72], xmm0
movlpd qword [esp + 0x7a], xmm0
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], ax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x500]
push eax
lea eax, [esp + 0x2fc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4032f3
push dword [esp + 0x2c]
call ebx
mov esi, dword [esp + 0x28]
jmp 0x403312
push 1
push 0
push esi
lea edx, [esp + 0x2e4]
mov ecx, 0x8040
call fcn.00402d20
mov esi, eax
add esp, 0xc
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov word [eax], cx
test esi, esi
je 0x4033e2
cmp dword [0x43bbd0], ecx
jne 0x4033a0
cmp dword [0x43be70], ecx
jne 0x4033a0
mov eax, dword [0x43bc5c]
test eax, eax
je 0x4033a0
cmp dword [0x43be74], ecx
je 0x4033a0
push ecx
push 0x18
lea ecx, [esp + 0x88]
push ecx
push 0
push esi
call eax
test eax, eax
js 0x4033a0
lea eax, [esp + 0x2d0]
push eax
push 0x238
lea eax, [esp + 0xa0]
push eax
lfence
push dword [esp + 0x90]
push esi
call dword [0x43be74]
test eax, eax
js 0x4033a0
cmp dword [esp + 0x2d0], 0x238
jne 0x4033a0
xor eax, eax
cmp dword [esp + 0x14c], 3
sete al
test eax, eax
je 0x4033da
push 0x44a1e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x44a1e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x18]
mov dword [0x43bbd4], eax
push dword [esp + 0x28]
call ebx
jmp 0x403407
push dword [esp + 0x14]
push 0x6c
push 0x44a020
call fcn.0041cd80
add esp, 0xc
mov dword [0x43bbd4], 0x2331
mov dword [esp + 0x18], 1
push 7
push dword [0x44a000]
call edi
push 3
push dword [0x44a080]
call edi
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, eax
cmp dword [0x44a1cc], edi
jne 0x40343b
cmp dword [0x44a1d0], esi
je 0x403440
call fcn.00411500
mov edx, dword [0x44a008]
or ecx, 0xffffffff
mov dword [0x44a1cc], edi
mov ebx, 0xfde9
mov dword [0x44a1d0], esi
cmp edx, 1
jne 0x403467
mov dword [0x44a00c], edi
jmp 0x403474
cmp edx, 4
mov eax, ecx
cmove eax, ebx
mov dword [0x44a00c], eax
mov edx, dword [0x44a088]
cmp edx, 1
jne 0x403487
mov dword [0x44a08c], esi
jmp 0x403494
cmp edx, 4
mov eax, ecx
cmove eax, ebx
mov dword [0x44a08c], eax
mov eax, dword [0x44a048]
cmp eax, 1
jne 0x4034a6
mov dword [0x44a04c], esi
jmp 0x4034b2
cmp eax, 4
cmove ecx, ebx
mov dword [0x44a04c], ecx
cmp dword [0x43bbd0], 0
jne 0x4034d7
cmp dword [0x43bbe8], 0
je 0x4034d7
push 0x44a200
call dword [esp + 0x24]
mov dword [0x43bbe8], 0
mov ecx, dword [esp + 0x44e4]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret