Function at 0x469430
Capabilities:
Create process on windows
Create process suspended
Delete file
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x4a0
mov eax, dword [0x1163ce4]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
test eax, eax
je 0x469950
mov eax, dword [0x11638a8]
movsx ecx, byte [0x503648]
mov dword [0x50273c], eax
add ecx, 1
mov eax, 0x92492493
imul ecx
mov eax, ecx
sar eax, 0x1f
add edx, ecx
sar edx, 2
sub edx, eax
lea eax, [edx*8]
sub eax, edx
sub ecx, eax
mov byte [0x503648], cl
mov eax, ecx
and ecx, 0xfd
jne 0x4697c0
mov ecx, dword [0xd621d0]
mov dword [0x1163ce0], 0
test ecx, ecx
jle 0x4696f7
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ebx, [esp + 0xa0]
jmp 0x4695a3
mov dword [esp], 0x51c781
call sub.msvcrt.dll_getenv
mov dword [esp], 0x11638e0
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], 0x51c78b
call sub.msvcrt.dll_getenv
mov dword [esp], 0x11638e0
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov eax, dword [0x1163ce0]
mov dword [esp], 0x51c794
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0xd61ae0
mov dword [esp + 4], eax
call fcn.00402550
mov dword [esp], 0x11638e0
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
cmp byte [0x503648], 2
je 0x469615
mov eax, dword [0x1163ce0]
mov edx, dword [eax*4 + 0xd62180]
mov byte [eax + 0xd61ac0], 1
cmp edx, 0xffffffff
je 0x4697d0
cmp byte [edx + 0xd61ac0], 0
jne 0x46958d
mov edx, dword [edx*4 + 0xd62120]
mov byte [esp + eax + 0x48], 1
mov dword [eax*4 + 0xd62120], edx
mov ecx, dword [0xd621d0]
add eax, 1
mov dword [0x1163ce0], eax
cmp eax, ecx
jge 0x4696f0
mov dword [esp], 0x51c781
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4695c7
mov dword [esp], 0x51c78b
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x4694e0
mov eax, dword [0x1163ce0]
mov dword [esp], 0x51c7a3
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0xd61ae0
mov dword [esp + 4], eax
call fcn.00402550
mov dword [esp + 4], 0x400
mov dword [esp + 0xc], eax
mov eax, dword [0xde84ac]
mov dword [esp], 0x11638e0
mov dword [esp + 8], eax
call fcn.00404e10
cmp byte [0x503648], 2
jne 0x469555
mov dword [esp], 0x11638e0
call sub.msvcrt.dll_remove
lea edx, [esp + 0x60]
xor eax, eax
mov ecx, 0x10
mov edi, edx
cmp dword [0x1163ce4], 1
mov dword [esp + 0x5c], 0x44
rep stosd dword es:[edi], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
je 0x4698c0
mov eax, dword [0x1163ce0]
mov dword [esp + 8], 0x11638e0
lea edi, [esp + 0x38]
mov dword [esp], str.cmd.exe__c__ping__n_1__w_1000__s____s_
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0xd61ae0
mov dword [esp + 4], eax
call fcn.00402550
mov dword [esp + 0x24], edi
lea edi, [esp + 0x5c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call esi
sub esp, 0x28
mov eax, dword [0x1163ce0]
jmp 0x46958d
movzx eax, byte [0x503648]
test al, al
jne 0x4697c0
movsx ebx, byte [0x11638b4]
mov eax, 0x55555556
add ebx, 1
imul ebx
mov eax, ebx
sar eax, 0x1f
sub edx, eax
lea eax, [edx + edx*2]
sub ebx, eax
mov byte [0x11638b4], bl
je 0x4699d0
mov dword [0x1163ce0], 0
xor eax, eax
test ecx, ecx
jle 0x46979d
lea esi, [esi]
nop
cmp byte [esp + eax + 0x48], 0
je 0x469838
mov edx, dword [eax*4 + 0xd62120]
mov dword [esp + 0x18], 0x11638b8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0x51c7f5
mov dword [esp + 8], 0x51c7f7
mov dword [esp + 4], 0x51c7fd
mov dword [esp], 0
call fcn.004a3430
mov eax, dword [0x1163ce0]
mov ecx, dword [0xd621d0]
add eax, 1
mov dword [0x1163ce0], eax
cmp eax, ecx
jl 0x469740
call fcn.004075b0
mov edx, dword [0x54b7c4]
mov eax, dword [edx + 0x40]
mov edx, dword [edx + 0x24]
mov byte [eax], 1
mov dword [eax + 4], edx
mov dword [esp], 0
call fcn.004086c0
add esp, 0x4a0
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x51c7ef
mov dword [esp], 0x11638e0
call fcn.00445e10
mov dword [0x11638c0], eax
test eax, eax
je 0x4696dd
mov dword [esp + 8], 0xa0
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00445ec0
test eax, eax
jne 0x4699e8
mov dword [esp + 4], 0x51c7f1
mov eax, dword [0x1163ce0]
mov dword [esp], ebx
mov byte [eax + 0xd61ac0], 0
call fcn.00405160
test eax, eax
jne 0x469850
mov eax, dword [0x11638c0]
jmp 0x4697f1
add eax, 1
mov dword [0x1163ce0], eax
cmp eax, ecx
jl 0x469740
jmp 0x46979d
mov dword [esp + 4], 0x51c7f1
mov dword [esp], ebx
call fcn.00405160
xor ecx, ecx
mov dword [0x11638bc], eax
mov edx, eax
jmp 0x469880
sub edx, 1
mov ecx, 1
cmp edx, ebx
je 0x469980
cmp byte [edx], 0x3d
jne 0x469870
test cl, cl
je 0x4699c0
mov dword [0x11638bc], edx
cmp edx, ebx
je 0x469986
add edx, 1
mov dword [esp], edx
mov dword [0x11638bc], edx
call sub.msvcrt.dll_atoi
mov dword [0x11638b8], eax
jmp 0x469986
mov eax, dword [0x1163ce0]
mov dword [esp + 0xc], 0xd616c0
lea edi, [esp + 0x38]
mov dword [esp + 8], 0x11638e0
lea eax, [eax + eax*4]
mov dword [esp], str.ping_wrap.exe__s__s_s
shl eax, 4
add eax, 0xd61ae0
mov dword [esp + 4], eax
call fcn.00402550
mov dword [esp + 0x24], edi
lea edi, [esp + 0x5c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
jmp 0x4696dd
mov dword [esp + 4], 0
mov dword [esp], str.ping_wrap.exe
call sub.msvcrt.dll__access
cmp eax, 1
mov eax, 1
sbb eax, 0xffffffff
mov dword [0x1163ce4], eax
jmp 0x46946e
mov dword [0x11638bc], ebx
mov eax, dword [0x11638c0]
mov dword [esp], eax
call fcn.00445e70
mov eax, dword [0x1163ce0]
cmp byte [eax + 0xd61ac0], 0
jne 0x46958d
mov edx, dword [0x11638b8]
mov byte [esp + eax + 0x48], 1
mov dword [eax*4 + 0xd62120], edx
jmp 0x46958d
mov edx, eax
jmp 0x469893
call fcn.004781c0
test al, al
jne 0x469a13
mov ecx, dword [0xd621d0]
jmp 0x469728
mov eax, dword [0x11638c0]
mov dword [esp], eax
call fcn.00445e70
mov eax, dword [0x1163ce0]
cmp byte [eax + 0xd61ac0], 0
jne 0x46958d
mov byte [eax + 0xd61ac0], 1
jmp 0x46958d
call fcn.00478110
test al, al
je 0x4699d9
call fcn.00409190
call fcn.004780d0
jmp 0x4699d9