Function at 0x1002bca
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x100725c]
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 0x1001600
push ebx
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
push 0x10015f8
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.01004546
cmp eax, ebx
jne 0x1002c52
push 0x64
call fcn.01003590
xor eax, eax
pop ecx
inc eax
jmp 0x1002ebe
push esi
push 8
mov esi, 0x1007008
push esi
add eax, 4
xor ecx, ecx
push eax
dec edi
push edi
mov word [0x1007660], cx
call fcn.010041b8
movzx eax, ax
cmp word [0x1007284], bx
jne 0x1002eb5
cmp eax, ebx
je 0x1002c8b
test al, 8
je 0x1002ea9
push 0x10011fc
push esi
call fcn.01003f9c
test al, al
jne 0x1002cac
call fcn.01003a4a
test eax, eax
jne 0x1002cac
push 0x75
call fcn.01003590
jmp 0x1002cdf
cmp word [0x1007880], bx
je 0x1002ce5
mov esi, 0x1007880
push esi
call sub.WINSTA.dll_WinStationOpenServerW
mov dword [0x1007280], eax
cmp eax, ebx
jne 0x1002ce5
push esi
push 0x69
call fcn.01003638
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010034cc
pop ecx
pop ecx
jmp 0x1002eb0
push 0x14
lea eax, [ebp - 0x2c]
push eax
call fcn.01003f4e
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 0x1002d03
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.01003734
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.01003d08
mov dword [ebp - 0xc0], eax
cmp word [0x1007660], bx
jne 0x1002d6f
mov eax, dword [section..data]
cmp eax, 0xffffffff
je 0x1002d59
push eax
push 0x10015f0
push 0x102
push 0x1007660
call sub.msvcrt.dll_swprintf_s
add esp, 0x10
jmp 0x1002d6f
lea eax, [ebp - 0x2c]
push eax
push 0x102
push 0x1007660
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push 0x1007660
call esi
pop ecx
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
xor esi, esi
inc esi
push esi
push 0x10015c8
call fcn.01002804
push esi
push 0x10015a4
call fcn.01002804
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xbc]
push eax
push ebx
push dword [0x1007280]
call sub.WINSTA.dll_WinStationGetAllProcesses
test al, al
je 0x1002e05
xor edi, edi
cmp dword [ebp - 0xbc], ebx
jbe 0x1002dee
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 [0x1007280]
call fcn.01002977
inc edi
add esi, 0xc
cmp edi, dword [ebp - 0xbc]
jb 0x1002dc0
push dword [ebp - 0xbc]
push dword [ebp - 0xb8]
push ebx
call sub.WINSTA.dll_WinStationFreeGAPMemory
jmp 0x1002e93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d1
jne 0x1002e28
lea eax, [ebp - 0xb4]
push eax
push dword [0x1007280]
call sub.WINSTA.dll_WinStationEnumerateProcesses
test al, al
jne 0x1002e37
push 0x68
call fcn.01003590
pop ecx
mov eax, esi
jmp 0x1002ebd
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 0x1002e5c
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
jmp 0x1002e61
or ecx, 0xffffffff
xor eax, eax
push dword [ebp - 0xc0]
push ecx
push eax
push esi
push dword [0x1007280]
call fcn.01002977
mov esi, dword [esi]
cmp esi, ebx
je 0x1002e88
mov eax, dword [ebp - 0xb4]
add edi, esi
lea esi, [edi + eax]
jmp 0x1002e3f
push dword [ebp - 0xb4]
call sub.WINSTA.dll_WinStationFreeMemory
cmp byte [0x1007286], bl
jne 0x1002ebb
push 0x1007660
push 0x67
call fcn.01003638
jmp 0x1002eb0
push 1
call fcn.01002755
xor eax, eax
inc eax
jmp 0x1002ebd
push ebx
call fcn.01002755
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01005589
leave
ret