Function at 0x14008a290
Capabilities:
Check os version
Delete file
Get common file path
Persist via windows service
Set registry value
Write file on windows

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x690
mov qword [rsp + 0x110], 0xfffffffffffffffe
mov qword [rsp + 0x6c8], rbx
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, r8
mov rsi, rcx
xor r14d, r14d
mov r12d, r14d
mov dword [rsp + 0x48], r14d
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x14008a977
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x14008a977
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0xb8
mov rcx, qword [0x140167678]
call fcn.1400b3410
mov rdi, rax
test rax, rax
je 0x14008a975
mov ecx, dword [rsp + 0x40]
add ecx, 1
call fcn.1400c7310
mov r13, rax
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rax
call fcn.1400c1a10
mov edx, dword [rsp + 0x40]
mov byte [rdx + r13], r14b
mov rdx, r13
lea rcx, [rsp + 0x58]
call fcn.14002e750
nop
mov byte [rsp + 0x350], r14b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x351]
call fcn.1400c2840
mov byte [rsp + 0x460], r14b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x461]
call fcn.1400c2840
mov byte [rsp + 0x120], r14b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x121]
call fcn.1400c2840
mov r8d, 0x103
mov rdx, rsi
lea rcx, [rsp + 0x350]
call fcn.1400c2b80
lea rcx, [rsp + 0x350]
call fcn.1400b6490
lea r8, [rsp + 0x350]
lea rdx, str.xxprodxx
lea rcx, [rsp + 0x58]
call fcn.14002dff0
mov r8, qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, str._msfile_X.inf
lea rcx, [rsp + 0x460]
call fcn.1400c2cf0
lea rdx, [rsp + 0x120]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rsp + 0x120]
call fcn.1400b3390
lea rdi, [rsp + 0x120]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x460]
xor ecx, ecx
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x14008a440
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008a6f4
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdx - 0x10]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x64]
mov r8d, ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x570]
lea rsi, [0x140000000]
mov rax, qword [rsi + 0xfd4f8]
mov qword [rdx], rax
mov rax, qword [rsi + 0xfd500]
mov qword [rdx + 8], rax
mov rax, qword [rsi + 0xfd508]
mov qword [rdx + 0x10], rax
mov rax, qword [rsi + 0xfd510]
mov qword [rdx + 0x18], rax
mov rax, qword [rsi + 0xfd518]
mov qword [rdx + 0x20], rax
mov rax, qword [rsi + 0xfd520]
mov qword [rdx + 0x28], rax
mov rax, qword [rsi + 0xfd528]
mov qword [rdx + 0x30], rax
mov eax, dword [rsi + 0xfd530]
mov dword [rdx + 0x38], eax
movzx eax, byte [rsi + 0xfd534]
mov byte [rdx + 0x3c], al
lea rdi, [rsp + 0x570]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x120]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x14008a540
mov dword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x14008a5b8
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x14008a5b8
mov dword [rsp + 0x44], 0xff
lea rcx, [rsp + 0x44]
call fcn.1400b5630
test eax, eax
je 0x14008a5b8
cmp dword [rsp + 0x44], 0
jne 0x14008a5b8
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x28], 0x2710
mov word [rsp + 0x20], 5
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x570]
xor ecx, ecx
call fcn.1400b7240
jmp 0x14008a5d0
xor r9d, r9d
mov r8d, 0x2710
lea rdx, [rsp + 0x570]
xor ecx, ecx
call fcn.1400b7450
lea r8, [rsp + 0x350]
lea rdx, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x230]
call fcn.1400c2cf0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x230]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14008a6c8
mov dword [rsp + 0x6c], r14d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x1400fd4c8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.14008a200
test eax, eax
je 0x14008a6bd
lea rcx, [rsp + 0x118]
mov eax, dword [rsi + 0xfd4c0]
mov dword [rcx], eax
movzx eax, word [rsi + 0xfd4c4]
mov word [rcx + 4], ax
movzx eax, byte [rsi + 0xfd4c6]
mov byte [rcx + 6], al
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x118]
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Group
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, 1
mov dword [rsp + 0x48], r12d
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14008a6f4
xor edx, edx
lea rcx, [rsp + 0x120]
call fcn.1400b8880
mov rcx, r13
call fcn.14002d0b0
nop
lea rcx, [rsp + 0x58]
call fcn.14002d2c0
test r12d, r12d
je 0x14008a975
mov rcx, qword [rbx + 0x298]
add rcx, 0x1fb4
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14008a975
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.140038c80
nop
mov rcx, qword [rbx + 0x298]
lea rax, [rcx + 0x1794]
mov qword [rsp + 0x70], rax
lea rax, [rcx + 0x1690]
mov qword [rsp + 0x78], rax
lea rax, [rcx + 0x1898]
mov qword [rsp + 0x80], rax
lea rax, [rcx + 0x1ca8]
mov qword [rsp + 0x88], rax
lea rax, [rcx + 0x1dac]
mov qword [rsp + 0x90], rax
lea rax, [rcx + 0x1eb0]
mov qword [rsp + 0x98], rax
lea rax, [rcx + 0x82c]
mov qword [rsp + 0xa0], rax
lea rax, [rcx + 0x1fb4]
mov qword [rsp + 0xa8], rax
lea rax, [rcx + 0xe44]
mov qword [rsp + 0xb0], rax
lea rax, [rcx + 0x728]
mov qword [rsp + 0xb8], rax
lea rax, [rcx + 0x199c]
mov qword [rsp + 0xc0], rax
mov esi, r14d
mov dword [rsp + 0x68], r14d
nop
cmp esi, 0xb
jae 0x14008a87a
mov eax, esi
mov rcx, qword [rsp + rax*8 + 0x70]
cmp byte [rcx], 0
jne 0x14008a823
jmp 0x14008a871
mov edx, 0x5c
call fcn.1400c2dd0
mov rbx, rax
test rax, rax
je 0x14008a871
add rbx, 1
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
call fcn.1400c7310
mov rdx, rax
nop
movzx ecx, byte [rbx]
mov byte [rdx], cl
add rbx, 1
add rdx, 1
test cl, cl
jne 0x14008a850
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.140038ce0
add esi, 1
mov dword [rsp + 0x68], esi
jmp 0x14008a810
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xd0]
call fcn.140038b50
nop
lea rcx, [rsp + 0xd0]
call fcn.140039440
mov rdi, rax
test rax, rax
je 0x14008a93d
mov byte [rsp + 0x230], 0
xor edx, edx
mov r8d, 0x113
lea rcx, [rsp + 0x231]
call fcn.1400c2840
lea rax, [rsp + 0x230]
nop
movzx ecx, byte [rdi]
mov byte [rax], cl
add rdi, 1
add rax, 1
test cl, cl
jne 0x14008a8d0
lea rdi, [rsp + 0x230]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x1400e7464]
mov word [rdi - 1], ax
movzx eax, byte [0x1400e7466]
mov byte [rdi + 1], al
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x230]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x64]
lea rdx, [rsp + 0x230]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14008a890
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
lea rcx, [rsp + 0xe8]
call fcn.1400390f0
nop
lea rcx, [rsp + 0xd0]
call fcn.140038b70
nop
lea rcx, [rsp + 0xe8]
call fcn.1400394e0
nop
jmp 0x14008a980
xor eax, eax
jmp 0x14008a983
mov eax, r12d
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1400c2a20
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x690
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret