Function at 0x10017890
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fc166
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea ecx, [ebp - 0x24]
call fcn.10012160
mov dword [ebp - 4], 0
push str.Shell
lea ecx, [ebp - 0x20]
call fcn.10012160
mov byte [ebp - 4], 1
push str.Explorer.exe
lea ecx, [ebp - 0x30]
call fcn.10012160
mov byte [ebp - 4], 2
push 0x10111579
lea ecx, [ebp - 0x18]
call fcn.10012160
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0xc], 0
je 0x10017935
mov ecx, dword [ebp - 0xbc]
cmp dword [ecx + 0x10], 0
jne 0x1001797d
mov dword [ebp - 0xac], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.10008b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10008b60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10008b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10008b60
mov eax, dword [ebp - 0xac]
jmp 0x10017b52
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x24]
call fcn.10008bc0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x100179f1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0x64
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.10008bc0
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100179f1
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10012200
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
call fcn.10012650
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 1
push 0
push 0
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
je 0x10017b10
mov dword [ebp - 0xa8], 0
jmp 0x10017a3f
mov ecx, dword [ebp - 0xa8]
add ecx, 1
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
cmp edx, dword [ebp - 0x14]
jae 0x10017b01
mov eax, dword [ebp - 0xa8]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + eax + 8]
push edx
lea ecx, [ebp - 0x18]
call fcn.10012200
lea ecx, [ebp - 0x18]
call fcn.10012650
mov eax, dword [ebp - 0xa8]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + eax]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str.Process_Name_:__s__Session_ID:__d_n
push 0x1de
push str...UtilImpersonateUser.cpp
lea ecx, [ebp - 0xb4]
call fcn.1000dcf0
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xc4]
push edx
call fcn.10017b70
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb4]
call fcn.1000dd20
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.10017b80
add esp, 8
movzx edx, al
test edx, edx
je 0x10017afc
mov eax, dword [ebp - 0xa8]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x1c], edx
jmp 0x10017b01
jmp 0x10017a30
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx + 0x10]
call edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.10008b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10008b60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10008b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10008b60
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret