Function at 0x103098c
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x10723e4]
and dword [ebp - 0x32c], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1010cb0
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 0x1030ced
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 [0x1073938], edi
jne 0x1030a11
call sub.WINSTA.dll__WinStationWaitForConnect
test al, al
jne 0x1030a11
xor eax, eax
jmp 0x1030cec
cmp dword [0x10733a4], edi
jne 0x1030a42
cmp dword [0x1073938], edi
jne 0x1030a42
push dword [0x107393c]
call fcn.0102933d
test eax, eax
jge 0x1030a42
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 0x1030cc0
mov edi, 0x10119b4
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 0x1030cb6
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 0x1030c74
and dword [esi + 0x6c], 0
push 0
mov edi, 0x2000000
push edi
push 0
push 0x10119b4
mov dword [ebp - 0x32c], 1
call dword [sym.imp.USER32.dll_CreateWindowStationW]
test eax, eax
mov dword [esi + 4], eax
je 0x1030c74
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push esi
call fcn.01027126
xor eax, eax
push eax
push edi
push eax
push eax
push eax
push 0x1010acc
mov dword [ebx + 8], esi
call dword [sym.imp.USER32.dll_CreateDesktopW]
test eax, eax
mov dword [esi + 0x14], eax
je 0x1030c74
xor eax, eax
push eax
push edi
push eax
push eax
push eax
push 0x1010cb0
call dword [sym.imp.USER32.dll_CreateDesktopW]
test eax, eax
mov dword [esi + 0x10], eax
je 0x1030c74
push dword [0x1073914]
push dword [esi + 0x14]
call fcn.01027743
push dword [0x1073914]
push 0
push dword [esi + 0x10]
call fcn.010277a7
push 0
push ebx
call fcn.010317b0
mov eax, dword [0x10733bc]
mov dword [ebx + 4], eax
mov dword [0x10733bc], ebx
mov dword [0x10759ec], 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 [0x1073934], edx
je 0x1030ce9
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 0x1013dc8
push 0
push 0
mov dword [0x10733c8], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [ebx + 0xe70], eax
je 0x1030c74
xor edi, edi
cmp dword [0x1073938], edi
lea eax, [ebp - 0x20c]
je 0x1030bf5
push 0x1013d8c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
pop ecx
jmp 0x1030c0a
push dword [0x107393c]
push 0x1013d38
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 0x1073908
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 0x1030ccc
mov dword [0x1073908], edi
mov eax, dword [esi + 0x10]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_CloseDesktop]
je 0x1030c84
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1030c8e
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x1030c9c
push eax
call dword [sym.imp.USER32.dll_CloseWindowStation]
cmp dword [ebp - 0x32c], 0
je 0x1030caf
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 0x1030a0a
cmp dword [0x107393c], edi
jne 0x1030ce9
push 0x1013d34
push 0x1013d0c
push 0x1010acc
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.0103d24a
leave
ret