Function at 0x103100f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x107342c]
and dword [ebp - 0x32c], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1010f70
mov dword [ebp - 4], eax
call esi
lea eax, [eax + eax + 0x14ca]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x1031370
push edi
mov dword [ebx], 0x7465726d
mov ecx, 0xa0
lea edi, [ebx + 0x90]
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx + 0x310], edi
mov dword [ebx + 0x394], edi
mov dword [ebx + 0x398], edi
cmp dword [0x1074a18], edi
jne 0x1031094
call sub.WINSTA.dll__WinStationWaitForConnect
test al, al
jne 0x1031094
xor eax, eax
jmp 0x103136f
cmp dword [0x1074468], edi
jne 0x10310c5
cmp dword [0x1074a18], edi
jne 0x10310c5
push dword [0x1074a1c]
call fcn.010298f3
test eax, eax
jge 0x10310c5
push 0x409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebx + 0x64]
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
test eax, eax
jl 0x1031343
mov edi, 0x1011c74
push edi
call esi
lea eax, [eax + eax + 0xda]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1031339
lea eax, [esi + 0xd8]
push edi
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi + 0x70]
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
test eax, eax
jl 0x10312f7
and dword [esi + 0x6c], 0
push 0
mov edi, 0x2000000
push edi
push 0
push 0x1011c74
mov dword [ebp - 0x32c], 1
call dword [sym.imp.USER32.dll_CreateWindowStationW]
test eax, eax
mov dword [esi + 4], eax
je 0x10312f7
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push esi
call fcn.010276dc
xor eax, eax
push eax
push edi
push eax
push eax
push eax
push 0x1010d8c
mov dword [ebx + 8], esi
call dword [sym.imp.USER32.dll_CreateDesktopW]
test eax, eax
mov dword [esi + 0x14], eax
je 0x10312f7
xor eax, eax
push eax
push edi
push eax
push eax
push eax
push 0x1010f70
call dword [sym.imp.USER32.dll_CreateDesktopW]
test eax, eax
mov dword [esi + 0x10], eax
je 0x10312f7
push dword [0x10749f4]
push dword [esi + 0x14]
call fcn.01027cf9
push dword [0x10749f4]
push 0
push dword [esi + 0x10]
call fcn.01027d5d
push 0
push ebx
call fcn.01031e59
mov eax, dword [0x1074480]
mov dword [ebx + 4], eax
mov dword [0x1074480], ebx
mov dword [0x1076acc], ebx
xor eax, eax
mov ecx, 0x41e
lea edi, [ebx + 0x404]
rep stosd dword es:[edi], eax
or dword [ebx + 0xe78], 0xffffffff
xor edx, edx
mov dword [ebx + 0x480], 0xd
cmp dword [0x1074a14], edx
je 0x103136c
push 0x47
pop ecx
push 6
push 0x40
push edx
lea edi, [ebp - 0x328]
rep stosd dword es:[edi], eax
push edx
mov dword [ebp - 0x328], 0x11c
mov word [ebp - 0x210], 0x10
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x40
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x10140b0
push 0
push 0
mov dword [0x107448c], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [ebx + 0xe70], eax
je 0x10312f7
xor edi, edi
cmp dword [0x1074a18], edi
lea eax, [ebp - 0x20c]
je 0x1031278
push 0x1014074
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
pop ecx
jmp 0x103128d
push dword [0x1074a1c]
push 0x1014020
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
lea eax, [ebp - 0x34c]
push edi
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x344]
push eax
push 0x1f0003
push 0x10749e8
mov dword [ebp - 0x344], 0x18
mov dword [ebp - 0x340], edi
mov dword [ebp - 0x338], 0x80
mov dword [ebp - 0x334], edi
mov dword [ebp - 0x330], edi
call dword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jge 0x103134f
mov dword [0x10749e8], edi
mov eax, dword [esi + 0x10]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_CloseDesktop]
je 0x1031307
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1031311
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x103131f
push eax
call dword [sym.imp.USER32.dll_CloseWindowStation]
cmp dword [ebp - 0x32c], 0
je 0x1031332
lea eax, [esi + 0x70]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebx + 0x64]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x103108d
cmp dword [0x1074a1c], edi
jne 0x103136c
push 0x101401c
push 0x1013ff4
push 0x1010d8c
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0103e4d8
leave
ret