Function at 0x40a2d9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x664
mov eax, 0x59707b
call fcn.00410ff3
mov dword [ebp - 0x65c], ecx
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00431720
add esp, 0xc
call fcn.004156b6
test al, al
je 0x40a322
pop esi
pop ecx
pop edi
push ebx
pop ecx
push edi
push eax
pop edi
push ebp
push edi
push eax
pop eax
push esp
push edx
push ebx
pop eax
pop edi
push ebp
pop ebp
push ecx
pop edx
call fcn.00415b06
test al, al
je 0x40a33e
push esp
pop esp
push edi
pop ecx
pop ebp
push esp
push esp
pop eax
push esi
push esi
push ebp
pop esp
pop ebx
pop ebx
push edi
pop esp
push esp
pop edi
push edx
call fcn.0041580f
test al, al
je 0x40a365
push edx
push edi
pop eax
pop esp
push edi
pop ebx
pop esi
pop ebp
push esi
pop edi
push esp
push ecx
pop eax
push eax
push ecx
push ebp
push ecx
push ebp
pop esp
push esp
pop edx
pop esp
pop ebp
pop eax
pop esp
pop ebx
pop esi
push edi
push edi
pop ebp
mov edi, dword [ebp - 0x65c]
lea eax, [ebp - 0x628]
push eax
push str.d083f2
mov ecx, edi
call fcn.0040a836
call fcn.004155a2
test al, al
je 0x40a399
pop eax
push edx
push edi
pop esi
push edx
push esi
push edi
push esi
push eax
push eax
pop esp
pop ebp
push edi
pop ecx
push esp
pop esp
pop esi
push ebx
call fcn.00415a37
test al, al
je 0x40a3b2
push ebx
pop esi
pop esi
push ebp
pop edx
push ecx
pop ebx
pop eax
pop ecx
pop esp
pop esi
pop ecx
pop edx
push ebp
pop edx
push edi
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
call fcn.0040ab1b
call fcn.004157ca
test al, al
je 0x40a3e0
pop edx
pop ebx
pop esi
push edi
pop edi
push ecx
pop edx
push ebp
pop eax
pop ebp
push edx
push eax
push eax
pop edx
push edi
pop esp
pop eax
push ebx
pop edi
pop edx
push edx
pop eax
push esi
call fcn.00415449
test al, al
je 0x40a403
pop esp
push ebx
push eax
pop edi
pop ecx
pop edx
push ebp
push eax
pop ecx
push edi
pop eax
pop ebx
push edi
pop ecx
push ebx
pop edi
push eax
pop ecx
push edi
pop esp
push ebx
pop edi
push edx
pop edi
push edx
pop esi
mov ecx, dword [ebp - 0x65c]
call fcn.0040a13e
and dword [ebp - 0x660], 0
lea eax, [ebp - 0x660]
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 0x40a43b
xor eax, eax
jmp 0x40a830
call fcn.004158de
test al, al
je 0x40a45f
push ecx
pop esp
push eax
pop ebp
push esi
pop eax
pop esp
push eax
push esi
pop ecx
pop eax
push ebp
pop eax
pop esi
push edx
pop edi
pop ebp
push edx
push eax
pop ebx
pop edx
pop edx
push esi
push esi
pop edx
pop ebp
pop ebx
call fcn.00415923
test al, al
je 0x40a47f
pop esp
push eax
push esi
push esi
push ebp
push esi
pop eax
pop ecx
pop eax
push edi
push edi
pop ebx
push esp
pop esp
push esi
pop ecx
push esi
push esi
push ebx
pop esi
push edx
pop esp
pop eax
call fcn.0041562c
test al, al
je 0x40a49d
push ebp
push ecx
pop esp
push ecx
pop ebp
push ecx
push esp
push ecx
pop esp
pop edi
push edi
pop ebp
push edi
push esp
pop ebx
push ecx
push edi
pop ebx
pop eax
pop ebx
push ebp
xor ebx, ebx
mov eax, ebx
mov dword [ebp - 0x66c], ebx
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x668], ebx
push ebx
push 0x59b670
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], ebx
mov word [ebp - 0x658], ax
call fcn.00401f62
mov esi, 0x208
mov byte [ebp - 4], 1
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00431720
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00431720
lea eax, [ebp - 0x420]
push 0x59baf0
push eax
call fcn.0043fbd8
lea eax, [ebp - 0x420]
push eax
call fcn.0044105c
add esp, 0x24
call fcn.004156b6
test al, al
je 0x40a548
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.00415785
test al, al
je 0x40a56d
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.004156b6
test al, al
je 0x40a58d
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
push 0x104
lea eax, [ebp - 0x218]
xor edi, edi
push eax
push edi
push dword [ebp - 0x660]
mov ebx, edi
mov dword [ebp - 0x664], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40a6d8
call fcn.004158de
test al, al
je 0x40a5e2
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
xor edi, edi
call fcn.00415899
test al, al
je 0x40a60e
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
mov ebx, dword [ebp - 0x664]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], edi
mov word [ebp - 0x640], ax
cmp word [ebp - 0x218], ax
jne 0x40a634
mov eax, edi
jmp 0x40a641
lea eax, [ebp - 0x218]
push eax
call fcn.00434fd1
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.00401f62
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
call fcn.0044105c
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043187a
add esp, 0xc
test eax, eax
je 0x40a690
lea eax, [ebp - 0x640]
push eax
lea ecx, [ebp - 0x670]
call fcn.0040ace1
push edi
push 1
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 1
call fcn.00401bfd
push 0x104
lea eax, [ebp - 0x218]
inc ebx
push eax
push ebx
push dword [ebp - 0x660]
mov dword [ebp - 0x664], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40a5b8
mov ebx, dword [ebp - 0x670]
mov dword [ebp - 0x65c], ebx
jmp 0x40a6de
mov ebx, dword [ebp - 0x65c]
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a808
call fcn.0041555d
test al, al
je 0x40a709
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.00415a37
test al, al
je 0x40a735
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
mov ebx, dword [ebp - 0x65c]
call fcn.00415ac1
test al, al
je 0x40a74f
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
xor eax, eax
mov dword [ebp - 0x62c], 7
mov esi, str.SYSTEMCurrentControlSet_services_
mov word [ebp - 0x640], ax
xor edi, edi
push esi
mov dword [ebp - 0x630], edi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x640]
call fcn.00401f62
cmp dword [ebx + 0x14], 8
mov byte [ebp - 4], 3
jb 0x40a791
mov esi, dword [ebx]
jmp 0x40a793
mov esi, ebx
cmp word [esi], di
jne 0x40a79c
mov eax, edi
jmp 0x40a7a3
push esi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x640]
call fcn.00401cf3
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
mov esi, reloc.WS2_32.dll_bind
cmovae eax, dword [ebp - 0x640]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push 1
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 1
call fcn.00401bfd
add ebx, 0x18
mov dword [ebp - 0x65c], ebx
cmp ebx, dword [ebp - 0x66c]
jne 0x40a6ef
push edi
push 1
lea ecx, [ebp - 0x658]
call fcn.00401bfd
lea ecx, [ebp - 0x670]
call fcn.0040774d
xor eax, eax
inc eax
call fcn.00410fae
ret