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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x6f0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov r12, r8
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x54], ebx
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400835fa
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x1400835fa
xor r9d, r9d
lea r8, [rsp + 0x48]
mov edx, 0xb8
mov rcx, qword [0x1402c0178]
call fcn.1400d2050
mov rdi, rax
test rax, rax
je 0x1400835f8
mov ecx, dword [rsp + 0x48]
inc ecx
call fcn.14010a204
mov r13, rax
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, rax
call fcn.14010c9b0
mov edx, dword [rsp + 0x48]
mov byte [rdx + r13], bl
mov rdx, r13
lea rcx, [rsp + 0x58]
call fcn.1400cc800
nop
mov byte [rsp + 0x2a0], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x2a1]
call fcn.14010da60
mov byte [rsp + 0x3b0], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x3b1]
call fcn.14010da60
mov byte [rsp + 0x4c0], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x4c1]
call fcn.14010da60
mov byte [rsp + 0x190], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x191]
call fcn.14010da60
mov r8d, 0x104
mov rdx, rsi
lea rcx, [rsp + 0x3b0]
call fcn.1400c9950
lea edx, [rbx + 0x5c]
lea rcx, [rsp + 0x3b0]
call fcn.14010db4c
test rax, rax
je 0x140083213
mov byte [rax], bl
mov r8d, 0x104
mov rdx, rsi
lea rcx, [rsp + 0x2a0]
call fcn.1400c9950
lea rcx, [rsp + 0x2a0]
call fcn.1400d4940
lea r8, [rsp + 0x2a0]
lea rdx, str.xxprodxx
lea rcx, [rsp + 0x58]
call fcn.1400cb7b0
lea r8, [rsp + 0x3b0]
lea rdx, str.xxdestdirxx
lea rcx, [rsp + 0x58]
call fcn.1400cb7b0
mov r8, qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, str._msfile_X.inf
lea rcx, [rsp + 0x4c0]
call fcn.14010d754
lea rdx, [rsp + 0x190]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rsp + 0x190]
call fcn.1400c9bc0
lea rdi, [rsp + 0x190]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x4c0]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x1400832c0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400835e4
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdx - 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x20], rbx
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]
movups xmm0, xmmword [str.rundll32.exe_setupapi_InstallHinfSection_DefaultInstall_128]
movaps xmmword [rsp + 0x80], xmm0
movups xmm1, xmmword [0x14021fb80]
movaps xmmword [rsp + 0x90], xmm1
movups xmm0, xmmword [0x14021fb90]
movaps xmmword [rsp + 0xa0], xmm0
movsd xmm1, qword [0x14021fba0]
movsd qword [rsp + 0xb0], xmm1
mov eax, dword [0x14021fba8]
mov dword [rsp + 0xb8], eax
movzx eax, byte [0x14021fbac]
mov byte [rsp + 0xbc], al
lea rdi, [rsp + 0x80]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x190]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x1400833b0
mov dword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x140083429
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x140083429
mov dword [rsp + 0x50], 0xff
lea rcx, [rsp + 0x50]
call fcn.1400d0270
test eax, eax
je 0x140083429
cmp dword [rsp + 0x50], 0
jne 0x140083429
mov dword [rsp + 0x60], ebx
mov eax, 5
mov dword [rsp + 0x28], 0x2710
mov word [rsp + 0x20], ax
xor r9d, r9d
lea r8d, [rax - 4]
lea rdx, [rsp + 0x80]
xor ecx, ecx
call fcn.1400d5b20
jmp 0x140083441
xor r9d, r9d
mov r8d, 0x2710
lea rdx, [rsp + 0x80]
xor ecx, ecx
call fcn.1400d5930
lea r8, [rsp + 0x2a0]
lea rdx, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x5d0]
call fcn.14010d754
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x5d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400835ba
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x14021fb3c]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.140083030
test eax, eax
je 0x140083523
mov eax, dword [str.Filter]
mov dword [rsp + 0x70], eax
movzx eax, word [0x14021fb38]
mov word [rsp + 0x74], ax
movzx eax, byte [0x14021fb3a]
mov byte [rsp + 0x76], al
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Group
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rdx, str.Flags
cmp dword [0x1402bd964], 0
je 0x140083540
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x14008356e
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdx, qword [r12 + 0xb0]
add rdx, 0x181c
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.ObjectPath
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
mov dword [rsp + 0x54], ebx
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400835e4
xor edx, edx
lea rcx, [rsp + 0x190]
call fcn.1400d67e0
mov rcx, r13
call fcn.14010d304
nop
lea rcx, [rsp + 0x58]
call fcn.1400ca400
nop
jmp 0x140083602
xor eax, eax
jmp 0x140083604
mov eax, ebx
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret