Function at 0x14000ec20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x5c], 0xff
mov rbx, rcx
xor r15d, r15d
call fcn.14000e740
test rax, rax
je 0x14000ec98
mov eax, dword [rbx + 4]
mov dword [rbp - 0x7c], eax
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
mov dword [rbx + 4], r8d
cmp r8d, 0x1000000
jbe 0x14000eca6
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4e0
pop r15
pop rbx
pop rbp
ret
mov r10d, dword [rbx]
cmp r10d, 0x1000000
ja 0x14000ec7c
mov eax, dword [rsp + 0x5c]
mov qword [rsp + 0x4d0], r12
movsxd r12, dword [rsp + 0x44]
mov qword [rsp + 0x4c8], r13
mov r13d, dword [rsp + 0x48]
mov qword [rsp + 0x4c0], r14
mov r14d, dword [rsp + 0x40]
mov dword [rbp + 0x420], eax
mov eax, dword [rsp + 0x60]
cmp r13d, 0xc
jne 0x14000ed0e
cmp r14d, 0x18
jge 0x14000ed26
mov ecx, r12d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
jmp 0x14000ed21
cmp r14d, 0x10
jge 0x14000ed26
mov r15d, r12d
sub r15d, eax
sub r15d, r13d
sar r15d, 2
test r15d, r15d
jne 0x14000ed63
movsxd rcx, dword [rbx + 0xb8]
sub rcx, qword [rbx + 0xd0]
add rcx, qword [rbx + 0xc0]
cmp r12, rcx
je 0x14000ed63
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14000ee48
mov ecx, dword [rsp + 0x58]
mov qword [rsp + 0x4d8], rdi
cmp r14d, 0x18
jne 0x14000ed86
cmp ecx, 0xff000000
jne 0x14000ed86
mov dword [rbx + 8], 3
jmp 0x14000ed93
xor eax, eax
test ecx, ecx
setne al
add eax, 3
mov dword [rbx + 8], eax
movsxd rdi, dword [rbx + 8]
mov dword [rbp - 0x80], edi
test edi, edi
js 0x14000fadc
test r10d, r10d
js 0x14000fadc
je 0x14000edc5
xor ecx, ecx
mov eax, 0x7fffffff
cdq
idiv r10d
cmp edi, eax
setle cl
test ecx, ecx
je 0x14000fadc
mov r9d, r10d
imul r9d, edi
test r9d, r9d
js 0x14000fadc
test r8d, r8d
js 0x14000fadc
je 0x14000edf9
xor ecx, ecx
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
setle cl
test ecx, ecx
je 0x14000fadc
xor r9d, r9d
mov qword [rsp + 0x500], rsi
mov edx, r10d
mov ecx, edi
call fcn.1400049d0
mov qword [rbp - 0x78], rax
mov rsi, rax
test rax, rax
jne 0x14000ee6c
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x500]
mov rdi, qword [rsp + 0x4d8]
mov r12, qword [rsp + 0x4d0]
mov r13, qword [rsp + 0x4c8]
mov r14, qword [rsp + 0x4c0]
add rsp, 0x4e0
pop r15
pop rbx
pop rbp
ret
mov qword [rsp + 0x38], rdi
cmp r14d, 0x10
jge 0x14000f3c8
xor edi, edi
test r15d, r15d
je 0x14000f3a3
cmp r15d, 0x100
jg 0x14000f3a3
xor r14d, r14d
test r15d, r15d
jle 0x14000efd7
movsxd rsi, r15d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14000eecf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000eef4
cmp dword [rbx + 0x30], edi
je 0x14000eef2
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000eef4
xor cl, cl
mov rax, qword [rbx + 0xc0]
mov byte [rbp + r14*4 - 0x3e], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14000ef18
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000ef3d
cmp dword [rbx + 0x30], edi
je 0x14000ef3b
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000ef3d
xor cl, cl
mov rax, qword [rbx + 0xc0]
mov byte [rbp + r14*4 - 0x3f], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14000ef61
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000ef86
cmp dword [rbx + 0x30], edi
je 0x14000ef84
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000ef86
xor cl, cl
mov byte [rbp + r14*4 - 0x40], cl
cmp r13d, 0xc
je 0x14000efc1
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14000efad
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000efc1
cmp dword [rbx + 0x30], edi
je 0x14000efc1
mov rcx, rbx
call fcn.140005160
inc qword [rbx + 0xc0]
mov byte [rbp + r14*4 - 0x3d], 0xff
inc r14
cmp r14, rsi
jl 0x14000eeb0
mov rsi, qword [rbp - 0x78]
xor eax, eax
mov rcx, rbx
cmp r13d, 0xc
setne al
add eax, 3
imul eax, r15d
sub r12d, eax
sub r12d, dword [rsp + 0x60]
sub r12d, r13d
mov edx, r12d
call fcn.1400051e0
mov r13d, dword [rsp + 0x40]
cmp r13d, 1
jne 0x14000f015
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x14000f033
cmp r13d, 4
jne 0x14000f026
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x14000f033
cmp r13d, 8
jne 0x14000f37e
mov r12d, dword [rbx]
neg r12d
and r12d, 3
mov dword [rbp + 0x410], r12d
cmp r13d, 1
jne 0x14000f1be
xor r13d, r13d
cmp dword [rbx + 4], edi
jle 0x14000f9e7
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
mov r15d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x14000f085
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f0ab
cmp dword [rbx + 0x30], 0
je 0x14000f0a9
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f0ab
xor cl, cl
xor r14d, r14d
movzx edx, cl
cmp dword [rbx], r14d
jle 0x14000f169
mov r12, qword [rsp + 0x38]
nop
mov eax, edx
mov ecx, r15d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x40]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0x3f]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0x3e]
mov byte [rdi + rsi + 2], al
add rdi, 3
cmp r12, 4
jne 0x14000f0fd
mov byte [rdi + rsi], 0xff
inc rdi
inc r14d
cmp r14d, dword [rbx]
je 0x14000f162
sub r15d, 1
jns 0x14000f159
mov rax, qword [rbx + 0xc0]
mov r15d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x14000f130
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f156
cmp dword [rbx + 0x30], 0
je 0x14000f154
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f156
xor cl, cl
movzx edx, cl
cmp r14d, dword [rbx]
jl 0x14000f0c0
mov r12d, dword [rbp + 0x410]
test r12d, r12d
je 0x14000f1ac
cmp qword [rbx + 0x10], 0
je 0x14000f1a2
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x14000f1a2
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14000f1ac
mov eax, r12d
add qword [rbx + 0xc0], rax
inc r13d
cmp r13d, dword [rbx + 4]
jl 0x14000f060
jmp 0x14000f9e7
xor r15d, r15d
cmp dword [rbx + 4], edi
jle 0x14000f9e7
nop word [rax + rax]
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x14000f329
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14000f1ff
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f225
cmp dword [rbx + 0x30], 0
je 0x14000f223
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f225
xor cl, cl
xor r8d, r8d
movzx eax, cl
cmp r13d, 4
jne 0x14000f23b
mov r8d, eax
and r8d, 0xf
shr eax, 4
mov r9, qword [rsp + 0x38]
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x40]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x3f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x3e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
cmp r9, 4
jne 0x14000f27e
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [r14 + 1]
cmp eax, dword [rbx]
je 0x14000f329
cmp r13d, 8
jne 0x14000f2de
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14000f2af
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f2da
cmp dword [rbx + 0x30], 0
je 0x14000f2d8
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
mov r9, qword [rsp + 0x38]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f2da
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rbp + rdx - 0x40]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x3f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x3e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
cmp r9, 4
jne 0x14000f31c
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
add r14d, 2
cmp r14d, dword [rbx]
jl 0x14000f1e0
test r12d, r12d
je 0x14000f36c
cmp qword [rbx + 0x10], 0
je 0x14000f362
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x14000f362
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14000f36c
mov eax, r12d
add qword [rbx + 0xc0], rax
inc r15d
cmp r15d, dword [rbx + 4]
jl 0x14000f1d0
jmp 0x14000f9e7
mov rcx, rsi
call fcn.140036340
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_bpp
jmp 0x14000ee32
mov rcx, rsi
call fcn.140036340
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x14000ee32
sub r12d, dword [rsp + 0x60]
xor eax, eax
sub r12d, r13d
mov dword [rbp + 0x408], eax
mov edx, r12d
mov dword [rbp + 0x428], eax
mov rcx, rbx
mov dword [rsp + 0x30], eax
mov dword [rbp + 0x410], eax
mov r15d, eax
mov r14d, eax
call fcn.1400051e0
mov ecx, dword [rsp + 0x40]
cmp ecx, 0x18
jne 0x14000f409
mov eax, dword [rbx]
lea eax, [rax + rax*2]
jmp 0x14000f416
cmp ecx, 0x10
jne 0x14000f414
mov eax, dword [rbx]
add eax, eax
jmp 0x14000f416
xor eax, eax
mov r12d, dword [rsp + 0x54]
neg eax
mov r9d, dword [rsp + 0x50]
and eax, 3
mov r8d, dword [rsp + 0x4c]
mov dword [rsp + 0x7c], eax
cmp ecx, 0x18
jne 0x14000f44e
lea r14d, [rcx - 0x17]
mov eax, r15d
mov r8d, eax
mov r9d, eax
mov r10d, eax
mov r12d, eax
mov r13d, eax
jmp 0x14000f632
cmp ecx, 0x20
jne 0x14000f482
cmp r12d, 0xff
jne 0x14000f482
cmp r9d, 0xff00
jne 0x14000f482
cmp r8d, 0xff0000
jne 0x14000f482
mov r11d, dword [rsp + 0x58]
cmp r11d, 0xff000000
jne 0x14000f4a2
lea r14d, [rcx - 0x1e]
jmp 0x14000f437
test r8d, r8d
je 0x14000fab7
test r9d, r9d
je 0x14000fab7
test r12d, r12d
je 0x14000fab7
mov r11d, dword [rsp + 0x58]
mov ecx, r8d
call fcn.14000e680
mov edx, r8d
mov ecx, r8d
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r13d, [rax - 7]
mov ecx, edx
mov dword [rbp + 0x408], r13d
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r10d, al
call fcn.14000e680
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rbp + 0x428], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r12d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r9d, al
call fcn.14000e680
sub eax, 7
mov edx, r12d
shr edx, 1
mov ecx, r12d
and edx, 0x55555555
mov dword [rsp + 0x30], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r11d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r8d, al
call fcn.14000e680
lea r12d, [rax - 7]
mov edx, r11d
mov dword [rbp + 0x410], r12d
shr edx, 1
mov ecx, r11d
and edx, 0x55555555
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx eax, al
cmp r10d, 8
ja 0x14000fab7
cmp r9d, 8
ja 0x14000fab7
cmp r8d, 8
ja 0x14000fab7
cmp eax, 8
ja 0x14000fab7
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x20], r15d
cmp dword [rbx + 4], r15d
jle 0x14000f9e7
mov edx, r13d
neg edx
mov dword [rsp + 0x2c], edx
mov edx, 8
mov r11d, edx
sub r11d, r10d
mov dword [rsp + 0x28], r11d
mov r11d, dword [rbp + 0x428]
neg r11d
mov dword [rsp + 0x24], r11d
mov r11d, edx
sub r11d, r9d
mov dword [rsp + 0x68], r11d
mov r11d, dword [rsp + 0x30]
neg r11d
mov dword [rsp + 0x6c], r11d
mov r11d, edx
sub r11d, r8d
mov dword [rsp + 0x70], r11d
mov r11d, r12d
neg r11d
sub edx, eax
mov dword [rsp + 0x74], r11d
mov r11d, r10d
mov r10d, r9d
mov r9d, r8d
mov dword [rsp + 0x78], edx
mov r8d, eax
mov edx, r14d
mov qword [rbp - 0x50], r8
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], r11
mov qword [rbp - 0x60], r10
mov qword [rbp - 0x58], r9
movsxd rax, r15d
test rdx, rdx
je 0x14000f85b
xor r13d, r13d
cmp dword [rbx], r13d
jle 0x14000f9c0
lea rdi, [rax + rsi]
mov rsi, qword [rsp + 0x38]
lea r14, [rdi + 1]
lea r12, [rdi + 2]
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14000f70f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f735
cmp dword [rbx + 0x30], 0
je 0x14000f733
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f735
xor cl, cl
mov byte [r12], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14000f758
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f77e
cmp dword [rbx + 0x30], 0
je 0x14000f77c
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f77e
xor cl, cl
mov byte [r14], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14000f7a0
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f7c6
cmp dword [rbx + 0x30], 0
je 0x14000f7c4
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f7c6
xor cl, cl
mov byte [rdi], cl
add r15d, 3
add rdi, 3
add r12, 3
add r14, 3
cmp qword [rbp - 0x70], 2
jne 0x14000f826
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14000f7fe
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f828
cmp dword [rbx + 0x30], 0
je 0x14000f822
mov rcx, rbx
call fcn.140005160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14000f828
xor cl, cl
jmp 0x14000f828
mov cl, 0xff
movzx eax, cl
or dword [rbp + 0x420], eax
cmp rsi, 4
jne 0x14000f845
inc r15d
mov byte [rdi], cl
inc r12
inc r14
inc rdi
inc r13d
cmp r13d, dword [rbx]
jl 0x14000f6f0
mov rdi, qword [rsp + 0x38]
jmp 0x14000f9bc
xor r12d, r12d
cmp dword [rbx], r12d
jle 0x14000f9c0
lea r14, [rax + rsi]
movsxd r13, ecx
mov esi, dword [rbp + 0x410]
mov rcx, rbx
call fcn.1400053f0
cmp r13, 0x10
je 0x14000f896
mov rcx, rbx
mov edi, eax
call fcn.1400053f0
shl eax, 0x10
add eax, edi
mov rdi, qword [rsp + 0x38]
mov ecx, dword [rbp + 0x408]
mov edx, eax
and edx, dword [rsp + 0x4c]
test ecx, ecx
jns 0x14000f8ae
mov ecx, dword [rsp + 0x2c]
shl edx, cl
jmp 0x14000f8b0
shr edx, cl
mov r10, qword [rbp - 0x68]
lea r8, [0x140000000]
mov ecx, dword [rsp + 0x28]
shr edx, cl
imul edx, dword [r8 + r10*4 + 0x77a80]
mov ecx, dword [r8 + r10*4 + 0x74b90]
sar edx, cl
mov ecx, dword [rbp + 0x428]
mov byte [r14], dl
mov edx, eax
and edx, dword [rsp + 0x50]
test ecx, ecx
jns 0x14000f8ef
mov ecx, dword [rsp + 0x24]
shl edx, cl
jmp 0x14000f8f1
shr edx, cl
mov r9, qword [rbp - 0x60]
mov ecx, dword [rsp + 0x68]
shr edx, cl
imul edx, dword [r8 + r9*4 + 0x77a80]
mov ecx, dword [r8 + r9*4 + 0x74b90]
sar edx, cl
mov ecx, dword [rsp + 0x30]
mov byte [r14 + 1], dl
mov edx, eax
and edx, dword [rsp + 0x54]
test ecx, ecx
jns 0x14000f928
mov ecx, dword [rsp + 0x6c]
shl edx, cl
jmp 0x14000f92a
shr edx, cl
mov r9, qword [rbp - 0x58]
add r15d, 3
mov ecx, dword [rsp + 0x70]
mov r11d, dword [rsp + 0x58]
shr edx, cl
imul edx, dword [r8 + r9*4 + 0x77a80]
mov ecx, dword [r8 + r9*4 + 0x74b90]
sar edx, cl
mov byte [r14 + 2], dl
add r14, 3
test r11d, r11d
je 0x14000f996
and eax, r11d
test esi, esi
jns 0x14000f96c
mov ecx, dword [rsp + 0x74]
shl eax, cl
jmp 0x14000f970
mov ecx, esi
shr eax, cl
mov r8, qword [rbp - 0x50]
lea r9, [0x140000000]
mov ecx, dword [rsp + 0x78]
shr eax, cl
imul eax, dword [r9 + r8*4 + 0x77a80]
mov ecx, dword [r9 + r8*4 + 0x74b90]
sar eax, cl
jmp 0x14000f99b
mov eax, 0xff
or dword [rbp + 0x420], eax
cmp rdi, 4
jne 0x14000f9b0
inc r15d
mov byte [r14], al
inc r14
inc r12d
cmp r12d, dword [rbx]
jl 0x14000f874
mov rsi, qword [rbp - 0x78]
mov edx, dword [rsp + 0x7c]
mov rcx, rbx
call fcn.1400051e0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x40]
inc eax
mov rdx, qword [rbp - 0x70]
mov dword [rsp + 0x20], eax
cmp eax, dword [rbx + 4]
jl 0x14000f6c0
mov r11d, dword [rbp - 0x80]
cmp r11d, 4
jne 0x14000fa1a
cmp dword [rbp + 0x420], 0
jne 0x14000fa1a
mov eax, dword [rbx]
imul eax, dword [rbx + 4]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14000fa1a
nop
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x14000fa10
cmp dword [rbp - 0x7c], 0
jle 0x14000fa8d
xor r10d, r10d
test dword [rbx + 4], 0xfffffffe
jle 0x14000fa8d
nop dword [rax]
mov ecx, dword [rbx]
xor r8d, r8d
mov edx, dword [rbx + 4]
mov r9d, ecx
sub edx, r10d
imul r9d, r10d
dec edx
imul edx, ecx
imul ecx, r11d
imul r9d, r11d
imul edx, r11d
add r9, rsi
add rdx, rsi
test ecx, ecx
jle 0x14000fa80
sub r9, rdx
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [r9 + rdx]
mov byte [r9 + rdx], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
imul eax, r11d
cmp r8d, eax
jl 0x14000fa60
mov eax, dword [rbx + 4]
inc r10d
sar eax, 1
cmp r10d, eax
jl 0x14000fa30
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x418]
mov dword [0x14008c2e0], eax
mov eax, dword [rbx + 4]
mov dword [0x14008c2cc], eax
test rcx, rcx
je 0x14000faaf
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x14000ee38
mov rcx, rsi
call fcn.140036340
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x14000ee32
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14000ee40