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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
push ebx
mov ebx, dword [sym.imp.ntdll.dll__wcsicmp]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x10012d4
xor esi, esi
push edi
mov dword [ebp - 4], esi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10022f0
push 0x10012b8
push edi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10022f0
push 0x104
lea eax, [ebp - 0x264]
push eax
push edi
jmp 0x1002308
push 0x104
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 4], 1
push 0x1001284
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1002318
lea edi, [ebp - 0x264]
xor ebx, ebx
cmp dword [ebp + 0x14], esi
je 0x1002412
cmp dword [0x10060e0], esi
jne 0x100235a
push 0x1001224
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x1002500
push 0x1001274
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x10060e0], eax
je 0x1002500
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 + 8], eax
jne 0x100237c
xor eax, eax
jmp 0x1002503
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0xc], esi
jne 0x10023a5
push dword [ebp + 8]
call fcn.01002270
mov ebx, eax
cmp ebx, esi
je 0x10023a5
cmp word [ebx], si
je 0x10023a3
mov word [ebx], si
inc ebx
inc ebx
jmp 0x10023a5
xor ebx, ebx
push dword [ebp + 8]
call fcn.0100204c
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
movzx eax, word [ebp + 0x18]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x640
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], 0x1001268
call dword [0x10060e0]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x1002406
cmp dword [ebp + 0x10], esi
je 0x10023fd
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002500
mov ax, word [ebp + 0x18]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
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 - 0x58], 0x44
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], esi
mov word [ebp - 0x26], si
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x10024e0
call fcn.01002083
test eax, eax
jne 0x1002500
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x1d4], esi
je 0x1002500
cmp dword [ebp - 4], ebx
jne 0x1002500
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, 0x200
push ebx
lea eax, [ebp - 0x664]
push eax
push 0x648
push esi
call edi
push ebx
lea eax, [ebp - 0xa64]
push eax
push 0x647
push esi
call edi
push esi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0xa64]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1002500
cmp dword [ebp + 0x10], esi
je 0x10024f0
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x14