Function at 0x100234a
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 0x100144c
push ebx
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
push 0x1001444
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.01003cc6
cmp eax, ebx
jne 0x10023d2
push 0x64
call fcn.01002d10
xor eax, eax
pop ecx
inc eax
jmp 0x100263e
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.01003938
movzx eax, ax
cmp word [0x1006284], bx
jne 0x1002635
cmp eax, ebx
je 0x100240b
test al, 8
je 0x1002629
push 0x10011fc
push esi
call fcn.0100371c
test al, al
jne 0x100242c
call fcn.010031ca
test eax, eax
jne 0x100242c
push 0x75
call fcn.01002d10
jmp 0x100245f
cmp word [0x1006880], bx
je 0x1002465
mov esi, 0x1006880
push esi
call sub.WINSTA.dll_WinStationOpenServerW
mov dword [0x1006280], eax
cmp eax, ebx
jne 0x1002465
push esi
push 0x69
call fcn.01002db8
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01002c4c
pop ecx
pop ecx
jmp 0x1002630
push 0x14
lea eax, [ebp - 0x2c]
push eax
call fcn.010036ce
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 0x1002483
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.01002eb4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.01003488
mov dword [ebp - 0xc0], eax
cmp word [0x1006660], bx
jne 0x10024ef
mov eax, dword [section..data]
cmp eax, 0xffffffff
je 0x10024d9
push eax
push 0x100143c
push 0x102
push 0x1006660
call sub.msvcrt.dll_swprintf_s
add esp, 0x10
jmp 0x10024ef
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 0x1001414
call fcn.01001f84
push esi
push 0x10013f0
call fcn.01001f84
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 0x1002585
xor edi, edi
cmp dword [ebp - 0xbc], ebx
jbe 0x100256e
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.010020f7
inc edi
add esi, 0xc
cmp edi, dword [ebp - 0xbc]
jb 0x1002540
push dword [ebp - 0xbc]
push dword [ebp - 0xb8]
push ebx
call sub.WINSTA.dll_WinStationFreeGAPMemory
jmp 0x1002613
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d1
jne 0x10025a8
lea eax, [ebp - 0xb4]
push eax
push dword [0x1006280]
call sub.WINSTA.dll_WinStationEnumerateProcesses
test al, al
jne 0x10025b7
push 0x68
call fcn.01002d10
pop ecx
mov eax, esi
jmp 0x100263d
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 0x10025dc
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
jmp 0x10025e1
or ecx, 0xffffffff
xor eax, eax
push dword [ebp - 0xc0]
push ecx
push eax
push esi
push dword [0x1006280]
call fcn.010020f7
mov esi, dword [esi]
cmp esi, ebx
je 0x1002608
mov eax, dword [ebp - 0xb4]
add edi, esi
lea esi, [edi + eax]
jmp 0x10025bf
push dword [ebp - 0xb4]
call sub.WINSTA.dll_WinStationFreeMemory
cmp byte [0x1006286], bl
jne 0x100263b
push 0x1006660
push 0x67
call fcn.01002db8
jmp 0x1002630
push 1
call fcn.01001ed5
xor eax, eax
inc eax
jmp 0x100263d
push ebx
call fcn.01001ed5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01004d09
leave
ret