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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7143
mov eax, dword fs:[0]
push eax
sub esp, 0xba0
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xaf4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa34]
push ecx
call fcn.100147b0
add esp, 8
mov dword [ebp - 4], 0
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.10088fa0
add esp, 0xc
lea ecx, [ebp - 0xa34]
call fcn.1000b540
push eax
push 0x100f2108
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.1000dd10
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp + 0xc]
call fcn.1000e560
test eax, eax
jbe 0x10026953
mov ecx, dword [ebp + 0xc]
call fcn.1000b540
push eax
lea ecx, [ebp - 0xa34]
call fcn.1000b540
push eax
push str.__s___s
push 0x400
lea edx, [ebp - 0xa18]
push edx
call fcn.1000dd10
add esp, 0x14
jmp 0x10026978
lea ecx, [ebp - 0xa34]
call fcn.1000b540
push eax
push str.__s_
push 0x400
lea eax, [ebp - 0xa18]
push eax
call fcn.1000dd10
add esp, 0x10
push 0
push 0
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0xae8], eax
cmp dword [ebp - 0xae8], 0
jne 0x100269f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Get_PATH_variable_failed__GLE:__d
lea ecx, [ebp - 0xbac]
push ecx
call fcn.10012300
add esp, 0xc
mov dword [ebp - 0xb2c], eax
mov edx, dword [ebp - 0xb2c]
push edx
mov ecx, dword [ebp + 0x1c]
call fcn.1000d550
lea ecx, [ebp - 0xbac]
call fcn.10002420
mov byte [ebp - 0xadd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa34]
call fcn.10002420
mov al, byte [ebp - 0xadd]
jmp 0x100270df
mov eax, dword [ebp - 0xae8]
add eax, 1
mov dword [ebp - 0xae8], eax
xor ecx, ecx
mov eax, dword [ebp - 0xae8]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10084df2
add esp, 4
mov dword [ebp - 0xb30], eax
mov eax, dword [ebp - 0xb30]
mov dword [ebp - 0xad8], eax
cmp dword [ebp - 0xad8], 0
jne 0x10026a62
mov byte [ebp - 0xade], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa34]
call fcn.10002420
mov al, byte [ebp - 0xade]
jmp 0x100270df
mov ecx, dword [ebp - 0xae8]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0xad8]
push edx
call fcn.10088fa0
add esp, 0xc
mov eax, dword [ebp - 0xae8]
push eax
mov ecx, dword [ebp - 0xad8]
push ecx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0xb34], eax
cmp dword [ebp - 0xb34], 0
jne 0x10026b4d
mov edx, dword [ebp - 0xad8]
mov dword [ebp - 0xb18], edx
mov eax, dword [ebp - 0xb18]
push eax
call fcn.10084dfb
add esp, 4
cmp dword [ebp - 0xb18], 0
jne 0x10026ad8
mov dword [ebp - 0xb38], 0
jmp 0x10026aee
mov dword [ebp - 0xad8], 0x8123
mov ecx, dword [ebp - 0xad8]
mov dword [ebp - 0xb38], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Get_PATH_variable_failed__GLE:__d
lea edx, [ebp - 0xb64]
push edx
call fcn.10012300
add esp, 0xc
mov dword [ebp - 0xb3c], eax
mov eax, dword [ebp - 0xb3c]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.1000d550
lea ecx, [ebp - 0xb64]
call fcn.10002420
mov byte [ebp - 0xadf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa34]
call fcn.10002420
mov al, byte [ebp - 0xadf]
jmp 0x100270df
mov ecx, dword [ebp + 0x10]
call fcn.1000e560
mov ecx, dword [ebp - 0xae8]
lea edx, [ecx + eax + 0x14]
mov dword [ebp - 0xb04], edx
xor ecx, ecx
mov eax, dword [ebp - 0xb04]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10084df2
add esp, 4
mov dword [ebp - 0xb40], eax
mov eax, dword [ebp - 0xb40]
mov dword [ebp - 0xadc], eax
cmp dword [ebp - 0xadc], 0
jne 0x10026c09
mov ecx, dword [ebp - 0xad8]
mov dword [ebp - 0xb1c], ecx
mov edx, dword [ebp - 0xb1c]
push edx
call fcn.10084dfb
add esp, 4
cmp dword [ebp - 0xb1c], 0
jne 0x10026bcf
mov dword [ebp - 0xb48], 0
jmp 0x10026be5
mov dword [ebp - 0xad8], 0x8123
mov eax, dword [ebp - 0xad8]
mov dword [ebp - 0xb48], eax
mov byte [ebp - 0xae0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa34]
call fcn.10002420
mov al, byte [ebp - 0xae0]
jmp 0x100270df
mov ecx, dword [ebp - 0xb04]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0xadc]
push edx
call fcn.10088fa0
add esp, 0xc
mov eax, dword [ebp - 0xad8]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.1000b540
push eax
push str.PATH_s__s_
mov ecx, dword [ebp - 0xb04]
push ecx
mov edx, dword [ebp - 0xadc]
push edx
call fcn.1000dd10
add esp, 0x14
mov eax, dword [ebp - 0xadc]
push eax
call fcn.1000b410
add esp, 4
mov ecx, dword [ebp - 0xad8]
mov dword [ebp - 0xb08], ecx
mov edx, dword [ebp - 0xb08]
push edx
call fcn.10084dfb
add esp, 4
cmp dword [ebp - 0xb08], 0
jne 0x10026c8d
mov dword [ebp - 0xb4c], 0
jmp 0x10026ca3
mov dword [ebp - 0xad8], 0x8123
mov eax, dword [ebp - 0xad8]
mov dword [ebp - 0xb4c], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0xaec], eax
mov ecx, dword [ebp - 0xaec]
mov dword [ebp - 0xb0c], ecx
mov dword [ebp - 0xaf0], 0
mov edx, dword [ebp - 0xaec]
movzx eax, word [edx]
test eax, eax
jne 0x10026ce0
mov ecx, dword [ebp - 0xaec]
movzx edx, word [ecx + 2]
test edx, edx
je 0x10026d00
mov eax, dword [ebp - 0xaf0]
add eax, 1
mov dword [ebp - 0xaf0], eax
mov ecx, dword [ebp - 0xaec]
add ecx, 2
mov dword [ebp - 0xaec], ecx
jmp 0x10026cc5
mov edx, dword [ebp - 0xaf0]
add edx, 2
mov dword [ebp - 0xaf0], edx
lea ecx, [ebp - 0xa64]
call fcn.1000b330
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xaf0]
push eax
mov ecx, dword [ebp - 0xb0c]
push ecx
lea ecx, [ebp - 0xa64]
call fcn.1000c740
mov edx, dword [ebp - 0xb0c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
mov byte [ebp - 0xafd], al
lea ecx, [ebp - 0xa4c]
call fcn.1000b330
mov byte [ebp - 4], 2
mov dword [ebp - 0xaf8], 0
push 0
push 0
lea ecx, [ebp - 0xa64]
call fcn.1000e280
mov dword [ebp - 0xafc], eax
mov byte [ebp - 0xad1], 0
cmp dword [ebp - 0xafc], 0xffffffff
je 0x10026ef6
mov ecx, dword [ebp - 0xafc]
sub ecx, dword [ebp - 0xaf8]
push ecx
mov edx, dword [ebp - 0xaf8]
push edx
lea eax, [ebp - 0xa7c]
push eax
lea ecx, [ebp - 0xa64]
call fcn.10013c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa7c]
call fcn.1000e560
test eax, eax
jbe 0x10026eb9
movzx ecx, byte [ebp - 0xad1]
test ecx, ecx
jne 0x10026e38
push str.path
push 5
push 0
lea edx, [ebp - 0xa7c]
push edx
lea eax, [ebp - 0xb7c]
push eax
lea ecx, [ebp - 0xa19]
call fcn.10025300
mov dword [ebp - 0xb20], eax
mov ecx, dword [ebp - 0xb20]
mov dword [ebp - 0xb24], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xaf4]
or edx, 1
mov dword [ebp - 0xaf4], edx
mov ecx, dword [ebp - 0xb24]
call fcn.1002fd50
test eax, eax
jne 0x10026e38
mov dword [ebp - 0xb10], 1
jmp 0x10026e42
mov dword [ebp - 0xb10], 0
mov al, byte [ebp - 0xb10]
mov byte [ebp - 0xae1], al
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0xaf4]
and ecx, 1
je 0x10026e72
and dword [ebp - 0xaf4], 0xfffffffe
lea ecx, [ebp - 0xb7c]
call fcn.10002420
movzx edx, byte [ebp - 0xae1]
test edx, edx
je 0x10026e98
mov eax, dword [ebp - 0xadc]
push eax
lea ecx, [ebp - 0xa4c]
call fcn.10025b90
mov byte [ebp - 0xad1], 1
jmp 0x10026eaa
lea ecx, [ebp - 0xa7c]
push ecx
lea ecx, [ebp - 0xa4c]
call fcn.10025b70
push 0
push 1
lea ecx, [ebp - 0xa4c]
call fcn.1002f450
mov edx, dword [ebp - 0xafc]
add edx, 1
mov dword [ebp - 0xaf8], edx
mov eax, dword [ebp - 0xaf8]
push eax
push 0
lea ecx, [ebp - 0xa64]
call fcn.1000e280
mov dword [ebp - 0xafc], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa7c]
call fcn.10002420
jmp 0x10026d81
movzx ecx, byte [ebp - 0xad1]
test ecx, ecx
jne 0x10026f13
mov edx, dword [ebp - 0xadc]
push edx
lea ecx, [ebp - 0xa4c]
call fcn.10025b90
push 0
push 2
lea ecx, [ebp - 0xa4c]
call fcn.1002f450
mov eax, dword [ebp - 0xadc]
mov dword [ebp - 0xb14], eax
mov ecx, dword [ebp - 0xb14]
push ecx
call fcn.10084dfb
add esp, 4
cmp dword [ebp - 0xb14], 0
jne 0x10026f52
mov dword [ebp - 0xb28], 0
jmp 0x10026f68
mov dword [ebp - 0xadc], 0x8123
mov edx, dword [ebp - 0xadc]
mov dword [ebp - 0xb28], edx
mov dword [ebp - 0xac0], 0x44
push 0x40
push 0
lea eax, [ebp - 0xabc]
push eax
call fcn.10088fa0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0xad0], ecx
mov dword [ebp - 0xacc], ecx
mov dword [ebp - 0xac8], ecx
mov dword [ebp - 0xac4], ecx
lea edx, [ebp - 0xad0]
push edx
lea eax, [ebp - 0xac0]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xa4c]
call fcn.1000b540
push eax
push 0x400
push 0
push 0
push 0
lea edx, [ebp - 0xa18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1002705b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed__GLE:__d
lea eax, [ebp - 0xb94]
push eax
call fcn.10012300
add esp, 0xc
mov dword [ebp - 0xb44], eax
mov ecx, dword [ebp - 0xb44]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.1000d550
lea ecx, [ebp - 0xb94]
call fcn.10002420
mov byte [ebp - 0xae2], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4c]
call fcn.10002420
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa64]
call fcn.10002420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa34]
call fcn.10002420
mov al, byte [ebp - 0xae2]
jmp 0x100270df
cmp dword [ebp - 0xacc], 0
je 0x10027071
mov edx, dword [ebp - 0xacc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x18], 0
je 0x10027084
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0xad0]
mov dword [eax], ecx
jmp 0x10027091
mov edx, dword [ebp - 0xad0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x100270a2
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xac8]
mov dword [eax], ecx
mov byte [ebp - 0xae3], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4c]
call fcn.10002420
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa64]
call fcn.10002420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa34]
call fcn.10002420
mov al, byte [ebp - 0xae3]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret