Function at 0x1401b31b0
Capabilities:
Check os version
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r13, rcx
xor r15b, r15b
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._bootdelete.exe
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1402b9308
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
xor esi, esi
cmp ecx, 5
jne 0x1401b3234
test al, al
lea ecx, [rsi + 1]
je 0x1401b3236
mov ecx, esi
mov eax, esi
test cl, cl
setne al
add eax, 0x12f
movzx edx, ax
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1401b341c
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rsi, rsi
je 0x1401b341a
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f01ff
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401b3411
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401b3408
cmp dword [rsp + 0x78], r14d
jne 0x1401b3408
mov qword [rsp + 0x48], r12
lea edx, [r12 + 0x35]
lea rcx, [rsp + 0x40]
call fcn.1401fcb40
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r9d, [r12 + 0x35]
lea r8, str.HKLMSYSTEMCurrentControlSetControlSession_Manager
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
lea edx, [r12 + 0x35]
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.1400eb0d0
mov rbx, rax
cmp dword [rsp + 0x48], r12d
jle 0x1401b335a
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
test rbx, rbx
je 0x1401b3408
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x70], r12
lea r8, [rsp + 0x60]
lea rdx, [0x14035f5c8]
mov rcx, rbx
call fcn.1400d8d30
mov edx, dword [rsp + 0x68]
inc edx
lea rcx, [rsp + 0x60]
call fcn.1400c7e30
lea rdx, [0x14035f5b0]
lea rcx, [rsp + 0x50]
call fcn.1401faae0
mov edx, dword [rsp + 0x68]
dec edx
mov r8, rax
lea rcx, [rsp + 0x60]
call fcn.1400e28f0
lea r8, [rsp + 0x60]
mov rcx, rbx
call fcn.1401b1900
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov r15b, 1
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1401b3408
lea rbx, [rcx - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
mov edx, 0x10
call fcn.1402b7cf4
mov rcx, rbx
call fcn.1402b712c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
lea rcx, [r13 + 0xd8]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jle 0x1401b3723
call fcn.1401b3940
mov qword [rsp + 0x58], 0
mov edx, 0x27
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, 0x27
lea r8, str.HKLMSYSTEMCurrentControlSetServices_
mov rcx, qword [rsp + 0x50]
call fcn.1402ba94c
mov edx, 0x27
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea rdx, str.hitmanpro37duringboot
lea rcx, [rsp + 0x50]
call fcn.1401fb190
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x50]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x50]
call fcn.1401fde50
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400eb0d0
mov r12, rax
test rax, rax
je 0x1401b3712
lea rax, vtable.Core::Collection_class_Core::String_.0
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], esi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
lea rcx, [r13 + 0xd0]
mov rax, qword [rcx]
call qword [rax]
mov rdi, rax
lea rax, vtable.Core::SharedPtr_class_Core::Collections::Generic::IEnumerator_class_Core::String__.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov r14, rsi
mov qword [rsp + 0x70], rsi
test rdi, rdi
je 0x1401b354e
mov ecx, 4
call fcn.1402b6dbc
mov r14, rax
test rax, rax
je 0x1401b353f
mov dword [rax], esi
mov qword [rsp + 0x70], rax
jmp 0x1401b3547
mov r14, rsi
mov qword [rsp + 0x70], rsi
mov dword [r14], 1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
test al, al
je 0x1401b3599
nop word [rax + rax]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rdx, qword [rax]
lea rcx, str.Disable_driver:__s_r_n
call fcn.1401b1eb0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140117a40
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
test al, al
jne 0x1401b3560
mov qword [rsp + 0x48], 0
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.1401fcb40
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r9d, 0x15
lea r8, str.hitmanpro37duringboot
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
mov ecx, 0x20
call fcn.1402b6dbc
mov rsi, rax
xor r13d, r13d
test rax, rax
je 0x1401b3607
lea rax, [0x140346ce0]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r13
jmp 0x1401b360a
mov rsi, r13
mov edx, dword [rsp + 0x4c]
lea rcx, [rsi + 0x10]
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x4c]
mov eax, dword [rsi + 0x18]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsi + 0x10]
call fcn.1402ba94c
mov edx, dword [rsp + 0x4c]
lea rcx, [rsi + 0x10]
call fcn.1401fde50
cmp dword [rbp - 0x78], 0
jne 0x1401b3652
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rbp - 0x70], rsi
jmp 0x1401b3664
mov rax, qword [rbp - 0x68]
mov qword [rax], rsi
mov qword [rsi], r13
mov rax, qword [rbp - 0x68]
mov qword [rsi + 8], rax
mov qword [rbp - 0x68], rsi
inc dword [rbp - 0x78]
cmp dword [rsp + 0x48], 0
jle 0x1401b367c
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
lea r8, [rbp - 0x80]
mov rcx, r12
call fcn.1401b1a70
test al, al
lea rcx, str.Success_r_n
jne 0x1401b369a
lea rcx, str.Failed__r_n
call fcn.1401b1eb0
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
nop
test r14, r14
je 0x1401b36d6
mov eax, dword [r14]
test eax, eax
jle 0x1401b36bf
dec eax
mov dword [r14], eax
cmp dword [r14], 0
jne 0x1401b36d6
mov rcx, rdi
call fcn.1402150f0
mov rcx, r14
call fcn.1402150f0
nop
lea rax, vtable.Core::Collection_class_Core::String_.0
mov qword [rbp - 0x80], rax
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x1401b3712
nop word [rax + rax]
mov rdi, qword [rbx]
cmp dword [rbx + 0x18], 0
jle 0x1401b3702
mov rcx, qword [rbx + 0x10]
call fcn.1402b7350
mov rcx, rbx
call fcn.1402150f0
mov rbx, rdi
test rdi, rdi
jne 0x1401b36f0
cmp dword [rsp + 0x58], 0
jle 0x1401b3723
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
movzx eax, r15b
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret