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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x28], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x45a9e5
mov edi, dword [edx]
test edi, edi
je 0x45a9e5
xor ebx, ebx
lea esi, [esi]
add ebx, 1
mov esi, dword [edx + ebx*4]
lea ecx, [ebx*4]
test esi, esi
jne 0x45a490
lea eax, [ecx + 0x1e]
and eax, 0xfffffff0
call fcn.00470810
xor esi, esi
sub esp, eax
lea edi, [esp + 0x37]
and edi, 0xfffffff0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [ebp - 0x2c], edx
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0xc], 0x45a3d0
mov dword [esp + 8], 4
call sub.msvcrt.dll_qsort
mov edx, dword [ebp - 0x2c]
mov ecx, 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], edi
mov edi, ecx
mov ebx, edx
mov eax, dword [ebx + esi*4]
add esi, 1
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp esi, dword [ebp - 0x1c]
lea edi, [edi + eax + 1]
jl 0x45a4f8
mov ecx, edi
mov ebx, dword [ebp - 0x1c]
xor esi, esi
mov dword [esp], ecx
mov edi, dword [ebp - 0x2c]
call fcn.004529f0
mov dword [ebp - 0x2c], eax
mov edx, eax
mov eax, dword [edi + esi*4]
add esi, 1
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0045c210
cmp esi, ebx
lea edx, [eax + 1]
jl 0x45a526
mov byte [eax + 1], 0
mov esi, dword [ebp - 0x20]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp + 4], 0x2f
mov dword [esp], esi
mov edi, eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x45a9f9
mov ebx, 0x4d111e
mov ecx, ebx
xor esi, esi
movzx eax, byte [ecx]
test al, al
je 0x45a5b1
cmp al, 0x3b
mov eax, ecx
jne 0x45a588
jmp 0x45a871
cmp dl, 0x3b
je 0x45a592
add eax, 1
movzx edx, byte [eax]
test dl, dl
jne 0x45a583
mov byte [ebp - 0x1c], dl
mov edx, eax
sub edx, ecx
cmp esi, edx
cmovb esi, edx
cmp byte [ebp - 0x1c], 0x3b
je 0x45a871
mov ecx, eax
movzx eax, byte [ecx]
test al, al
jne 0x45a578
lea eax, [esi + edi + 6]
mov esi, ebx
mov dword [esp], eax
call fcn.004529f0
mov dword [ebp - 0x28], eax
movzx eax, byte [ebx]
test al, al
je 0x45a9d1
cmp al, 0x3b
jne 0x45a5da
jmp 0x45a9d1
cmp al, 0x3b
je 0x45a5e4
add esi, 1
movzx eax, byte [esi]
test al, al
jne 0x45a5d6
mov eax, dword [ebp - 0x28]
mov edi, esi
sub edi, ebx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x28]
cmp esi, ebx
lea ecx, [eax + edi]
mov eax, ecx
je 0x45a60d
add eax, 1
mov byte [ecx], 0x5c
mov ebx, dword [ebp - 0x20]
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcpy
xor eax, eax
mov ebx, dword [ebp - 0x28]
cmp byte [esi], 0x3b
sete al
add esi, eax
movzx eax, byte [ebx]
test al, al
jne 0x45a63f
jmp 0x45aa3a
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x45a650
cmp al, 0x2f
jne 0x45a635
mov byte [ebx], 0x5c
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x45a63f
mov edi, 0x4d1154
mov eax, str..com
mov dword [ebp - 0x1c], esi
mov esi, edi
mov edi, ebx
mov ebx, dword [ebp - 0x28]
jmp 0x45a673
add esi, 4
mov eax, dword [esi]
test eax, eax
je 0x45a9b7
mov byte [edi], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x45a666
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], eax
call eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
sub esp, 4
test edx, edx
je 0x45aa4d
add eax, 4
xor edi, edi
mov dword [ebp - 0x20], eax
movzx ecx, byte [edx]
test cl, cl
je 0x45a9d9
mov dword [ebp - 0x1c], 0
xor eax, eax
jmp 0x45a710
movzx ecx, byte [edx + eax + 1]
lea ebx, [eax + 1]
mov esi, ebx
test cl, cl
je 0x45a760
mov eax, ebx
cmp cl, 9
je 0x45a71a
cmp cl, 0x20
jne 0x45a721
mov dword [ebp - 0x1c], 1
cmp cl, 0x22
jne 0x45a700
lea ecx, [eax - 1]
cmp ecx, 0xffffffff
je 0x45a748
cmp byte [edx + eax - 1], 0x5c
je 0x45a73d
jmp 0x45a748
cmp byte [edx + ecx], 0x5c
jne 0x45a748
sub ecx, 1
add edi, 1
cmp ecx, 0xffffffff
jne 0x45a737
movzx ecx, byte [edx + eax + 1]
add edi, 1
lea ebx, [eax + 1]
mov dword [ebp - 0x1c], 1
mov esi, ebx
test cl, cl
jne 0x45a70e
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x45a88b
xor eax, eax
add dword [ebp - 0x20], 4
lea edi, [edi + esi + 1]
add edi, eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax - 4]
test edx, edx
jne 0x45a6e8
mov dword [esp], edi
call fcn.004529f0
mov esi, dword [ebp - 0x24]
mov ebx, dword [esi]
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x45aa45
lea edi, [esi + 4]
mov dword [ebp - 0x20], edi
mov edi, eax
movzx eax, byte [ebx]
test al, 0xdf
je 0x45a996
cmp al, 9
je 0x45a996
cmp al, 0x22
je 0x45a996
xor edx, edx
jmp 0x45a7da
mov ecx, eax
and ecx, 0xfffffffd
cmp cl, 0x20
je 0x45a996
cmp al, 9
je 0x45a996
add edx, 1
movzx eax, byte [ebx + edx]
test al, al
jne 0x45a7c4
mov dword [ebp - 0x24], 0
mov edx, dword [esi]
movzx ecx, byte [edx]
test cl, cl
je 0x45a89b
mov eax, 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov ebx, 0xffffffff
jmp 0x45a832
movzx eax, byte [edx + eax]
lea ecx, [edi + 1]
mov dword [ebp - 0x1c], ecx
mov byte [edi], al
mov edx, dword [esi]
lea eax, [ebx + 2]
mov edi, eax
movzx ecx, byte [edx + ebx + 2]
add ebx, 1
test cl, cl
je 0x45a8a0
mov edi, dword [ebp - 0x1c]
cmp cl, 0x22
jne 0x45a810
cmp ebx, 0xffffffff
mov ecx, ebx
je 0x45a9a8
cmp byte [edx + ebx], 0x5c
mov edx, edi
je 0x45a858
jmp 0x45a867
mov edi, dword [esi]
cmp byte [edi + ecx], 0x5c
jne 0x45a867
sub ecx, 1
add edx, 1
cmp ecx, 0xffffffff
mov byte [edx - 1], 0x5c
jne 0x45a850
lea edi, [edx + 1]
mov byte [edx], 0x5c
mov edx, dword [esi]
jmp 0x45a810
add eax, 1
mov ecx, eax
jmp 0x45a5aa
sub eax, 1
add edi, 1
cmp eax, 0xffffffff
je 0x45a891
cmp byte [edx + eax], 0x5c
je 0x45a880
mov eax, 2
jmp 0x45a76d
mov dword [ebp - 0x1c], edi
xor edi, edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x45a8e0
lea eax, [edi - 1]
cmp eax, 0xffffffff
je 0x45a9f1
cmp byte [edx + edi - 1], 0x5c
mov edx, dword [ebp - 0x1c]
je 0x45a8c8
jmp 0x45a8d7
mov ecx, dword [esi]
cmp byte [ecx + eax], 0x5c
jne 0x45a8d7
sub eax, 1
add edx, 1
cmp eax, 0xffffffff
mov byte [edx - 1], 0x5c
jne 0x45a8c0
lea eax, [edx + 1]
mov dword [ebp - 0x1c], eax
mov byte [edx], 0x22
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add dword [ebp - 0x20], 4
lea edi, [eax + 1]
mov byte [eax], 0x20
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax - 4]
test ebx, ebx
jne 0x45a7a5
mov esi, dword [ebp - 0x30]
mov byte [edi - 1], 0
test esi, esi
je 0x45aa9f
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x45aa7f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [edi], 0x22
add edi, 1
mov dword [ebp - 0x24], 1
jmp 0x45a7ec
mov edx, edi
lea edi, [edx + 1]
mov byte [edx], 0x5c
mov edx, dword [esi]
jmp 0x45a810
mov esi, dword [ebp - 0x1c]
movzx eax, byte [esi]
test al, al
je 0x45aa55
mov ebx, esi
test al, al
mov esi, ebx
jne 0x45a5cd
mov eax, dword [ebp - 0x28]
jmp 0x45a60d
mov eax, 2
xor esi, esi
jmp 0x45a76d
mov dword [ebp - 0x2c], 0
jmp 0x45a543
mov edx, dword [ebp - 0x1c]
jmp 0x45a8d7
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x45a568
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x45a568
mov dword [esp], str.PATH
call sub.msvcrt.dll_getenv
test eax, eax
mov ebx, eax
jne 0x45a56d
jmp 0x45a568
mov ebx, dword [ebp - 0x28]
lea esi, [esi]
jmp 0x45a650
mov edi, dword [ebp - 0x30]
jmp 0x45a8fe
xor edi, edi
nop
jmp 0x45a785
mov eax, dword [ebp - 0x28]
xor ebx, ebx
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, 0xffffffff
jmp 0x45a98e
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 0xffffffff
jmp 0x45a98e
mov ebx, dword [ebp - 0x28]
jmp 0x45aa62