Function at 0x416670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55814c
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
push 0x586bff
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
call fcn.00405fd0
push 0x207
lea ecx, [ebp - 0x223]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 0x224], bl
call fcn.005344b0
add esp, 0xc
push str.IsWow64Process
mov byte [ebp - 4], 1
push str.kernel32
mov dword [ebp - 0x24c], 0x208
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x228], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x41672f
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x22c]
cmp dword [ebp - 0x228], ebx
je 0x416746
push 0x22
push str.SOFTWAREWow6432NodeClassesCLSID
jmp 0x41674d
push 0x16
push str.SOFTWAREClassesCLSID
call fcn.00406280
call fcn.0043c63a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41676c
push 0x80004005
call fcn.004063a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x238], eax
push edi
lea ecx, [ebp - 0x238]
push str._sInprocServer32
push ecx
mov byte [ebp - 4], 2
call fcn.00405bc0
mov edi, dword [ebp - 0x238]
mov eax, dword [edi - 0xc]
add esp, 0xc
push eax
push edi
lea ecx, [ebp - 0x22c]
call fcn.00405be0
mov edx, dword [ebp - 0x22c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4167d4
push ebx
lea ecx, [ebp - 0x22c]
call fcn.004061b0
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x230]
push eax
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x234], eax
cmp eax, ebx
je 0x41680e
push 0x5a0810
lea ecx, [ebp - 0x244]
push ecx
mov dword [ebp - 0x244], eax
call fcn.00534862
lea edx, [ebp - 0x24c]
push edx
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
push ecx
push ebx
push 0x586bff
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x234], eax
cmp eax, ebx
je 0x416857
mov dword [ebp - 0x250], eax
push 0x5a0810
lea eax, [ebp - 0x250]
push eax
call fcn.00534862
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
lea ebx, [ebp - 0x224]
lea esi, [ebp - 0x240]
mov byte [ebp - 4], 3
call fcn.00420c00
test eax, eax
je 0x416910
mov ebx, dword [ebp - 0x248]
test ebx, ebx
je 0x4168fd
lea esi, [ebp - 0x228]
lea ecx, [ebp - 0x240]
call fcn.00416650
mov ecx, esi
push ecx
mov byte [ebp - 4], 4
call fcn.004169b0
mov esi, dword [ebp - 0x228]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x4168cf
push 0
lea ecx, [ebp - 0x228]
call fcn.004061b0
mov esi, dword [ebp - 0x228]
mov ecx, esi
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4168d3
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4168fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.0042debb
add esp, 4
xor eax, eax
jmp 0x416916
mov eax, dword [ebp - 0x240]
push eax
call fcn.0042debb
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41693f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x416950
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
mov dword [ebp - 0x230], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416983
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret 4