Function at 0x10022aa
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x100625c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x100142c
push ebx
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
push 0x1001424
lea eax, [ebp - 0xb0]
push 0x41
push eax
call sub.msvcrt.dll_swprintf_s
lea eax, [ebp - 0xb0]
push eax
push 2
call dword [sym.imp.msvcrt.dll__wsetlocale]
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
mov edi, dword [ebp + 8]
push edi
call fcn.01003c26
cmp eax, ebx
jne 0x1002332
push 0x64
call fcn.01002c70
xor eax, eax
pop ecx
inc eax
jmp 0x100259e
push esi
push 8
mov esi, 0x1006008
push esi
add eax, 4
xor ecx, ecx
push eax
dec edi
push edi
mov word [0x1006660], cx
call fcn.01003898
movzx eax, ax
cmp word [0x1006284], bx
jne 0x1002595
cmp eax, ebx
je 0x100236b
test al, 8
je 0x1002589
push 0x10011fc
push esi
call fcn.0100367c
test al, al
jne 0x100238c
call fcn.0100312a
test eax, eax
jne 0x100238c
push 0x75
call fcn.01002c70
jmp 0x10023bf
cmp word [0x1006880], bx
je 0x10023c5
mov esi, 0x1006880
push esi
call sub.WINSTA.dll_WinStationOpenServerW
mov dword [0x1006280], eax
cmp eax, ebx
jne 0x10023c5
push esi
push 0x69
call fcn.01002d18
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01002bac
pop ecx
pop ecx
jmp 0x1002590
push 0x14
lea eax, [ebp - 0x2c]
push eax
call fcn.0100362e
mov esi, dword [sym.imp.msvcrt.dll__wcslwr]
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 0x2c]
pop ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10023e3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.01002e14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.010033e8
mov dword [ebp - 0xc0], eax
cmp word [0x1006660], bx
jne 0x100244f
mov eax, dword [section..data]
cmp eax, 0xffffffff
je 0x1002439
push eax
push 0x100141c
push 0x102
push 0x1006660
call sub.msvcrt.dll_swprintf_s
add esp, 0x10
jmp 0x100244f
lea eax, [ebp - 0x2c]
push eax
push 0x102
push 0x1006660
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push 0x1006660
call esi
pop ecx
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
xor esi, esi
inc esi
push esi
push 0x10013f4
call fcn.01001ee4
push esi
push 0x10013d0
call fcn.01001ee4
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xbc]
push eax
push ebx
push dword [0x1006280]
call sub.WINSTA.dll_WinStationGetAllProcesses
test al, al
je 0x10024e5
xor edi, edi
cmp dword [ebp - 0xbc], ebx
jbe 0x10024ce
xor esi, esi
mov eax, dword [ebp - 0xb8]
push dword [ebp - 0xc0]
add eax, esi
mov ecx, dword [eax]
push dword [ecx + 0x50]
push dword [eax + 8]
push ecx
push dword [0x1006280]
call fcn.01002057
inc edi
add esi, 0xc
cmp edi, dword [ebp - 0xbc]
jb 0x10024a0
push dword [ebp - 0xbc]
push dword [ebp - 0xb8]
push ebx
call sub.WINSTA.dll_WinStationFreeGAPMemory
jmp 0x1002573
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d1
jne 0x1002508
lea eax, [ebp - 0xb4]
push eax
push dword [0x1006280]
call sub.WINSTA.dll_WinStationEnumerateProcesses
test al, al
jne 0x1002517
push 0x68
call fcn.01002c70
pop ecx
mov eax, esi
jmp 0x100259d
mov esi, dword [ebp - 0xb4]
xor edi, edi
mov eax, dword [esi + 4]
shl eax, 6
lea eax, [eax + esi + 0x88]
cmp dword [eax], 0x23495452
jne 0x100253c
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
jmp 0x1002541
or ecx, 0xffffffff
xor eax, eax
push dword [ebp - 0xc0]
push ecx
push eax
push esi
push dword [0x1006280]
call fcn.01002057
mov esi, dword [esi]
cmp esi, ebx
je 0x1002568
mov eax, dword [ebp - 0xb4]
add edi, esi
lea esi, [edi + eax]
jmp 0x100251f
push dword [ebp - 0xb4]
call sub.WINSTA.dll_WinStationFreeMemory
cmp byte [0x1006286], bl
jne 0x100259b
push 0x1006660
push 0x67
call fcn.01002d18
jmp 0x1002590
push 1
call fcn.01001e35
xor eax, eax
inc eax
jmp 0x100259d
push ebx
call fcn.01001e35
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01004c6b
leave
ret