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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419710
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x22
xor eax, eax
mov dword [ebp - 0x30], 7
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.004051c0
push 6
push 0x41ff38
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00405650
push 0xa
push str.Instances
lea ecx, [ebp - 0x44]
call fcn.00405650
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0xf003f
push 1
push 0x41fe3c
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406a82
push 6
push str.tftltt
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.00404b90
push 9
push 0x41ff68
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00404830
push dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmovae eax, dword [ebp - 0x2c]
push eax
push 1
push 0
push str.DefaultInstance
push dword [ebp - 0x48]
call esi
test eax, eax
jne 0x406a5f
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x22
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x44]
call fcn.004051c0
push 6
push 0x41ff38
lea ecx, [ebp - 0x44]
call fcn.00405650
push 0xb
push str.Instances_
lea ecx, [ebp - 0x44]
call fcn.00405650
push 6
push 0x41ff38
lea ecx, [ebp - 0x44]
call fcn.00405650
push 9
push str._Instance
lea ecx, [ebp - 0x44]
call fcn.00405650
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0xf003f
push 1
push 0x41fe3c
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406a5f
push 6
push str.380030
lea ecx, [ebp - 0x2c]
call fcn.00404b90
push dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 1
push 0
push str.Altitude
push dword [ebp - 0x48]
call esi
test eax, eax
jne 0x406a5f
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.Flags
push dword [ebp - 0x48]
call esi
test eax, eax
jne 0x406a5f
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0x10
jb 0x406a70
push dword [ebp - 0x2c]
call fcn.004098d1
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x30], 8
jb 0x406a93
push dword [ebp - 0x44]
call fcn.004098d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408e8c
mov esp, ebp
pop ebp
ret