Function at 0x4066c0
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbb0
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x93
lea eax, [ebp - 0x9f]
push 0
push eax
mov byte [ebp - 0xa0], 0
call fcn.00422210
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xba6]
push edx
mov word [ebp - 0xba8], cx
call fcn.00422210
add esp, 0xc
push 0xff
lea eax, [ebp - 0x3a7]
push 0
push eax
mov byte [ebp - 0x3a8], 0
call fcn.00422210
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x2a6]
push edx
mov word [ebp - 0x2a8], cx
call fcn.00422210
add esp, 0xc
lea eax, [ebp - 0xbb0]
push eax
lea ecx, [ebp - 0xbac]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.systemcurrentcontrolset_servicesWin_Win7
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xbb0], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406796
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x4067a0
movzx ecx, word [eax + 0xb54bd0]
mov word [ebp + eax - 0x2a8], cx
add eax, 2
test cx, cx
jne 0x4067a0
lea eax, [ebp - 0x2a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4067c0
mov ecx, dword [ebp - 0xbac]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2a8]
push eax
push 1
push 0
push str.Version
push ecx
call edi
cmp dword [0xb568ac], 0
je 0x40683d
push 0x4342fc
call fcn.00403790
add esp, 4
xor eax, eax
jmp 0x406810
movzx ecx, word [eax + str.4901_5BVH_29ZM]
mov word [ebp + eax - 0x2a8], cx
add eax, 2
test cx, cx
jne 0x406810
lea eax, [ebp - 0x2a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406830
jmp 0x40689b
mov eax, 0xb55e18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406845
sub eax, edx
sar eax, 1
cmp eax, 0xe
jne 0x4068bf
push 0x433ff8
call fcn.00403790
add esp, 4
xor eax, eax
jmp 0x406870
movzx ecx, word [eax + 0xb55e18]
mov word [ebp + eax - 0x2a8], cx
add eax, 2
test cx, cx
jne 0x406870
lea eax, [ebp - 0x2a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406890
mov ecx, dword [ebp - 0xbac]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2a8]
push eax
push 1
push 0
push str.SerialNumber
push ecx
call edi
jmp 0x4068cc
push str.uP_n
call fcn.00403790
add esp, 4
mov edx, dword [ebp - 0xbac]
push str.ConsolePublicKey
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x43434c
call fcn.00403790
mov eax, 0xb55e38
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4068f3
sub eax, edx
sar eax, 1
cmp eax, 0x12a
jne 0x406938
push 0x434070
call fcn.00403790
lea eax, [ebp - 0xa0]
add esp, 4
push eax
call fcn.00403cf0
add esp, 4
test eax, eax
jne 0x406947
push 0x434098
call fcn.00403790
add esp, 4
jmp 0x406965
push str._quP_n0RlQ
call fcn.00403790
add esp, 4
jmp 0x406965
mov edx, dword [ebp - 0xbac]
push 0x94
lea ecx, [ebp - 0xa0]
push ecx
push 3
push 0
push str.ConsolePublicKey
push edx
call edi
lea esi, [ebp - 0xba8]
call fcn.004041a0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406975
sub eax, edx
sar eax, 1
cmp eax, 0x1f4
jbe 0x4069c0
push str.uP_n_tg
call fcn.00403790
lea eax, [ebp - 0x3a8]
add esp, 4
push eax
lea ecx, [ebp - 0xba8]
call fcn.00403ec0
add esp, 4
test eax, eax
jne 0x4069e9
push 0x4343ac
call fcn.00403790
add esp, 4
jmp 0x406a07
lea ecx, [ebp - 0xba8]
push ecx
push str._quP_n0RI
push 0xb543d0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xb543d0
call fcn.00403790
add esp, 4
jmp 0x406a07
mov eax, dword [ebp - 0xbac]
push 0x100
lea edx, [ebp - 0x3a8]
push edx
push 3
push 0
push str.ConsoleIdentify
push eax
call edi
mov ecx, dword [ebp - 0xbac]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041a70e
mov esp, ebp
pop ebp
ret