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

Disassembly:
sub esp, 0x400
mov eax, dword [0x422588]
xor eax, esp
mov dword [esp + 0x3fc], eax
mov eax, dword [0x423928]
mov edx, dword [eax + 0xc]
push esi
push edi
mov edi, dword [esp + 0x40c]
mov ecx, 0x423928
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call edx
mov esi, eax
mov ecx, dword [esi + 8]
add esi, 0x10
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, 0x3e8
or eax, ecx
mov dword [esp + 8], esi
jge 0x40a900
push 0x3e8
lea ecx, [esp + 0xc]
call fcn.00401f40
mov esi, dword [esp + 8]
push 0x3e8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test esi, esi
jne 0x40a916
xor eax, eax
jmp 0x40a935
mov eax, esi
lea edx, [eax + 2]
jmp 0x40a920
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a920
sub eax, edx
sar eax, 1
js 0x40aacc
cmp eax, dword [esi - 8]
jg 0x40aacc
lea edx, [esp + 0xc]
push edx
push 0x41c508
mov dword [esi - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
mov word [esi + eax*2], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40a990
push 0x41cc70
mov ecx, edi
call fcn.00404380
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a98c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40a9e4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0x41c4e8
push eax
call ebx
test eax, eax
je 0x40a9fd
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x41cc70
mov ecx, edi
call fcn.00404380
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x404]
pop edi
pop esi
xor ecx, esp
call fcn.0040d432
add esp, 0x400
ret 4
mov edx, dword [0x423928]
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
push 0x3e8
mov edi, eax
lea ecx, [esp + 0x24]
push 0
add edi, 0x10
push ecx
mov dword [esp + 0x18], edi
call fcn.0040d450
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x41c4e8
push edx
call ebx
test eax, eax
jne 0x40aa70
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.00403710
push 0x41cc70
push 0x41d184
lea ecx, [esp + 0x14]
call fcn.0040a430
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
push edi
call fcn.004018b0
mov ebx, dword [esp + 0x1c]
add eax, 0x10
mov dword [ebx], eax
add esp, 4
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40aaa9
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aac5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x40a9e3
push 0x80070057
call fcn.00401000
int3