Function at 0x4c0700
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
xor ebx, ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
call fcn.004047d8
xor eax, eax
push ebp
push 0x4c0dbd
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402c08
mov byte [ebp - 5], 1
cmp dword [ebp - 4], 0
je 0x4c0784
mov eax, 0x14
call fcn.00402ed0
mov edx, dword [ebp - 4]
mov byte [edx], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
push eax
mov eax, 0x64
pop edx
sub eax, edx
mov ecx, 0xa
cdq
idiv ecx
mov byte [ebp - 5], al
mov byte [ebp - 0x11], 0
mov dl, 1
mov eax, dword [0x416230]
call fcn.00403504
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4c0d88
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, 0x4c0dd4
call fcn.00467d38
cmp dword [ebp - 0x18], 0
je 0x4c0841
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x134]
mov ecx, 1
mov eax, 0x4c0dec
call fcn.004670a0
xor edx, edx
mov eax, dword [0x4bfef4]
call fcn.004c211c
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c0e28
call fcn.004670a0
push ebp
call fcn.004c06cc
pop ecx
cmp dword [ebp - 0x10], 0
jne 0x4c094a
cmp dword [ebp - 0x18], 0
je 0x4c08ae
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.004092d4
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x134]
mov ecx, 1
mov eax, 0x4c0e64
call fcn.004670a0
jmp 0x4c094a
lea eax, [ebp - 0x121]
xor ecx, ecx
mov edx, 0x105
call fcn.00402eb0
push 0x105
lea eax, [ebp - 0x121]
push eax
push 0x4c0e88
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea edx, [ebp - 0x240]
lea eax, [ebp - 0x121]
call fcn.00409760
push dword [ebp - 0x240]
push 0x4c0ea0
push 0x4c0eac
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004046a8
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x134]
mov ecx, 1
mov eax, 0x4c0ec4
call fcn.004670a0
mov eax, dword [ebp - 0x10]
call fcn.00408e90
mov eax, dword [ebp - 0x10]
call fcn.00408e6c
test al, al
jne 0x4c09ae
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x134]
mov ecx, 1
mov eax, 0x4c0ef0
call fcn.004670a0
call fcn.00403d6c
jmp 0x4c0d8f
push ebp
call fcn.004c06cc
pop ecx
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c0f14
call fcn.004670a0
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 0x18]
call fcn.004092d4
mov ecx, dword [ebp - 0x244]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c1ca4
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c0f38
call fcn.004670a0
mov ecx, dword [ebp - 0x10]
mov edx, 0x4c0f64
mov eax, dword [ebp - 0xc]
call fcn.004c26bc
test al, al
jne 0x4c0a8b
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c0f84
call fcn.004670a0
call fcn.00403d6c
jmp 0x4c0d8f
push ebp
call fcn.004c06cc
pop ecx
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c0fa0
call fcn.004670a0
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c0fc0
call fcn.004670a0
push 0
push 0x4c0fe8
push dword [ebp - 0x10]
push 0x4c0ea0
push 0x4c0ff4
push 0x4c1010
lea eax, [ebp - 0x248]
mov edx, 5
call fcn.004046a8
mov eax, dword [ebp - 0x248]
call fcn.004047e8
push eax
call sub.kernel32.dll_WinExec
push 0
push 0x4c0fe8
push dword [ebp - 0x10]
push 0x4c0ea0
push 0x4c102c
push 0x4c1010
lea eax, [ebp - 0x24c]
mov edx, 5
call fcn.004046a8
mov eax, dword [ebp - 0x24c]
call fcn.004047e8
push eax
call sub.kernel32.dll_WinExec
push 0xa
call sub.kernel32.dll_Sleep_1
push 0
push 0x4c1044
call sub.kernel32.dll_WinExec
push dword [ebp - 0x10]
push 0x4c0ea0
push 0x4c0ff4
lea eax, [ebp - 0x250]
mov edx, 3
call fcn.004046a8
mov eax, dword [ebp - 0x250]
mov edx, 0x4c0dd4
call fcn.0046840c
push ebp
call fcn.004c06cc
pop ecx
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c1068
call fcn.004670a0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c19e4
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c1088
call fcn.004670a0
mov eax, dword [ebp - 0xc]
call fcn.004c1454
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c10ac
call fcn.004670a0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c1780
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c10d0
call fcn.004670a0
push ebp
call fcn.004c06cc
pop ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c2890
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c10ec
call fcn.004670a0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c00fc
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c110c
call fcn.004670a0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c1e6c
mov eax, dword [ebp - 0xc]
call fcn.004c0024
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00403484
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 4
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x4c112c
call fcn.004670a0
cmp dword [ebp - 4], 0
je 0x4c0d72
mov eax, dword [ebp - 4]
mov byte [eax], 0x64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0d8f
mov eax, dword [ebp - 0x1c]
call fcn.00403534
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0dc4
lea eax, [ebp - 0x250]
mov edx, 5
call fcn.0040434c
lea eax, [ebp - 0x18]
call fcn.00404328
lea eax, [ebp - 0x10]
call fcn.00404328
ret