Function at 0x1400140f4
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
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1400c7100]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor r14d, r14d
lea rbx, str.BlackBoneDrv7.sys
mov eax, dword [0x1400cb15c]
test eax, eax
je 0x14001417c
cmp eax, 9
ja 0x14001416e
cmp eax, 6
ja 0x140014160
jb 0x14001417c
mov rax, qword [0x1400cb160]
cmp eax, 3
jae 0x140014160
cmp eax, 1
jbe 0x14001417c
lea rbx, str.BlackBoneDrv8.sys
mov edx, 0x93
jmp 0x140014181
lea rbx, str.BlackBoneDrv81.sys
mov edx, 0x95
jmp 0x140014181
lea rbx, str.BlackBoneDrv10.sys
mov edx, 0x96
jmp 0x140014181
mov edx, 0x8e
lea r8, str.Driver
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14001435b
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 + 0x2f]
call fcn.140027f80
nop
mov r8d, 1
lea rdx, [0x1400b4510]
mov rcx, rax
call fcn.140009be4
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r14w
jne 0x140014204
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.140009be4
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rcx, qword [rbp - 0x11]
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 rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x1400142bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400142b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001438a
call fcn.14006c690
movdqa xmm0, xmmword [0x1400b61d0]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], r14w
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x14001430a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014305
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014384
call fcn.14006c690
movdqa xmm0, xmmword [0x1400b61d0]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], r14w
lea rcx, [rbp + 0x2f]
call fcn.140007620
cmp rbx, 0xffffffffffffffff
je 0x14001435b
mov dword [rbp - 0x19], 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 - 0x19]
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 + 0x4f]
xor rcx, rsp
call fcn.14006c670
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14007da9c
nop
call fcn.14007da9c
int3