Function at 0x4048f0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416506
mov eax, dword fs:[0]
push eax
mov eax, 0x8264
call fcn.004158a0
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x822c], esi
xor ebx, ebx
mov dword [ebp - 0x821c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x8258], 0
movq qword [ebp - 0x8224], xmm0
mov dword [ebp - 0x8224], ebx
mov dword [ebp - 0x8220], ebx
mov dword [ebp - 0x821c], ebx
cmp byte [ebp + 0xc], 1
lea eax, [ebp - 0x8254]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8254], ebx
push eax
jne 0x40497a
push 0xf013f
jmp 0x40497f
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4049b4
lea eax, [ebp - 0x8254]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x404a4b
mov edi, dword [ebp - 0x8254]
test edi, edi
je 0x404a4b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004072f0
add esp, 0xc
mov dword [ebp - 0x8234], 0x104
lea eax, [ebp - 0x8250]
mov dword [ebp - 0x8230], 0
push eax
lea eax, [ebp - 0x8238]
push eax
lea eax, [ebp - 0x823c]
push eax
lea eax, [ebp - 0x8240]
push eax
lea eax, [ebp - 0x8228]
push eax
lea eax, [ebp - 0x8244]
push eax
lea eax, [ebp - 0x8248]
push eax
lea eax, [ebp - 0x8230]
push eax
push 0
lea eax, [ebp - 0x8234]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x404a64
push dword [ebp - 0x8254]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x404b33
mov eax, dword [ebp - 0x8228]
cmp eax, 1
jae 0x404a82
lea eax, [ebp - 0x8224]
mov ecx, esi
push eax
call fcn.00404d50
jmp 0x404b51
xor edi, edi
test eax, eax
je 0x404b1f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor eax, eax
mov dword [ebp - 0x822c], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8218], ax
lea eax, [ebp - 0x822c]
push eax
lea eax, [ebp - 0x8218]
push eax
push edi
push dword [ebp - 0x8254]
call ebx
test eax, eax
jne 0x404b7a
lea eax, [ebp - 0x8218]
push eax
lea ecx, [ebp - 0x8270]
call fcn.004012a0
lea eax, [ebp - 0x8270]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x8224]
call fcn.00404bc0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x825c]
cmp eax, 8
jb 0x404b0c
inc eax
push eax
push dword [ebp - 0x8270]
call fcn.004018d0
inc edi
cmp edi, dword [ebp - 0x8228]
jb 0x404a92
mov ebx, dword [ebp - 0x8224]
mov dword [esi], ebx
mov eax, dword [ebp - 0x8220]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x821c]
mov dword [esi + 8], eax
mov dword [ebp - 0x821c], 0
mov dword [ebp - 0x8220], 0
mov dword [ebp - 0x8224], 0
lea ecx, [ebp - 0x8224]
call fcn.00404170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004050c9
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x8254]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x8224]
mov dword [esi], eax
jmp 0x404b21