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

Disassembly:
cmp word [edi], 0x2c
je 0x10025f8
mov eax, dword [ebp + 0xc]
cmp word [eax], 0x20
je 0x1002601
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp + 0x14]
push ebx
push eax
call fcn.01001573
test eax, eax
je 0x10025d9
inc dword [ebp - 0xc]
mov dword [ebp + 0xc], edi
cmp word [edi], bx
je 0x10028a0
jmp 0x1002a63
xor eax, eax
mov word [edi], ax
inc edi
inc edi
jmp 0x10025ba
inc eax
inc eax
jmp 0x10025bd
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
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 - 8], edi
cmp edi, ebx
je 0x10036c0
cmp dword [ebp + 0xc], ebx
je 0x100279a
push dword [ebp + 0xc]
push 0x104
push edi
call fcn.010021a9
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x1003737
lea eax, [ebp + 0x18]
push eax
xor eax, eax
cmp dword [ebp + 0x10], ebx
push 0x20019
setne al
push ebx
push 0x1002248
add eax, 0x80000001
push eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100280a
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x18]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1002801
jmp 0x100e578
push dword [ebp + 0x18]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
jne 0x1002836
cmp dword [ebp + 0x10], ebx
jne 0x1002836
lea eax, [ebp + 0x18]
push eax
push 0x20019
push ebx
push 0x10014a0
push 0x80000001
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x10036e4
cmp word [edi], bx
jne 0x100284b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x18
mov esi, edi
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0x1c], ebx
je 0x1003765
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x10028e0
push dword [ebp + 8]
mov dword [ebp + 0x10], ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1002895
push 0x10022d0
push edi
call esi
pop ecx
pop ecx
test eax, eax
je 0x100288e
push 0x10022b4
push edi
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1002895
mov dword [ebp + 0x10], 1
mov eax, edi
cmp word [eax], bx
jne 0x1002a5a
cmp dword [ebp + 0x10], ebx
je 0x100374e
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
jmp 0x100283b
cmp word [edi], bx
je 0x10025b4
cmp word [edi], 0x2c
je 0x10025f8
inc edi
inc edi
jmp 0x1002a5a
xor eax, eax
jmp 0x1002844
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x18]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
jne 0x1002836
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x10], ecx
jne 0x100372f
mov eax, dword [ebp - 4]
cmp eax, 2
jbe 0x100372f
shr eax, 1
cmp word [edi + eax*2 - 2], bx
je 0x1002836
mov dword [ebp - 0x14], ecx
jmp 0x100277c
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, word [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10036c0
call fcn.01004af1
test eax, eax
jne 0x10028a9
call fcn.01004b48
jmp 0x10028a9
push 0x1004758
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1003780
mov dword [ebp - 0x1c], 1
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
push ebx
push esi
call fcn.01001573
test eax, eax
je 0x10028a9
mov dword [ebp - 0xc], 1
jmp 0x10028a9