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

Disassembly:
push 0xffffffffffffffff
push 0x6014a89d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
mov dword [esp + 0x30], ecx
push edi
lea ecx, [esp + 0x5c]
call fcn.6011bde0
xor ebp, ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x18c], ebp
call fcn.6011bde0
mov ecx, dword [str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects]
push 1
lea eax, [esp + 0x60]
push eax
push ecx
mov byte [esp + 0x198], 1
call fcn.6011d360
test eax, eax
jl 0x6012e78d
mov eax, dword [str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonNotify]
push 1
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.6011d360
test eax, eax
jl 0x6012e78d
mov eax, dword [esp + 0x74]
cmp ebp, eax
mov dword [esp + 0x20], ebp
jae 0x6012e78d
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
mov esi, dword [edx + ecx]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
sub esi, 0x10
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x6012e440
cmp eax, dword [esi]
jne 0x6012e440
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x6012e472
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x6012e6cc
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
mov byte [esp + 0x18c], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
push esi
mov byte [esp + 0x194], 3
call fcn.60141620
test eax, eax
jge 0x6012e4cd
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x6012e67f
lea eax, [esp + 0x10]
push eax
call fcn.60140a10
test eax, eax
jl 0x6012e663
mov eax, dword [esp + 0x50]
xor ebx, ebx
test eax, eax
jbe 0x6012e663
xor ebp, ebp
nop
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
cmp ebx, dword [esp + 0x50]
mov byte [esp + 0x18c], 4
jae 0x6012e6d1
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + ebp]
push eax
lea edx, [esp + 0x28]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonNotify_s
push edx
call fcn.6010a8e0
add esp, 0xc
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push edi
push SysStringLen
mov byte [esp + 0x1a0], 5
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6012e629
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x38]
push edx
push 0
push str.DllName
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6012e61e
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x6012e5aa
cmp eax, 2
jne 0x6012e61e
mov eax, dword [esp + 0x28]
mov cl, byte [esp + eax + 0x7f]
test cl, cl
jne 0x6012e61e
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x18]
call fcn.601045b0
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x190], 6
call fcn.60140a10
test eax, eax
mov eax, dword [esp + 0x14]
jl 0x6012e5fc
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCR71.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x6012e6db
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x6012e61e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x6012e629
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x18c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6012e64b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
inc ebx
add ebp, 0x24
cmp ebx, eax
jb 0x6012e4f0
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6012e689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x18c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6012e6ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
inc ebp
add edx, 0x24
cmp ebp, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], edx
jb 0x6012e40f
jmp 0x6012e78d
jmp fcn.601041a0
push 0x80070057
call fcn.601040a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push eax
push str.winlogon
call fcn.6012e1e0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6012e714
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x6012e71f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x18c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6012e741
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6012e767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6012e78d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x38]
mov byte [esp + 0x18c], 0
call fcn.6011b6a0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18c], 0xffffffff
call fcn.6011b6a0
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x180
ret