Function at 0x45a940
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 0x45aec5
mov edi, dword [edx]
test edi, edi
je 0x45aec5
xor ebx, ebx
lea esi, [esi]
add ebx, 1
mov esi, dword [edx + ebx*4]
lea ecx, [ebx*4]
test esi, esi
jne 0x45a970
lea eax, [ecx + 0x1e]
and eax, 0xfffffff0
call fcn.00470cf0
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], 0x45a8b0
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 0x45a9d8
mov ecx, edi
mov ebx, dword [ebp - 0x1c]
xor esi, esi
mov dword [esp], ecx
mov edi, dword [ebp - 0x2c]
call fcn.00452ed0
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.0045c6f0
cmp esi, ebx
lea edx, [eax + 1]
jl 0x45aa06
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 0x45aed9
mov ebx, 0x4d121e
mov ecx, ebx
xor esi, esi
movzx eax, byte [ecx]
test al, al
je 0x45aa91
cmp al, 0x3b
mov eax, ecx
jne 0x45aa68
jmp 0x45ad51
cmp dl, 0x3b
je 0x45aa72
add eax, 1
movzx edx, byte [eax]
test dl, dl
jne 0x45aa63
mov byte [ebp - 0x1c], dl
mov edx, eax
sub edx, ecx
cmp esi, edx
cmovb esi, edx
cmp byte [ebp - 0x1c], 0x3b
je 0x45ad51
mov ecx, eax
movzx eax, byte [ecx]
test al, al
jne 0x45aa58
lea eax, [esi + edi + 6]
mov esi, ebx
mov dword [esp], eax
call fcn.00452ed0
mov dword [ebp - 0x28], eax
movzx eax, byte [ebx]
test al, al
je 0x45aeb1
cmp al, 0x3b
jne 0x45aaba
jmp 0x45aeb1
cmp al, 0x3b
je 0x45aac4
add esi, 1
movzx eax, byte [esi]
test al, al
jne 0x45aab6
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 0x45aaed
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 0x45ab1f
jmp 0x45af1a
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x45ab30
cmp al, 0x2f
jne 0x45ab15
mov byte [ebx], 0x5c
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x45ab1f
mov edi, 0x4d1254
mov eax, str..com
mov dword [ebp - 0x1c], esi
mov esi, edi
mov edi, ebx
mov ebx, dword [ebp - 0x28]
jmp 0x45ab53
add esi, 4
mov eax, dword [esi]
test eax, eax
je 0x45ae97
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 0x45ab46
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 0x45af2d
add eax, 4
xor edi, edi
mov dword [ebp - 0x20], eax
movzx ecx, byte [edx]
test cl, cl
je 0x45aeb9
mov dword [ebp - 0x1c], 0
xor eax, eax
jmp 0x45abf0
movzx ecx, byte [edx + eax + 1]
lea ebx, [eax + 1]
mov esi, ebx
test cl, cl
je 0x45ac40
mov eax, ebx
cmp cl, 9
je 0x45abfa
cmp cl, 0x20
jne 0x45ac01
mov dword [ebp - 0x1c], 1
cmp cl, 0x22
jne 0x45abe0
lea ecx, [eax - 1]
cmp ecx, 0xffffffff
je 0x45ac28
cmp byte [edx + eax - 1], 0x5c
je 0x45ac1d
jmp 0x45ac28
cmp byte [edx + ecx], 0x5c
jne 0x45ac28
sub ecx, 1
add edi, 1
cmp ecx, 0xffffffff
jne 0x45ac17
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 0x45abee
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x45ad6b
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 0x45abc8
mov dword [esp], edi
call fcn.00452ed0
mov esi, dword [ebp - 0x24]
mov ebx, dword [esi]
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x45af25
lea edi, [esi + 4]
mov dword [ebp - 0x20], edi
mov edi, eax
movzx eax, byte [ebx]
test al, 0xdf
je 0x45ae76
cmp al, 9
je 0x45ae76
cmp al, 0x22
je 0x45ae76
xor edx, edx
jmp 0x45acba
mov ecx, eax
and ecx, 0xfffffffd
cmp cl, 0x20
je 0x45ae76
cmp al, 9
je 0x45ae76
add edx, 1
movzx eax, byte [ebx + edx]
test al, al
jne 0x45aca4
mov dword [ebp - 0x24], 0
mov edx, dword [esi]
movzx ecx, byte [edx]
test cl, cl
je 0x45ad7b
mov eax, 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov ebx, 0xffffffff
jmp 0x45ad12
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 0x45ad80
mov edi, dword [ebp - 0x1c]
cmp cl, 0x22
jne 0x45acf0
cmp ebx, 0xffffffff
mov ecx, ebx
je 0x45ae88
cmp byte [edx + ebx], 0x5c
mov edx, edi
je 0x45ad38
jmp 0x45ad47
mov edi, dword [esi]
cmp byte [edi + ecx], 0x5c
jne 0x45ad47
sub ecx, 1
add edx, 1
cmp ecx, 0xffffffff
mov byte [edx - 1], 0x5c
jne 0x45ad30
lea edi, [edx + 1]
mov byte [edx], 0x5c
mov edx, dword [esi]
jmp 0x45acf0
add eax, 1
mov ecx, eax
jmp 0x45aa8a
sub eax, 1
add edi, 1
cmp eax, 0xffffffff
je 0x45ad71
cmp byte [edx + eax], 0x5c
je 0x45ad60
mov eax, 2
jmp 0x45ac4d
mov dword [ebp - 0x1c], edi
xor edi, edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x45adc0
lea eax, [edi - 1]
cmp eax, 0xffffffff
je 0x45aed1
cmp byte [edx + edi - 1], 0x5c
mov edx, dword [ebp - 0x1c]
je 0x45ada8
jmp 0x45adb7
mov ecx, dword [esi]
cmp byte [ecx + eax], 0x5c
jne 0x45adb7
sub eax, 1
add edx, 1
cmp eax, 0xffffffff
mov byte [edx - 1], 0x5c
jne 0x45ada0
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 0x45ac85
mov esi, dword [ebp - 0x30]
mov byte [edi - 1], 0
test esi, esi
je 0x45af7f
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 0x45af5f
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 0x45accc
mov edx, edi
lea edi, [edx + 1]
mov byte [edx], 0x5c
mov edx, dword [esi]
jmp 0x45acf0
mov esi, dword [ebp - 0x1c]
movzx eax, byte [esi]
test al, al
je 0x45af35
mov ebx, esi
test al, al
mov esi, ebx
jne 0x45aaad
mov eax, dword [ebp - 0x28]
jmp 0x45aaed
mov eax, 2
xor esi, esi
jmp 0x45ac4d
mov dword [ebp - 0x2c], 0
jmp 0x45aa23
mov edx, dword [ebp - 0x1c]
jmp 0x45adb7
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x45aa48
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x45aa48
mov dword [esp], str.PATH
call sub.msvcrt.dll_getenv
test eax, eax
mov ebx, eax
jne 0x45aa4d
jmp 0x45aa48
mov ebx, dword [ebp - 0x28]
lea esi, [esi]
jmp 0x45ab30
mov edi, dword [ebp - 0x30]
jmp 0x45adde
xor edi, edi
nop
jmp 0x45ac65
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 0x45ae6e
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 0x45ae6e
mov ebx, dword [ebp - 0x28]
jmp 0x45af42