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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
neg eax
sbb eax, eax
push esi
and eax, 6
push edi
inc eax
mov esi, 0x208
movzx eax, ax
push esi
push 0x40
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp + 0x18], edi
cmp edi, ebx
je 0x1003546
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp dword [ebp + 0xc], 0
je 0x100299b
push dword [ebp + 0xc]
push 0x104
push edi
call fcn.01002170
mov edi, eax
test edi, edi
jl 0x10035b8
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 8]
push eax
xor eax, eax
cmp dword [ebp + 0x10], eax
push 0x20019
setne al
push 0
push 0x1002078
add eax, 0x80000001
push eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002a0a
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x1002a01
cmp dword [ebp - 0x10], 1
jne 0x1002aec
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x1002aec
shr eax, 1
cmp word [edi + eax*2 - 2], 0
jne 0x1002aec
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x14], eax
jne 0x1002a38
cmp dword [ebp + 0x10], eax
jne 0x1002a38
lea ecx, [ebp - 8]
push ecx
push 0x20019
push eax
push 0x1001fa8
push 0x80000001
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x100356a
xor esi, esi
cmp word [edi], si
jne 0x1002a4f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x18
mov ebx, dword [ebp + 0x18]
xor esi, esi
cmp dword [ebp + 0x1c], esi
je 0x10035ef
push 0x1002430
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1002a99
push 0x1002100
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x1002a92
push 0x10020e4
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1002a99
mov dword [ebp + 0xc], 1
xor esi, esi
cmp word [ebx], si
je 0x1002ad9
mov eax, ebx
cmp word [edi], si
je 0x1002ab1
cmp word [edi], 0x2c
je 0x1002afb
inc edi
inc edi
jmp 0x1002aa2
cmp word [edi], 0x2c
je 0x1002afb
cmp word [eax], 0x20
je 0x1002b04
push dword [ebp - 0x18]
push esi
push dword [ebp + 0x14]
push esi
push eax
call fcn.01001195
test eax, eax
je 0x1002ad2
inc dword [ebp - 0xc]
mov eax, edi
cmp word [edi], si
jne 0x1002aa7
cmp dword [ebp + 0xc], esi
je 0x10035d8
mov esi, dword [ebp - 0xc]
mov edi, ebx
jmp 0x1002a3f
cmp dword [ebp + 0xc], 0
jne 0x100354d
jmp 0x1003560
xor ecx, ecx
mov word [edi], cx
inc edi
inc edi
jmp 0x1002ab7
inc eax
inc eax
jmp 0x1002ab7
xor eax, eax
jmp 0x1002a48
push dword [ebp + 0xc]
push 0x104
push edi
call fcn.01002170
jmp 0x1002a01
xor eax, eax
mov word [edi], ax
jmp 0x1002a01
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp - 8]
call ebx
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
test edi, edi
jne 0x10035d0
cmp dword [ebp - 0x10], 1
jne 0x10035a9
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x10035a9
mov ecx, dword [ebp + 0x18]
shr eax, 1
cmp word [ecx + eax*2 - 2], di
je 0x10035d0
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x14], 1
jmp 0x100297a
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003546
mov edi, dword [ebp + 0x18]
jmp 0x1002a38
call fcn.01004971
test eax, eax
jne 0x1002ae2
call fcn.010049c8
jmp 0x1002ae2
push 0x10045d8
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100360a
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
push esi
push ebx
call fcn.01001195
test eax, eax
je 0x1002ae2
mov dword [ebp - 0xc], 1
jmp 0x1002ae2