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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001dd9e
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x10029008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x100071f9
push eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
push 0x10021e80
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10005680
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x22
push str.SYSTEMCurrentControlSetServices_
call fcn.10005680
push esi
lea ecx, [ebp - 0x28]
call fcn.100057d0
push str.Instances
lea ecx, [ebp - 0x28]
call fcn.100057d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0xf003f
push 0
push 0x10021e80
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10006f45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100071a0
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006f50
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10005680
push str._Instance
lea ecx, [ebp - 0x28]
call fcn.100057d0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmovae ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.DefaultInstance
push dword [ebp - 0x10c]
call ebx
push dword [ebp - 0x10c]
test eax, eax
je 0x10006fc1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100071a0
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x10c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push 0x22
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10c], 0
call fcn.10005680
push esi
lea ecx, [ebp - 0x28]
call fcn.100057d0
push str.Instances_
lea ecx, [ebp - 0x28]
call fcn.100057d0
push esi
lea ecx, [ebp - 0x28]
call fcn.100057d0
push str._Instance
lea ecx, [ebp - 0x28]
call fcn.100057d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0xf003f
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000705a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100071a0
lea ecx, [ebp - 0x108]
call fcn.10006360
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
push esi
call fcn.100055b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x124]
mov ecx, 0x100296f8
push eax
call fcn.10008b50
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x110]
cmp edx, 8
jb 0x100070d7
mov ecx, dword [ebp - 0x124]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100070cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100070cd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001c08d
add esp, 8
xor eax, eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 7
mov word [ebp - 0x124], ax
cmp dword [ebp - 0x48], eax
je 0x10007143
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.10005480
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Altitude
push dword [ebp - 0x10c]
call ebx
test eax, eax
je 0x10007143
push dword [ebp - 0x10c]
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10007191
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 4
push 0
push str.Flags
push dword [ebp - 0x10c]
call ebx
push dword [ebp - 0x10c]
test eax, eax
je 0x10007177
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10007191
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x10c]
call edi
mov dword [ebp - 0x10c], 0
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x108]
call fcn.10004100
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100071e3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100071d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100071d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001c08d
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, esi
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001c04c
mov esp, ebp
pop ebp
ret 4