Function at 0x609c30
Capabilities:
Acquire debug privileges
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6844c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x78a6d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x128], eax
xor esi, esi
mov byte [eax], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 4], esi
movups xmm0, xmmword [str.explorer.exe]
mov ax, word [0x7188e4]
push 0xe6
mov word [ebp - 0x100], ax
lea eax, [ebp - 0xfe]
movups xmmword [ebp - 0x118], xmm0
push esi
movq xmm0, qword [0x7188dc]
push eax
movq qword [ebp - 0x108], xmm0
call fcn.0058d130
lea edi, [ebp - 0x118]
add esp, 0xc
mov dword [ebp - 0x124], edi
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], esi
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x609d22
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0
test eax, eax
jne 0x609e01
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x100
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x138]
push eax
push 0
push str.Shell
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x609d8f
mov eax, dword [ebp - 0x138]
cmp eax, 1
je 0x609d6f
cmp eax, 2
jne 0x609d8a
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x609db4
test al, 1
jne 0x609d8a
shr eax, 1
cmp word [ebp + eax*2 - 0x11a], 0
je 0x609dbd
mov eax, 0xd
push 0
push 0
push eax
push str.CRegKey::QueryStringValue
push 0x57
push 0x783
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonIPCWinsecAPI.cpp
push str.CWinsecApiUtil::GetUserToken
call fcn.00612830
add esp, 0x20
jmp 0x609de2
xor eax, eax
mov word [ebp - 0x118], ax
lea eax, [ebp - 0x118]
push 0x5c
push eax
call fcn.0058e60e
add esp, 8
test eax, eax
je 0x609de2
lea ecx, [ebp - 0x1a]
cmp eax, ecx
jae 0x609de2
add eax, 2
mov dword [ebp - 0x124], eax
test esi, esi
je 0x609df5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], 0
jmp 0x609e24
push 0
push 0
push eax
push str.CRegKey::Open
push 0x45
push 0x793
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonIPCWinsecAPI.cpp
push str.CWinsecApiUtil::GetUserToken
call fcn.00612830
add esp, 0x20
mov ecx, str.SeDebugPrivilege
call fcn.0060a3a0
mov ecx, str.SeAssignPrimaryTokenPrivilege
call fcn.0060a3a0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x609ea6
push dword [ebp - 0x128]
mov edx, edi
push ecx
mov ecx, dword [ebp - 0x124]
call fcn.00609f00
add esp, 8
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x609e9d
push str.explorer.exe
push dword [ebp - 0x124]
call fcn.0059f052
add esp, 8
test eax, eax
je 0x609e9d
push dword [ebp - 0x128]
mov edx, edi
push ecx
mov ecx, str.explorer.exe
call fcn.00609f00
add esp, 8
mov dword [ebp - 0x120], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x609ecf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x71899c
push 0x45
push 0x7bd
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonIPCWinsecAPI.cpp
push str.CWinsecApiUtil::GetUserToken
call fcn.00612830
add esp, 0x20
test esi, esi
je 0x609eda
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret