Function at 0x406200
Capabilities:
Create process on windows
Get common file path
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdf4
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x93
lea eax, [ebp - 0xc7]
push ebx
push eax
mov byte [ebp - 0xc8], bl
call fcn.00422210
add esp, 0xc
push 0x7fe
lea edx, [ebp - 0xdde]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0xde0], cx
call fcn.00422210
add esp, 0xc
push 0xff
lea eax, [ebp - 0x3cf]
push ebx
push eax
mov byte [ebp - 0x3d0], bl
call fcn.00422210
add esp, 0xc
push 0x206
lea edx, [ebp - 0x2ce]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x2d0], cx
call fcn.00422210
add esp, 0xc
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov eax, 0xb55e18
mov dword [ebp - 0xdf4], ebx
mov byte [ebp - 0xde1], bl
mov byte [ebp - 0xde2], bl
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4062c5
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
sub eax, edx
sar eax, 1
cmp eax, 0xe
jne 0x406306
push 0x433ff8
call fcn.00403790
add esp, 4
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0xb55e18]
mov word [ebp + eax - 0x2c], cx
add eax, 2
cmp cx, bx
jne 0x4062f0
jmp 0x406344
push 0xb55e18
push 0x434020
push 0xb543d0
call edi
add esp, 0xc
push 0xb543d0
call fcn.00403790
add esp, 4
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.4901_5BVH_29ZM]
mov word [ebp + eax - 0x2c], cx
add eax, 2
cmp cx, bx
jne 0x406330
mov eax, 0xb55e38
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406350
sub eax, edx
sar eax, 1
cmp eax, 0x12a
jne 0x40639c
push 0x434070
call fcn.00403790
lea ecx, [ebp - 0xc8]
add esp, 4
push ecx
call fcn.00403cf0
add esp, 4
test eax, eax
je 0x40638f
mov byte [ebp - 0xde1], 1
jmp 0x4063bd
mov byte [ebp - 0xde1], bl
push 0x434098
jmp 0x4063b5
push 0xb55e38
push 0x4340bc
push 0xb543d0
call edi
add esp, 0xc
push 0xb543d0
call fcn.00403790
add esp, 4
lea esi, [ebp - 0xde0]
call fcn.004041a0
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4063d0
sub eax, edx
sar eax, 1
cmp eax, 0x1f4
jbe 0x406422
push 0x4340d8
call fcn.00403790
lea edx, [ebp - 0x3d0]
add esp, 4
push edx
lea ecx, [ebp - 0xde0]
call fcn.00403ec0
add esp, 4
test eax, eax
je 0x406415
mov byte [ebp - 0xde2], 1
jmp 0x406445
mov byte [ebp - 0xde2], bl
push 0x434110
jmp 0x40643d
lea eax, [ebp - 0xde0]
push eax
push str._quP_n0RI
push 0xb543d0
call edi
add esp, 0xc
push 0xb543d0
call fcn.00403790
add esp, 4
lea ecx, [ebp - 0xdf4]
push ecx
lea edx, [ebp - 0xde8]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.systemcurrentcontrolset_servicesWin_Win7
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406483
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x406490
movzx ecx, word [eax + str.180270007700003001900006400360000140337220455]
mov word [ebp + eax - 0x2d0], cx
add eax, 2
cmp cx, bx
jne 0x406490
lea eax, [ebp - 0x2d0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4064b0
mov ecx, dword [ebp - 0xde8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0xdec], eax
lea eax, [ebp - 0x2d0]
push eax
push 1
push ebx
push str.License
push ecx
call esi
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0xb54bd0]
mov word [ebp + eax - 0x2d0], cx
add eax, 2
cmp cx, bx
jne 0x4064f0
lea eax, [ebp - 0x2d0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406510
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea edx, [ebp - 0x2d0]
push edx
push 1
push ebx
mov dword [ebp - 0xdec], eax
mov eax, dword [ebp - 0xde8]
push str.Version
push eax
call esi
mov dword [ebp - 0xdf0], 1
xor eax, eax
mov edi, edi
movzx ecx, word [ebp + eax - 0x2c]
mov word [ebp + eax - 0x2d0], cx
add eax, 2
cmp cx, bx
jne 0x406550
lea eax, [ebp - 0x2d0]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406570
sub eax, edx
mov edx, dword [ebp - 0xde8]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
push 1
push ebx
push str.SerialNumber
push edx
mov dword [ebp - 0xdec], eax
call esi
cmp byte [ebp - 0xde1], 1
jne 0x4065d2
mov ecx, dword [ebp - 0xde8]
push 0x94
lea eax, [ebp - 0xc8]
push eax
push 3
push ebx
push str.ConsolePublicKey
push ecx
mov dword [ebp - 0xdec], 0x94
call esi
cmp byte [ebp - 0xde2], 1
jne 0x406602
mov eax, dword [ebp - 0xde8]
push 0x100
lea edx, [ebp - 0x3d0]
push edx
push 3
push ebx
push str.ConsoleIdentify
push eax
mov dword [ebp - 0xdec], 0x100
call esi
mov eax, dword [ebp - 0xde8]
lea ecx, [ebp - 0xdec]
push ecx
push ebx
lea edx, [ebp - 0xdf0]
push edx
push ebx
push str.GUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xde8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x103
lea edx, [ebp - 0x5df]
push ebx
push edx
mov byte [ebp - 0x5e0], bl
call fcn.00422210
add esp, 0xc
push 0x103
lea eax, [ebp - 0x4d7]
push ebx
push eax
mov byte [ebp - 0x4d8], bl
call fcn.00422210
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x5e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.C:UsersPublicSMR7Debug
lea edx, [ebp - 0x5e0]
push edx
lea eax, [ebp - 0x4d8]
push str._s_reg.exe_export_HKLMSYSTEMCurrentControlSetServicesWin_Win7___sWinWin7.RegDebug.log_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebx
lea ecx, [ebp - 0x4d8]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041a70e
mov esp, ebp
pop ebp
ret