Function at 0x405060
Capabilities:
Enumerate process modules
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4612a6
push eax
mov eax, 0x121c
mov dword fs:[0], esp
call fcn.00454ff0
mov eax, dword [0x46f42c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov esi, 0x3e8
lea ebx, [eax - 0xc]
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], esi
mov ecx, dword [ebx]
mov dword [esp + 0x1234], 0
cmp ecx, 1
jg 0x4050b7
cmp dword [eax - 4], esi
jge 0x405100
mov ebp, dword [eax - 8]
cmp ebp, esi
jle 0x4050c0
mov esi, ebp
push esi
lea ecx, [esp + 0x14]
call fcn.00408040
test eax, eax
je 0x405100
lea ecx, [ebp + ebp + 2]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x4050ef
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push ebx
mov dword [eax - 8], ebp
call fcn.00408420
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
push str.AppInit_DLLs
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [esp + 0x10]
call fcn.00408290
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov word [edx + eax*2], 0
call fcn.00408290
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
lea esi, [eax + ecx*2]
cmp eax, esi
jae 0x405176
mov edi, dword [sym.imp.USER32.dll_CharNextW]
cmp word [eax], 0x2a
jne 0x40516f
mov word [eax], 0x2e
push eax
call edi
cmp eax, esi
jb 0x405164
mov edx, dword [0x46f42c]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x123c]
mov byte [esp + 0x1234], 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x40519f
push esi
call ebx
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x405239
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.004553c2
add esp, 8
test eax, eax
je 0x405239
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x405239
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46f430]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x405207
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x405207
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405232
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x405232
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004535f0
add esp, 4
xor eax, eax
jmp 0x405349
mov eax, dword [esp + 0x1240]
xor ebp, ebp
push eax
push ebp
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4052eb
mov cx, word [0x47a15c]
xor eax, eax
mov word [esp + 0x24], cx
mov ecx, 0x81
lea edi, [esp + 0x26]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x230]
push 0x1000
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4052e4
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jbe 0x4052e4
lea esi, [esp + 0x22c]
mov edx, dword [esi]
lea ecx, [esp + 0x24]
push 0x104
push ecx
push edx
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4052d1
mov ecx, dword [esp + 0x123c]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00402880
add esp, 8
test eax, eax
jne 0x4052df
mov eax, dword [esp + 0x18]
inc edi
add esi, 4
cmp edi, eax
jb 0x4052a1
jmp 0x4052e4
mov ebp, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46f430]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40531c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40531c
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405347
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x405347
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004535f0
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x122c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1228
ret