Function at 0x479330
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605047
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x69def4]
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 dword [ebp - 0x884], ecx
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.005d4960
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.005d4960
add esp, 0x18
call fcn.0048bd30
test al, al
je 0x4793ac
push eax
pop edx
pop edi
pop edi
push ebp
pop ecx
push ecx
push edi
push esp
push edi
push esi
push ebp
pop esi
pop ecx
pop esp
push esi
pop esp
push ecx
push esp
push eax
pop ecx
pop ecx
call fcn.0048be80
test al, al
je 0x4793d1
pop ebx
push ecx
pop edx
push ebp
push edx
pop edi
pop edi
pop esp
push ebp
pop esi
pop edx
pop ebp
pop esi
pop edx
push edi
pop ebp
push ebp
push edi
push ebp
pop edx
push ebp
push esi
pop esi
pop esi
pop ebp
push edx
push ebp
pop esp
call fcn.0048bd30
test al, al
je 0x4793f1
pop esi
push ebp
pop edx
pop edx
push ebp
push edi
pop eax
push ebp
pop edx
pop ecx
pop esp
push esp
pop edi
push esp
pop edx
push ebp
push esi
push edi
push edi
pop ebx
pop ebp
pop ebx
push esp
lea eax, [ebp - 0x628]
push eax
push str.d083f2
lea eax, [ebp - 0x860]
push 0x609b1c
push eax
call fcn.0042d420
mov eax, dword [ebp - 0x84c]
add esp, 0x10
cmp eax, 8
jb 0x47942f
inc eax
lea ecx, [ebp - 0x860]
push eax
push dword [ebp - 0x860]
call fcn.00407310
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479440
sub ecx, edx
sar ecx, 1
je 0x479463
mov ecx, dword [ebp - 0x884]
lea eax, [ebp - 0x628]
push eax
call fcn.0047b1b0
call fcn.0048c0b0
test al, al
je 0x47948b
push edi
push eax
push esp
pop edx
pop edx
pop edx
pop ebp
push ebp
pop ebp
push edx
pop ecx
push esp
push ebp
push ebp
push esi
pop esi
push ebx
push eax
pop ecx
pop esi
pop edx
push ebx
pop esp
pop esi
pop ebp
push ebp
pop esp
push ecx
pop edx
pop ebp
pop edi
call fcn.0048c040
test al, al
je 0x4794af
push ebx
pop ecx
push edi
pop ebx
push esi
pop ebx
pop ecx
push ecx
pop esi
pop edi
pop ecx
pop edx
push ebx
push esp
pop esi
pop esp
pop edx
push esp
pop ecx
pop edx
push ecx
push edi
push ecx
pop edx
push esi
pop esi
pop ebp
call fcn.0045c3b0
test eax, eax
je 0x4794c9
mov edx, dword [eax]
lea ecx, [ebp - 0x830]
push ecx
mov ecx, eax
call dword [edx + 0x12c]
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4794d2
sub ecx, edx
sar ecx, 1
je 0x4794f5
mov ecx, dword [ebp - 0x884]
lea eax, [ebp - 0x830]
push eax
call fcn.0047b1b0
call fcn.0048bb00
test al, al
je 0x47950f
push ebx
push edx
pop edi
pop esp
push esp
pop eax
push edx
pop edi
pop ebp
push esi
push edi
push edi
push edi
push ebp
pop esi
pop ebp
pop esi
call fcn.0048c2e0
test al, al
je 0x479535
push edx
pop esi
push esp
pop ebx
pop eax
push edi
push ebp
push eax
pop ebx
pop esp
push edi
push esp
pop edx
pop edx
push edi
push edx
push esi
pop ecx
pop eax
pop ebx
pop eax
push esp
pop edi
push ecx
pop esp
pop ebp
pop esp
pop ebp
push esi
call fcn.0048c3c0
test al, al
je 0x47954f
pop edi
pop esi
push edx
push esp
pop eax
push esp
pop edx
push ebp
push edx
push edx
push edx
push edi
pop ebp
push esp
pop eax
pop esi
pop esp
lea eax, [ebp - 0x880]
mov dword [ebp - 0x880], 0
push eax
push 9
push 0
push str.SYSTEMCurrentControlSet_services_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47957f
xor eax, eax
jmp 0x479c6b
call fcn.0048bbe0
test al, al
je 0x4795a5
push edi
pop ecx
push esi
push ebx
push edi
push ebp
push ebp
push esp
pop eax
pop edi
pop ecx
pop ebp
pop ecx
pop esp
push esi
pop eax
pop ebp
push ebp
push ebp
push eax
pop edi
push edx
push eax
push eax
pop ebp
push ebx
pop edx
push ebp
pop esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x888], ebx
mov dword [ebp - 0x854], ebx
mov dword [ebp - 0x850], esi
mov dword [ebp - 0x84c], ebx
xor eax, eax
mov dword [ebp - 4], esi
push eax
push 0x6097e8
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], esi
mov word [ebp - 0x878], ax
call fcn.00407210
push 0x206
lea eax, [ebp - 0x41e]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.005d4960
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.005d4960
movups xmm0, xmmword [0x609b1c]
lea eax, [ebp - 0x420]
push eax
movups xmmword [ebp - 0x420], xmm0
call fcn.005df02f
lea ecx, [ebp - 0x420]
add esp, 0x1c
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479640
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jb 0x479b5f
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x218]
push 0x104
push eax
xor esi, esi
push esi
push dword [ebp - 0x880]
mov dword [ebp - 0x87c], esi
call edi
test eax, eax
jne 0x4797ca
call fcn.0048c270
test al, al
je 0x4796ac
push edi
pop esp
push esp
pop edi
push esi
pop edx
push ecx
pop edx
push esi
pop edx
push esi
push eax
push esp
pop ebx
pop ebp
push ebx
pop ebx
push edx
push esp
pop ebp
push ebp
push edi
push ebp
pop esi
push ebx
pop ebx
mov esi, dword [ebp - 0x87c]
call fcn.0048c0b0
test al, al
je 0x4796c6
pop ebp
push esi
pop eax
pop esp
push ecx
pop ebp
push ebx
pop ebp
pop ecx
pop edi
push edi
pop ecx
push ecx
pop eax
pop ebx
push esp
pop edx
call fcn.0048bbe0
test al, al
je 0x4796e1
pop ecx
push esp
pop ebp
push esi
pop esp
pop eax
pop edi
push ebp
push esp
pop edi
push ecx
pop ecx
push edx
push ecx
pop ecx
push eax
push esp
push ecx
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
jne 0x47970b
xor ecx, ecx
jmp 0x479723
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479714
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.00407210
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
call fcn.005df02f
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005d653d
add esp, 0xc
test eax, eax
je 0x479772
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x854]
call fcn.00420990
mov eax, dword [ebp - 0x834]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x479794
inc eax
lea ecx, [ebp - 0x848]
push eax
push dword [ebp - 0x848]
call fcn.00407310
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x218]
push 0x104
push eax
inc esi
push esi
push dword [ebp - 0x880]
mov dword [ebp - 0x87c], esi
call edi
test eax, eax
je 0x479683
mov ebx, dword [ebp - 0x854]
mov dword [ebp - 0x888], ebx
mov ecx, dword [ebp - 0x884]
add ecx, 0x94
cmp dword [ecx + 0x14], 8
jb 0x4797de
mov ecx, dword [ecx]
lea edx, [ebp - 0x420]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4797e4
lea eax, [ebp - 0x420]
push eax
call fcn.005df02f
lea ecx, [ebp - 0x420]
add esp, 4
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479810
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jb 0x479995
push 0x104
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push esi
push dword [ebp - 0x880]
mov dword [ebp - 0x87c], esi
call edi
test eax, eax
jne 0x479995
nop dword [eax]
call fcn.0048c270
test al, al
je 0x479879
push edi
pop esp
push esp
pop edi
push esi
pop edx
push ecx
pop edx
push esi
pop edx
push esi
push eax
push esp
pop ebx
pop ebp
push ebx
pop ebx
push edx
push esp
pop ebp
push ebp
push edi
push ebp
pop esi
push ebx
pop ebx
mov esi, dword [ebp - 0x87c]
call fcn.0048c0b0
test al, al
je 0x479893
pop ebp
push esi
pop eax
pop esp
push ecx
pop ebp
push ebx
pop ebp
pop ecx
pop edi
push edi
pop ecx
push ecx
pop eax
pop ebx
push esp
pop edx
call fcn.0048bbe0
test al, al
je 0x4798ae
pop ecx
push esp
pop ebp
push esi
pop esp
pop eax
pop edi
push ebp
push esp
pop edi
push ecx
pop ecx
push edx
push ecx
pop ecx
push eax
push esp
push ecx
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
jne 0x4798d8
xor ecx, ecx
jmp 0x4798f0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4798e1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.00407210
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
call fcn.005df02f
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005d653d
add esp, 0xc
test eax, eax
je 0x47993f
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x854]
call fcn.00420990
mov eax, dword [ebp - 0x834]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x479961
inc eax
lea ecx, [ebp - 0x848]
push eax
push dword [ebp - 0x848]
call fcn.00407310
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push dword [ebp - 0x880]
mov dword [ebp - 0x87c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x479850
mov ebx, dword [ebp - 0x854]
mov dword [ebp - 0x888], ebx
push dword [ebp - 0x880]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
mov dword [ebp - 0x87c], esi
cmp ebx, dword [ebp - 0x850]
je 0x479b10
call fcn.0048bb70
test al, al
je 0x4799df
pop eax
push edx
push edi
push esp
push ebp
pop ebp
pop eax
push eax
pop esi
push esi
pop eax
pop esp
push esi
push esi
push eax
push esp
push eax
push eax
pop ecx
push edx
pop esi
push edx
pop esp
pop eax
push esi
push ebp
push edx
mov esi, dword [ebp - 0x87c]
call fcn.0048c0b0
test al, al
je 0x479a00
pop esp
push ebx
pop esp
pop esp
pop esp
pop edi
pop eax
pop eax
push esi
push esi
pop eax
push esi
push ebx
push eax
push ebp
push ebp
push ebp
push edi
pop edi
pop ebp
pop esp
push ebx
push ebp
pop ebx
cmp dword [esi + 0x14], 8
jb 0x479a0a
mov edx, dword [esi]
jmp 0x479a0c
mov edx, esi
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
cmp word [edx], ax
jne 0x479a32
xor ecx, ecx
jmp 0x479a46
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479a37
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x848]
call fcn.00407210
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov ecx, dword [ebp - 0x884]
cmovae eax, dword [ebp - 0x848]
push eax
mov byte [ebp - 4], 4
call fcn.0047b1b0
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
push str.Delete_Svc
push 0xad
call fcn.00422aa0
mov eax, dword [ebp - 0x834]
add esp, 0xc
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x479afb
mov ecx, dword [ebp - 0x848]
inc eax
cmp eax, 0x7fffffff
ja 0x479b78
add eax, eax
cmp eax, 0x1000
jb 0x479af2
test cl, 0x1f
jne 0x479b78
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x479b78
sub ecx, eax
cmp ecx, 4
jb 0x479b78
cmp ecx, 0x23
ja 0x479b78
mov ecx, eax
push ecx
call fcn.005caa57
add esp, 4
add esi, 0x18
mov dword [ebp - 0x87c], esi
cmp esi, dword [ebp - 0x850]
jne 0x4799b5
call fcn.0048bcc0
test al, al
je 0x479b38
pop esi
pop esi
pop eax
push edi
pop ebx
push edx
pop ebx
push edi
push edx
push ebp
pop esp
push esi
pop edx
push eax
pop ecx
pop eax
pop ebx
push edx
push ebp
pop edi
pop esi
push eax
push edi
pop esi
push esi
pop ebp
pop eax
push eax
push ebp
pop ebp
push ebp
call fcn.0048c3c0
test al, al
je 0x479b53
push edi
push esp
push esi
push esp
pop ecx
pop ecx
push esi
push ebp
push ebp
pop edi
pop edx
pop esp
push esp
push edi
pop esi
pop esi
pop esp
pop ebp
mov esi, dword [ebp - 0x850]
mov ebx, dword [ebp - 0x888]
mov eax, dword [ebp - 0x864]
cmp eax, 8
jb 0x479bc1
mov ecx, dword [ebp - 0x878]
inc eax
cmp eax, 0x7fffffff
jbe 0x479b7d
call fcn.005d9031
add eax, eax
cmp eax, 0x1000
jb 0x479bb8
test byte [ebp - 0x878], 0x1f
je 0x479b94
call fcn.005d9031
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x479ba0
call fcn.005d9031
sub ecx, eax
cmp ecx, 4
jae 0x479bac
call fcn.005d9031
cmp ecx, 0x23
jbe 0x479bb6
call fcn.005d9031
mov ecx, eax
push ecx
call fcn.005caa57
add esp, 4
xor eax, eax
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
test ebx, ebx
je 0x479c66
push dword [ebp - 0x87c]
lea eax, [ebp - 0x854]
push eax
push esi
push ebx
call fcn.00413340
mov ecx, dword [ebp - 0x84c]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x479c22
call fcn.005d9031
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x479c5d
test bl, 0x1f
je 0x479c39
call fcn.005d9031
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x479c45
call fcn.005d9031
sub ebx, eax
cmp ebx, 4
jae 0x479c51
call fcn.005d9031
cmp ebx, 0x23
jbe 0x479c5b
call fcn.005d9031
mov ebx, eax
push ebx
call fcn.005caa57
add esp, 4
mov eax, 1
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.005caa5c
mov esp, ebp
pop ebp
ret