Function at 0x405a40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3e0]
push eax
xor edx, edx
lea ecx, [ebp - 0x214]
push ecx
mov word [0x49df08], dx
mov edx, dword [ebp - 0x38c]
push edi
push edx
mov dword [ebp - 0x3e0], 0xff
mov dword [ebp - 0x3a4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x405d37
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2a4]
xor eax, eax
push ecx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
call fcn.004015e0
push 1
mov eax, 0x4743e0
lea esi, [ebp - 0x230]
mov byte [ebp - 4], 0x16
call fcn.00412040
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405895
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x230]
call fcn.00412040
push 0xf
mov eax, 0x474408
call fcn.00412040
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x4058d3
mov eax, esi
lea edx, [ebp - 0x388]
push edx
push 0x20119
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x405d1b
mov edx, dword [ebp - 0x388]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3dc]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x3f4]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x3dc], ebx
je 0x405d0e
mov ecx, dword [ebp - 0x388]
lea eax, [ebp - 0x3a4]
push eax
push 0x49df08
push ebx
push ebx
push 0x473064
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x405d0e
mov eax, dword [ebp - 0x3c4]
mov edx, eax
mov dword [ebp - 0x364], edx
cmp eax, dword [ebp - 0x3c0]
je 0x405d0e
lea eax, [ebp - 0x314]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x368], esp
push 0xffffffffffffffff
push ebx
mov esi, 7
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.004015e0
sub esp, 0x1c
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ecx + 0x14], esi
xor edx, edx
mov eax, 0x49df08
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x374], esp
mov word [ecx], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4059b3
sub eax, esi
sar eax, 1
push eax
push 0x49df08
call fcn.00401740
mov byte [ebp - 4], 0x16
call fcn.00426980
add esp, 0x3c
cmp dword [ebp - 0x304], ebx
je 0x405ced
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x3b4]
call fcn.00416c10
push eax
lea ecx, [ebp - 0x3e8]
push ecx
lea edx, [ebp - 0x3b4]
push edx
call fcn.004158d0
mov eax, 1
add dword [ebp - 0x360], eax
mov dword [ebp - 0x354], eax
push 0x1f
mov eax, str.______HKEY_CLASSES_ROOTCLSID_
lea esi, [ebp - 0x2f8]
call fcn.00412040
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405a37
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x2f8]
call fcn.00412040
push 0x21
mov eax, str.InprocServer32__ZA_Reg_Hijack__r_n
call fcn.00412040
mov ebx, dword [ebp - 0x3d8]
lea eax, [ebp - 0x268]
push 0x4744c4
push eax
call fcn.00414e00
push eax
mov eax, str.._._n.
lea edi, [ebp - 0x24c]
mov byte [ebp - 4], 0x18
call fcn.00414ee0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0x19
call fcn.00401560
mov esi, 8
cmp dword [ebp - 0x238], esi
jb 0x405abf
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.0044e60d
add esp, 4
mov bl, 0x16
xor edi, edi
xor edx, edx
mov byte [ebp - 4], bl
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], edi
mov word [ebp - 0x24c], dx
cmp dword [ebp - 0x254], esi
jb 0x405af6
mov eax, dword [ebp - 0x268]
push eax
call fcn.0044e60d
add esp, 4
call fcn.0043a1b1
mov dword [ebp - 0x368], eax
call fcn.0043a06b
push edi
lea ecx, [ebp - 0x35c]
mov esi, eax
call fcn.00439fa0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x405b20
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x35c]
call fcn.00439fc8
lea ecx, [ebp - 0x368]
push ecx
lea edx, [ebp - 0x2c0]
push 0x4743e0
push edx
mov ecx, 0x4743d8
mov byte [ebp - 4], 0x1a
call fcn.00414d80
add esp, 0xc
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], bl
call fcn.00401f70
call fcn.0043a1b1
mov dword [ebp - 0x368], eax
call fcn.0043a06b
push edi
lea ecx, [ebp - 0x358]
mov esi, eax
call fcn.00439fa0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x405b87
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x358]
call fcn.00439fc8
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x2c0]
push 0x474404
push ecx
mov ecx, 0x4743fc
mov byte [ebp - 4], 0x1b
call fcn.00414d80
add esp, 0xc
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], bl
call fcn.00401f70
push 1
mov eax, 0x474404
lea esi, [ebp - 0x2c0]
call fcn.00412040
lea edx, [ebp - 0x288]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x374], esp
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x2c0]
mov esi, 7
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edx
mov word [ecx], ax
call fcn.004015e0
sub esp, 0x1c
mov byte [ebp - 4], 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
mov word [ecx], ax
mov eax, 0x49df08
mov dword [ebp - 0x368], esp
lea edx, [eax + 2]
lea esp, [esp]
mov si, word [eax]
add eax, 2
cmp si, di
jne 0x405c30
sub eax, edx
sar eax, 1
push eax
push 0x49df08
call fcn.00401740
mov byte [ebp - 4], bl
call fcn.00426980
add esp, 0x3c
cmp dword [ebp - 0x278], edi
je 0x405ceb
cmp dword [ebp - 0x274], 8
mov eax, dword [ebp - 0x288]
jae 0x405c76
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.00450170
add esp, 8
test eax, eax
jne 0x405ceb
lea ecx, [ebp - 0x288]
lea edi, [ebp - 0x3d4]
call int.0040ecc0
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.0040eaa0
lea edx, [ebp - 0x24c]
push edx
mov eax, 0x4743e0
mov byte [ebp - 4], 0x1d
call fcn.0040eb50
sub esp, 0x1c
lea eax, [ebp - 0x24c]
mov ecx, esp
mov dword [ebp - 0x374], esp
push eax
call fcn.0040eaa0
call fcn.00406cb0
add esp, 0x1c
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x16
call fcn.00401500
xor ebx, ebx
mov edx, dword [ebp - 0x364]
add edx, 0x1c
mov dword [ebp - 0x364], edx
cmp edx, dword [ebp - 0x3c0]
jne 0x405966
mov edi, dword [ebp - 0x350]
mov ecx, dword [ebp - 0x388]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x21c], 8
jb 0x405d37
mov edx, dword [ebp - 0x230]
push edx
call fcn.0044e60d
add esp, 4
inc edi
mov dword [ebp - 0x350], edi
cmp edi, dword [ebp - 0x3a0]
jb 0x405803
mov eax, dword [ebp - 0x38c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x354], ebx
je 0x405d8e
mov ecx, dword [ebp - 0x370]
push ecx
lea edx, [ebp - 0x3b4]
push edx
mov edx, dword [ebp - 0x36c]
lea eax, [ebp - 0x3d4]
push eax
lea ecx, [ebp - 0x39c]
call fcn.004066c0
add esp, 0xc
add dword [ebp - 0x360], eax
mov esi, dword [ebp - 0x370]
mov edx, dword [ebp - 0x36c]
lea ecx, [ebp - 0x39c]
push esi
push ecx
lea ecx, [ebp - 0x354]
call fcn.004072e0
add dword [ebp - 0x360], eax
push str._assemblyGAC_32Desktop.ini
add esi, 0x1dc
lea edx, [ebp - 0x268]
push esi
push edx
call fcn.00414c90
add esp, 0x14
mov ecx, eax
lea edi, [ebp - 0x384]
mov byte [ebp - 4], 0x1e
call fcn.0040ebb0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x254], 8
jb 0x405dfb
mov eax, dword [ebp - 0x268]
push eax
call fcn.0044e60d
add esp, 4
push str._assemblyGAC_64Desktop.ini
lea ecx, [ebp - 0x268]
push esi
push ecx
call fcn.00414c90
add esp, 0xc
mov ecx, eax
lea edi, [ebp - 0x384]
mov byte [ebp - 4], 0x1f
call fcn.0040ebb0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x254], 8
jb 0x405e3d
mov edx, dword [ebp - 0x268]
push edx
call fcn.0044e60d
add esp, 4
push str._assemblyGACDesktop.ini
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.00414c90
add esp, 0xc
mov ecx, eax
lea edi, [ebp - 0x384]
mov byte [ebp - 4], 0x20
call fcn.0040ebb0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x254], 8
jb 0x405e7f
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.0044e60d
add esp, 4
push str._assemblyGAC_MSILDesktop.ini
lea edx, [ebp - 0x268]
push esi
push edx
call fcn.00414c90
add esp, 0xc
mov ecx, eax
lea edi, [ebp - 0x384]
mov byte [ebp - 4], 0x21
call fcn.0040ebb0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x254], 8
jb 0x405ec1
mov eax, dword [ebp - 0x268]
push eax
call fcn.0044e60d
add esp, 4
mov ecx, dword [ebp - 0x380]
sub ecx, dword [ebp - 0x384]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x405f7b
mov ebx, dword [ebp - 0x384]
mov dword [ebp - 0x350], eax
cmp dword [ebx + 0x14], 8
jb 0x405efc
mov eax, dword [ebx]
jmp 0x405efe
mov eax, ebx
push 0
push eax
call fcn.00450170
add esp, 8
test eax, eax
jne 0x405f6a
mov edx, ebx
lea esi, [ebp - 0x26c]
mov dword [ebp - 0x354], 1
call fcn.00414f30
mov ecx, eax
lea edx, [ebp - 0x39c]
mov byte [ebp - 4], 0x22
call fcn.00416cf0
push eax
lea ecx, [ebp - 0x39c]
push ecx
lea edi, [ebp - 0x3e8]
call fcn.00415a60
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x258], 8
jb 0x405f64
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0044e60d
add esp, 4
inc dword [ebp - 0x360]
add ebx, 0x1c
dec dword [ebp - 0x350]
jne 0x405ef2
xor ebx, ebx
cmp dword [ebp - 0x354], 1
jne 0x4062ed
mov eax, dword [ebp - 0x36c]
push str._r_n__ALERT:_ZEROACCESS_rootkit_symptoms_found__r_n_r_n
push eax
call fcn.00414730
mov esi, eax
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + esi + 0xc]
add esp, 8
xor edi, edi
test cl, 6
jne 0x405fc5
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x405fc5
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x405fe4
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x405fdd
or eax, 4
push ebx
push eax
call fcn.00402d10
mov eax, dword [ebp - 0x398]
mov ecx, dword [eax]
mov dword [ebp - 0x354], ecx
cmp ecx, eax
je 0x4062ed
mov eax, dword [ebp - 0x354]
xor edx, edx
push 0xffffffffffffffff
add eax, 0xc
push edx
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], dx
call fcn.004015e0
mov byte [ebp - 4], 0x23
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x230]
mov eax, edi
cmp esi, 8
jae 0x40604c
lea eax, [ebp - 0x230]
invalid
invalid
loopne 0x40604d