Function at 0x417ab8
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x42c300]
push ebx
push esi
push edi
push 0x41
mov dword [ebp + 0x4b0], eax
pop ecx
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0x64]
mov dword [ebp - 0x68], ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x402238
push 0x403644
mov esi, 0x104
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0040c83d
add esp, 0x14
lea eax, [ebp - 0x68]
push eax
push 1
push ebx
lea eax, [ebp - 0x64]
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417cd7
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x40363c
push dword [ebp - 0x68]
mov dword [ebp - 0x7c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417cd7
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp + 0x1a4]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x403624
lea eax, [ebp + 0x1a4]
push esi
push eax
call fcn.0040c83d
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
push 0x20006
push ebx
push 0x4035f4
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417bb7
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x417cd7
push 0x41
pop ecx
xor eax, eax
push 0x41
lea edi, [ebp + 0xa0]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp + 0x3ac]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp + 0x3ac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
je 0x417c3c
lea eax, [ebp + 0x3ac]
push 0x5c
push eax
call fcn.0041c690
mov byte [eax], bl
lea eax, [ebp + 0x3ac]
push eax
push 0x4035e4
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.0040c83d
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call edi
cmp eax, ebx
jne 0x417c4b
push 0x4035d8
call edi
cmp eax, ebx
je 0x417cd7
push 0x4035c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x74], eax
je 0x417cd7
push 0x41
pop ecx
push dword [ebp + 0x4bc]
xor eax, eax
lea edi, [ebp + 0x2a8]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp + 0x2a8]
push eax
call fcn.0040615b
push 0x4035b4
push esi
lea eax, [ebp + 0x2a8]
push eax
call fcn.0040637c
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
lea eax, [ebp + 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x417cd7
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x6c]
push dword [ebp - 0x78]
call dword [ebp - 0x74]
test eax, eax
push esi
je 0x417cd1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x417cd9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp + 0x4b0]
pop edi
pop esi
pop ebx
call fcn.0041b4ee
add ebp, 0x4b4
leave
ret 4