Function at 0x140014848
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1400cc0b8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r14d, r14d
lea rbx, str.BlackBoneDrv7.sys
mov eax, dword [0x1400d01bc]
test eax, eax
je 0x1400148d0
cmp eax, 9
ja 0x1400148c2
cmp eax, 6
ja 0x1400148b4
jb 0x1400148d0
mov rax, qword [0x1400d01c0]
cmp eax, 3
jae 0x1400148b4
cmp eax, 1
jbe 0x1400148d0
lea rbx, str.BlackBoneDrv8.sys
mov edx, 0x93
jmp 0x1400148d5
lea rbx, str.BlackBoneDrv81.sys
mov edx, 0x95
jmp 0x1400148d5
lea rbx, str.BlackBoneDrv10.sys
mov edx, 0x96
jmp 0x1400148d5
mov edx, 0x8e
lea r8, str.Driver
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140014aab
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
lea rcx, [rbp + 0x1f]
call fcn.1400284e0
nop
mov r8d, 1
lea rdx, [0x1400b8c80]
mov rcx, rax
call fcn.140009ff0
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 1], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xf], xmm1
mov qword [rax + 0x10], r14
mov r15d, 7
mov qword [rax + 0x18], r15
mov word [rax], r14w
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r14w
jne 0x14001495a
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.140009ff0
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x11], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
mov word [rax], r14w
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rcx, qword [rbp - 0x21]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120116
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov r15d, 0x1000
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x140014a10
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, r15
jb 0x140014a0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014ada
call fcn.14006c550
movdqa xmm0, xmmword [0x1400ba940]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], r14w
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140014a5a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, r15
jb 0x140014a55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014ad4
call fcn.14006c550
movdqa xmm0, xmmword [0x1400ba940]
movdqu xmmword [rbp + 0xf], xmm0
mov word [rbp - 1], r14w
lea rcx, [rbp + 0x1f]
call fcn.140007668
cmp rbx, 0xffffffffffffffff
je 0x140014aab
mov dword [rbp - 0x29], r14d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x29]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14006c530
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14007d788
nop
call fcn.14007d788
int3