Function at 0x1002534
Capabilities:
Create process on windows
Query environment variable
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa6c
mov eax, dword [0x10070f0]
push ebx
mov ebx, dword [sym.imp.ntdll.dll__wcsicmp]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x1001304
xor esi, esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xa18], esi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002586
push 0x10012e8
push edi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002586
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
jmp 0x10025a1
push 0x104
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0xa18], 1
push 0x10012b4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10025b1
lea edi, [ebp - 0x210]
xor ebx, ebx
cmp dword [ebp + 0x14], esi
je 0x10026db
cmp dword [0x1007100], esi
jne 0x10025f6
push 0x1001254
mov dword [ebp - 0xa14], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x1002802
push 0x10012a4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x1007100], eax
je 0x1002802
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 0xa14], eax
jne 0x100261b
xor eax, eax
jmp 0x1002808
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0xc], esi
jne 0x1002647
push dword [ebp - 0xa14]
call fcn.010024ef
mov ebx, eax
cmp ebx, esi
je 0x1002647
cmp word [ebx], si
je 0x1002645
mov word [ebx], si
inc ebx
inc ebx
jmp 0x1002647
xor ebx, ebx
push dword [ebp - 0xa14]
call fcn.01002250
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0xa64]
rep stosd dword es:[edi], eax
movzx eax, word [ebp + 0x18]
mov edi, dword [ebp - 0xa14]
mov dword [ebp - 0xa48], eax
lea eax, [ebp - 0xa64]
push eax
mov dword [ebp - 0xa64], 0x3c
mov dword [ebp - 0xa60], 0x640
mov dword [ebp - 0xa54], edi
mov dword [ebp - 0xa50], ebx
mov dword [ebp - 0xa58], 0x1001298
call dword [0x1007100]
cmp eax, esi
mov dword [ebp - 0xa14], eax
je 0x10026cf
cmp dword [ebp + 0x10], esi
je 0x10026c3
push 0xffffffffffffffff
push dword [ebp - 0xa2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xa2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002802
mov ax, word [ebp + 0x18]
mov word [ebp - 0xa3c], ax
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0xa6c]
push eax
mov eax, dword [ebp + 0xc]
push esi
mov ecx, eax
push esi
inc ebx
neg ecx
sbb ecx, ecx
push 0x20
push esi
not ecx
push esi
and ecx, edi
neg eax
push esi
sbb eax, eax
push ecx
and eax, edi
push eax
mov dword [ebp - 0xa6c], 0x44
mov dword [ebp - 0xa68], edi
mov dword [ebp - 0xa60], edi
mov dword [ebp - 0xa64], esi
mov dword [ebp - 0xa50], esi
mov dword [ebp - 0xa54], esi
mov dword [ebp - 0xa58], esi
mov dword [ebp - 0xa5c], esi
mov dword [ebp - 0xa40], ebx
mov dword [ebp - 0xa38], esi
mov word [ebp - 0xa3a], si
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
mov dword [ebp - 0xa14], eax
jne 0x10027d9
call fcn.01002291
test eax, eax
jne 0x1002802
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x1d4], esi
je 0x1002802
cmp dword [ebp - 0xa18], ebx
jne 0x1002802
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, 0x200
push ebx
lea eax, [ebp - 0xa10]
push eax
push 0x648
push esi
call edi
push ebx
lea eax, [ebp - 0x610]
push eax
push 0x647
push esi
call edi
push esi
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x610]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1002802
cmp dword [ebp + 0x10], esi
je 0x10027ec
push 0xffffffffffffffff
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xa28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa24]
call esi
mov eax, dword [ebp - 0xa14]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005225
leave
ret 0x14