Function at 0x140001420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rdx
mov rbx, rcx
mov edx, Ordinal_69
mov r15d, r9d
mov esi, r8d
lea ecx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140001684
cmp esi, 7
jb 0x140001471
mov edx, esi
lea rcx, str.ERROR_kull_m_busylight_request_create___count_u__max_is_7__n
call fcn.14000afb0
mov r9d, 7
cmp esi, r9d
mov r11d, r9d
cmovb r11d, esi
xor r14d, r14d
mov esi, r14d
test r11d, r11d
je 0x14000151d
lea r10, [rbp + 2]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10 - 2]
lea r8d, [rsi*8]
mov edx, eax
lea ecx, [r8 + 2]
or edx, 0x10
lea r10, [r10 + 8]
test al, 0xf0
cmovne edx, eax
lea eax, [r8 + 1]
mov byte [rax + rdi], dl
inc esi
movzx eax, byte [r10 - 9]
mov byte [rcx + rdi], al
lea ecx, [r8 + 3]
movzx eax, byte [r10 - 8]
mov byte [rcx + rdi], al
lea ecx, [r8 + 4]
movzx eax, byte [r10 - 7]
mov byte [rcx + rdi], al
lea ecx, [r8 + 5]
movzx eax, byte [r10 - 6]
mov byte [rcx + rdi], al
lea ecx, [r8 + 6]
movzx eax, byte [r10 - 5]
mov byte [rcx + rdi], al
lea ecx, [r8 + 7]
movzx eax, byte [r10 - 4]
mov byte [rcx + rdi], al
lea ecx, [r8 + 8]
movzx eax, byte [r10 - 3]
mov byte [rcx + rdi], al
cmp esi, r11d
jb 0x1400014a0
mov dword [rdi + 0x39], 0xff550404
lea rax, [rdi + 1]
mov word [rdi + 0x3d], 0xffff
xorps xmm3, xmm3
xorps xmm2, xmm2
mov ecx, 3
nop dword [rax]
movq xmm1, qword [rax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea rax, [rax + 0x10]
paddw xmm1, xmm3
movdqa xmm3, xmm1
movq xmm1, qword [rax - 8]
punpcklbw xmm1, xmm0
paddw xmm1, xmm2
movdqa xmm2, xmm1
sub rcx, 1
jne 0x140001540
paddw xmm2, xmm3
movzx r8d, r14w
movdqa xmm0, xmm2
movzx edx, r14w
psrldq xmm0, 8
mov ecx, 0x31
paddw xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
paddw xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
paddw xmm2, xmm0
movd r11d, xmm2
nop dword [rax + rax]
movzx eax, byte [rcx + rdi]
lea rcx, [rcx + 2]
add r8w, ax
movzx eax, byte [rcx + rdi - 1]
add dx, ax
sub r9, 1
jne 0x1400015b0
add dx, r8w
lea ebp, [r9 + 1]
add r11w, dx
movzx eax, r11w
mov byte [rdi + 0x40], r11b
shr ax, 8
mov byte [rdi + 0x3f], al
test rbx, rbx
je 0x140001677
nop
mov rcx, qword [rbx + 0x78]
mov esi, r14d
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001655
movzx r9d, word [rbx + 0x2a]
mov r8d, Ordinal_69
cmp r9d, r8d
jb 0x140001644
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
jne 0x140001664
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__WriteFile__0x_08x__n
mov r8d, eax
call fcn.14000afb0
jmp 0x140001664
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.14000afb0
jmp 0x140001664
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.14000afb0
and ebp, esi
test r15d, r15d
je 0x140001677
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400015f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
jmp 0x14000168a
xor r14d, r14d
mov eax, r14d
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret