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

Disassembly:
sub esp, 0x554
mov ecx, 0x41
xor eax, eax
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strrchr]
push esi
push edi
lea edi, [esp + 0x60]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x568]
push eax
call ebp
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000289f
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret 8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x20
push esi
stosb byte es:[edi], al
call ebp
add esp, 8
test eax, eax
je 0x100028fa
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x10002920
cmp byte [ecx + esi], 0x20
je 0x100028e5
dec ecx
test ecx, ecx
jg 0x100028d8
jmp 0x10002920
push ecx
lea ecx, [esp + 0x168]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x10002920
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x164]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0x104
lea ecx, [esp + 0x68]
push 0
push ecx
push 1
lea edx, [esp + 0x178]
push 0
push edx
push accept
call fcn.1000cda0
add esp, 0x20
test eax, eax
jne 0x10002959
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret 8
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x36c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x36c]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
mov byte [esp + 0x274], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x275]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x104
lea edx, [esp + 0x27c]
push 0
stosb byte es:[edi], al
push edx
push 2
lea eax, [esp + 0x38c]
push 0
push eax
push accept
call fcn.1000cda0
add esp, 0x2c
test eax, eax
jne 0x100029e2
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret 8
lea ecx, [esp + 0x60]
push 0x104
lea edx, [esp + 0x26c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [esp + 0x60]
push 0x100d1044
push eax
call esi
add esp, 8
test eax, eax
jne 0x10002a49
lea ecx, [esp + 0x60]
push 0x100d1040
push ecx
call esi
add esp, 8
test eax, eax
jne 0x10002a49
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x60]
push 0x100d103c
push edx
call esi
mov eax, dword [esp + 0x564]
lea ecx, [esp + 0x60]
push eax
push ecx
call esi
jmp 0x10002a58
mov edx, dword [esp + 0x564]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x568]
mov dword [esp + 0xc], 0x44
test eax, eax
je 0x10002a82
mov dword [esp + 0x14], str.WinSta0Default
jmp 0x10002a91
mov dword [esp + 0x38], 1
mov word [esp + 0x3c], 0
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x7c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x554
ret 8