Function at 0x14006f2f0
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 rdi
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
xor edi, edi
mov dword [rbp - 0x54], 0xff
lea rdx, [rbp - 0x70]
mov dword [rsp + 0x20], edi
mov rbx, rcx
call fcn.14006eda0
test rax, rax
je 0x14006f368
mov eax, dword [rbx + 4]
mov dword [rbp - 0x80], eax
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
mov dword [rbx + 4], r8d
cmp r8d, 0x1000000
jbe 0x14006f375
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4f0
pop rdi
pop rbx
pop rbp
ret
mov r9d, dword [rbx]
cmp r9d, 0x1000000
ja 0x14006f34c
mov eax, dword [rbp - 0x64]
mov edx, dword [rbp - 0x58]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp - 0x60]
mov dword [rbp + 0x428], eax
mov eax, dword [rbp - 0x5c]
mov qword [rsp + 0x4e8], r12
mov r12d, dword [rbp - 0x68]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp - 0x54]
mov qword [rsp + 0x4e0], r13
mov r13d, dword [rbp - 0x70]
mov qword [rsp + 0x4d8], r14
movsxd r14, dword [rbp - 0x6c]
mov dword [rbp + 0x438], eax
mov eax, dword [rbp - 0x50]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x2c], r14d
mov dword [rsp + 0x24], r12d
mov dword [rbp + 0x430], r13d
cmp r12d, 0xc
jne 0x14006f40c
cmp r13d, 0x18
jge 0x14006f425
mov ecx, r14d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [rsp + 0x38]
jmp 0x14006f41d
cmp r13d, 0x10
jge 0x14006f425
mov edi, r14d
sub edi, eax
sub edi, r12d
sar edi, 2
mov dword [rsp + 0x20], edi
test edi, edi
jne 0x14006f462
movsxd rcx, dword [rbx + 0xb8]
add rcx, qword [rbx + 0xc0]
sub rcx, rbx
sub rcx, 0x38
cmp r14, rcx
je 0x14006f462
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14006fd49
cmp r13d, 0x18
jne 0x14006f476
cmp edx, 0xff000000
jne 0x14006f476
lea eax, [r13 - 0x15]
jmp 0x14006f480
xor eax, eax
test edx, edx
setne al
add eax, 3
mov dword [rbx + 8], eax
test r9d, r9d
js 0x140070674
jne 0x14006f498
lea ecx, [r9*4]
jmp 0x14006f4ba
mov eax, 0x7fffffff
cdq
idiv r9d
cmp eax, 4
jl 0x140070674
lea ecx, [r9*4]
test ecx, ecx
js 0x140070674
test r8d, r8d
js 0x140070674
je 0x14006f4d6
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x140070674
mov qword [rsp + 0x4d0], r15
test r9d, r9d
je 0x14006f4f5
mov eax, 0x7fffffff
cdq
idiv r9d
cmp eax, 4
jl 0x140070651
lea ecx, [r9*4]
test r8d, r8d
je 0x14006f513
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x140070651
imul r8d, r9d
shl r8d, 2
movsxd rcx, r8d
call fcn.1402935e4
mov qword [rbp - 0x78], rax
mov r15, rax
test rax, rax
je 0x140070651
mov qword [rsp + 0x510], rsi
cmp r13d, 0x10
jge 0x14006fd8e
xor esi, esi
mov dword [rbp + 0x428], esi
test edi, edi
je 0x14006fd6c
cmp edi, 0x100
jg 0x14006fd6c
movsxd rax, edi
test edi, edi
mov qword [rsp + 0x58], rax
lea rdi, [rbx + 0xc0]
jle 0x14006f7c0
mov esi, dword [rsp + 0x24]
lea r12, [rbx + 0x30]
xor r15d, r15d
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rdi]
cmp rax, rcx
jae 0x14006f5a7
movzx edx, byte [rax]
inc rax
jmp 0x14006f601
cmp dword [rbx + 0x30], 0
lea r12, [rbx + 0x30]
je 0x14006f621
mov rax, qword [rbx + 0x10]
lea rdx, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
test eax, eax
jne 0x14006f5e9
lea rcx, [rbx + 0x39]
mov dword [r12], eax
mov qword [rbx + 0xc8], rcx
mov byte [rbx + 0x38], al
jmp 0x14006f5f9
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
movzx edx, byte [rbx + 0x38]
lea rax, [rbx + 0x39]
mov qword [rdi], rax
lea r13, [r15*4]
mov byte [rbp + r13 - 0x2e], dl
mov r9, rdi
mov r8, rax
mov r14, r12
cmp rax, rcx
jae 0x14006f632
jmp 0x14006f689
lea r13, [r15*4]
mov r14, r12
mov byte [rbp + r13 - 0x2e], 0
cmp dword [r14], 0
je 0x14006f6ab
mov rax, qword [rbx + 0x10]
lea r12, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, r12
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rdi], r12
test eax, eax
jne 0x14006f676
lea rcx, [rbx + 0x39]
mov dword [r14], eax
mov qword [rbx + 0xc8], rcx
mov byte [r12], al
jmp 0x14006f686
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rdi]
movzx edx, byte [rax]
inc rax
mov qword [rdi], rax
mov byte [rbp + r13 - 0x2f], dl
cmp rax, rcx
jae 0x14006f6b1
movzx edx, byte [rax]
lea r12, [rbx + 0x30]
inc rax
mov qword [rdi], rax
jmp 0x14006f723
mov byte [rbp + r13 - 0x2f], 0
cmp dword [r14], 0
mov r12, r14
je 0x14006f721
mov rax, qword [rbx + 0x10]
lea rdx, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
lea rdx, [rbx + 0x38]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rdi], rdx
test eax, eax
jne 0x14006f703
mov dword [r14], eax
lea rcx, [rbx + 0x39]
mov qword [rbx + 0xc8], rcx
mov byte [rdx], al
mov rax, qword [rdi]
movzx edx, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x14006f723
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov rax, qword [rdi]
mov qword [rbx + 0xc8], rcx
movzx edx, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x14006f723
xor dl, dl
mov byte [rbp + r13 - 0x30], dl
cmp esi, 0xc
je 0x14006f791
cmp rax, rcx
jae 0x14006f73a
inc rax
mov qword [rdi], rax
jmp 0x14006f791
cmp dword [r14], 0
je 0x14006f791
mov rax, qword [rbx + 0x10]
lea rdx, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
lea rcx, [rbx + 0x38]
mov qword [rdi], rcx
test eax, eax
jne 0x14006f77e
mov dword [r14], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov byte [rcx], 0
jmp 0x14006f78e
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
inc qword [rdi]
inc r15
mov byte [rbp + r13 - 0x2d], 0xff
cmp r15, qword [rsp + 0x58]
jl 0x14006f590
mov esi, dword [rbp + 0x428]
mov r15, qword [rbp - 0x78]
mov r14d, dword [rsp + 0x2c]
mov r12d, dword [rsp + 0x24]
mov r13d, dword [rbp + 0x430]
xor eax, eax
cmp r12d, 0xc
setne al
add eax, 3
imul eax, dword [rsp + 0x20]
sub r14d, eax
sub r14d, dword [rsp + 0x28]
sub r14d, r12d
je 0x14006f822
test r14d, r14d
jns 0x14006f7ef
mov rax, qword [rbx + 0xc8]
mov qword [rdi], rax
jmp 0x14006f822
cmp qword [rbx + 0x10], 0
je 0x14006f81c
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rdi]
cmp ecx, r14d
jge 0x14006f81c
mov rax, qword [rbx + 0xc8]
sub r14d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r14d
mov qword [rdi], rax
call qword [rbx + Ordinal_26]
jmp 0x14006f822
movsxd rax, r14d
add qword [rdi], rax
cmp r13d, 1
jne 0x14006f835
mov r8d, dword [rbx]
lea r14d, [r8 + 7]
shr r14d, 3
jmp 0x14006f857
cmp r13d, 4
jne 0x14006f847
mov r8d, dword [rbx]
lea r14d, [r8 + 1]
shr r14d, 1
jmp 0x14006f857
cmp r13d, 8
jne 0x14006fd13
mov r14d, dword [rbx]
mov r8d, r14d
mov eax, dword [rbx + 4]
neg r14d
and r14d, 3
mov ecx, eax
mov dword [rbp + 0x428], r14d
cmp r13d, 1
jne 0x14006fab4
mov dword [rbp + 0x430], 0
test eax, eax
jle 0x14007056c
xor esi, esi
nop dword [rax + rax]
mov rcx, qword [rdi]
mov r12d, 7
cmp rcx, qword [rbx + 0xc8]
jae 0x14006f8ad
movzx edx, byte [rcx]
inc rcx
mov qword [rdi], rcx
jmp 0x14006f920
cmp dword [rbx + 0x30], 0
je 0x14006f91e
mov rax, qword [rbx + 0x10]
lea r13, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, r13
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rdi], r13
test eax, eax
jne 0x14006f8ff
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov byte [r13], 0
mov rax, qword [rdi]
movzx edx, byte [rax]
lea rcx, [rax + 1]
mov qword [rdi], rcx
jmp 0x14006f920
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov rax, qword [rdi]
mov qword [rbx + 0xc8], rcx
movzx edx, byte [rax]
lea rcx, [rax + 1]
mov qword [rdi], rcx
jmp 0x14006f920
xor dl, dl
movzx r11d, dl
xor r13d, r13d
mov edx, dword [rbx]
mov r8, rcx
test edx, edx
jle 0x14006fa57
mov r9, rcx
mov r10d, edx
nop word [rax + rax]
mov eax, r11d
mov ecx, r12d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x30]
mov byte [rsi + r15], al
movzx eax, byte [rbp + rcx - 0x2f]
mov byte [rsi + r15 + 1], al
movzx eax, byte [rbp + rcx - 0x2e]
mov rcx, r9
mov byte [rsi + r15 + 2], al
lea eax, [r13 + 1]
mov byte [rsi + r15 + 3], 0xff
mov r13d, eax
add rsi, 4
cmp eax, edx
je 0x14006fa50
sub r12d, 1
jns 0x14006fa3b
mov r12d, 7
cmp r9, qword [rbx + 0xc8]
jae 0x14006f9bf
movzx r11d, byte [r9]
lea rcx, [r9 + 1]
mov qword [rdi], rcx
mov r8, rcx
movzx r11d, r11b
mov edx, r10d
jmp 0x14006fa41
cmp dword [rbx + 0x30], 0
je 0x14006fa2c
mov rax, qword [rbx + 0x10]
lea r14, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, r14
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rdi], r14
test eax, eax
jne 0x14006fa03
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov byte [r14], 0
jmp 0x14006fa13
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rdi]
movzx r11d, byte [rax]
lea rcx, [rax + 1]
mov qword [rdi], rcx
mov r8, rcx
mov edx, dword [rbx]
movzx r11d, r11b
jmp 0x14006fa41
mov r8, qword [rdi]
xor r11b, r11b
movzx r11d, r11b
mov edx, r10d
jmp 0x14006fa41
mov rcx, r8
mov edx, r10d
mov r9, rcx
mov r10d, edx
cmp r13d, edx
jl 0x14006f940
mov r14d, dword [rbp + 0x428]
test r14d, r14d
je 0x14006fa94
cmp qword [rbx + 0x10], 0
je 0x14006fa8b
mov r8d, dword [rbx + 0xc8]
sub r8d, ecx
cmp r8d, r14d
jge 0x14006fa8b
mov rax, qword [rbx + 0xc8]
mov edx, r14d
mov rcx, qword [rbx + 0x28]
sub edx, r8d
mov qword [rdi], rax
call qword [rbx + Ordinal_26]
jmp 0x14006fa94
mov eax, r14d
add rax, rcx
mov qword [rdi], rax
mov edx, dword [rbp + 0x430]
mov eax, dword [rbx + 4]
inc edx
mov dword [rbp + 0x430], edx
mov ecx, eax
cmp edx, eax
jl 0x14006f890
jmp 0x14007056c
xor r12d, r12d
mov dword [rsp + 0x24], r12d
test eax, eax
jle 0x14007056c
xor r13d, r13d
test r8d, r8d
jle 0x14006fcbe
mov r10, qword [rbx + 0xc8]
lea r14, [rbx + 0x30]
mov r9, qword [rdi]
cmp r9, r10
jae 0x14006faef
movzx ecx, byte [r9]
inc r9
mov qword [rdi], r9
jmp 0x14006fb69
cmp dword [r14], 0
je 0x14006fb67
mov rax, qword [rbx + 0x10]
lea r12, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, r12
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rdi], r12
test eax, eax
jne 0x14006fb48
mov dword [r14], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov byte [r12], 0
mov rax, qword [rdi]
mov r10, qword [rbx + 0xc8]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rdi], r9
jmp 0x14006fb69
cdqe
lea r10, [rbx + 0x38]
add r10, rax
mov rax, qword [rdi]
mov qword [rbx + 0xc8], r10
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rdi], r9
jmp 0x14006fb69
xor cl, cl
mov r12d, dword [rbp + 0x430]
xor r11d, r11d
movzx eax, cl
cmp r12d, 4
jne 0x14006fb86
mov r11d, eax
and r11d, 0xf
shr eax, 4
mov r8d, dword [rbx]
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x30]
movsxd rcx, esi
inc esi
mov byte [rcx + r15], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, esi
inc esi
mov byte [rcx + r15], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, esi
inc esi
mov byte [rcx + r15], al
movsxd rax, esi
inc esi
mov byte [rax + r15], 0xff
lea eax, [r13 + 1]
cmp eax, r8d
je 0x14006fcb2
cmp r12d, 8
jne 0x14006fc69
cmp r9, r10
jae 0x14006fbee
movzx ecx, byte [r9]
lea rax, [r9 + 1]
mov qword [rdi], rax
jmp 0x14006fc65
cmp dword [r14], 0
je 0x14006fc63
mov rax, qword [rbx + 0x10]
lea r12, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, r12
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rdi], r12
test eax, eax
jne 0x14006fc42
mov dword [r14], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov byte [r12], 0
mov rax, qword [rdi]
movzx ecx, byte [rax]
inc rax
mov qword [rdi], rax
mov r8d, dword [rbx]
jmp 0x14006fc65
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov rax, qword [rdi]
mov qword [rbx + 0xc8], rcx
movzx ecx, byte [rax]
inc rax
mov qword [rdi], rax
mov r8d, dword [rbx]
jmp 0x14006fc65
xor cl, cl
movzx r11d, cl
movsxd rcx, esi
lea rdx, [r11*4]
movzx eax, byte [rbp + rdx - 0x30]
inc esi
add r13d, 2
mov byte [rcx + r15], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, esi
inc esi
mov byte [rcx + r15], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, esi
inc esi
mov byte [rcx + r15], al
movsxd rax, esi
inc esi
mov byte [rax + r15], 0xff
cmp r13d, r8d
jl 0x14006fad0
mov r14d, dword [rbp + 0x428]
mov r12d, dword [rsp + 0x24]
test r14d, r14d
je 0x14006fcf8
cmp qword [rbx + 0x10], 0
je 0x14006fcf2
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rdi]
cmp ecx, r14d
jge 0x14006fcf2
mov rax, qword [rbx + 0xc8]
mov edx, r14d
sub edx, ecx
mov qword [rdi], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
mov r8d, dword [rbx]
jmp 0x14006fcf8
mov eax, r14d
add qword [rdi], rax
mov eax, dword [rbx + 4]
inc r12d
mov dword [rsp + 0x24], r12d
mov ecx, eax
cmp r12d, eax
jl 0x14006fac4
jmp 0x14007056c
mov rcx, r15
call fcn.140292ff8
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x510]
mov r15, qword [rsp + 0x4d0]
mov r12, qword [rsp + 0x4e8]
mov r13, qword [rsp + 0x4e0]
mov r14, qword [rsp + 0x4d8]
add rsp, 0x4f0
pop rdi
pop rbx
pop rbp
ret
mov rcx, r15
call fcn.140292ff8
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x14006fd33
sub r14d, dword [rsp + 0x28]
xor r8d, r8d
mov dword [rsp + 0x48], r8d
mov r10d, r8d
mov dword [rsp + 0x4c], r8d
mov r9d, r8d
mov dword [rsp + 0x54], r8d
mov esi, r8d
mov dword [rsp + 0x30], r8d
mov r13d, r8d
mov edi, r8d
mov dword [rsp + 0x24], r8d
sub r14d, r12d
je 0x14006fe1f
test r14d, r14d
jns 0x14006fdd8
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14006fe1f
cmp qword [rbx + 0x10], rsi
je 0x14006fe15
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r14d
jge 0x14006fe15
mov rax, qword [rbx + 0xc8]
sub r14d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r14d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
mov r9d, esi
mov r10d, esi
xor r8d, r8d
jmp 0x14006fe1f
movsxd rax, r14d
add qword [rbx + 0xc0], rax
mov ecx, dword [rbp + 0x430]
cmp ecx, 0x18
jne 0x14006fe31
mov eax, dword [rbx]
lea edx, [rax + rax*2]
jmp 0x14006fe3f
cmp ecx, 0x10
jne 0x14006fe3c
mov edx, dword [rbx]
add edx, edx
jmp 0x14006fe3f
mov edx, r8d
neg edx
and edx, 3
mov dword [rsp + 0x28], edx
cmp ecx, 0x18
jne 0x14006fe60
mov r11d, 1
mov r12d, esi
mov qword [rsp + 0x40], r11
jmp 0x14007007f
mov r12d, dword [rsp + 0x50]
mov r11, r8
mov eax, dword [rbp + 0x428]
mov qword [rsp + 0x40], r8
cmp ecx, 0x20
jne 0x14006fec7
mov qword [rsp + 0x40], r8
cmp r12d, 0xff
jne 0x14006fec7
mov qword [rsp + 0x40], r8
cmp eax, 0xff00
jne 0x14006fec7
cmp dword [rsp + 0x34], 0xff0000
mov qword [rsp + 0x40], r8
jne 0x14006fec7
mov r14d, dword [rsp + 0x38]
mov qword [rsp + 0x40], r8
cmp r14d, 0xff000000
jne 0x14006feed
mov r11d, 2
mov r12d, esi
mov qword [rsp + 0x40], r11
jmp 0x14007007f
mov r9d, dword [rsp + 0x34]
test r9d, r9d
je 0x14007062c
test eax, eax
je 0x14007062c
test r12d, r12d
je 0x14007062c
mov r14d, dword [rsp + 0x38]
jmp 0x14006fef2
mov r9d, dword [rsp + 0x34]
mov ecx, r9d
call fcn.14006ed30
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rbp + 0x428]
and edx, 0x55555555
and ecx, 0x55555555
mov dword [rsp + 0x48], eax
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, 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.14006ed30
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x4c], 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.14006ed30
sub eax, 7
mov edx, r12d
shr edx, 1
mov ecx, r12d
and edx, 0x55555555
mov dword [rsp + 0x54], 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, r14d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx esi, al
call fcn.14006ed30
lea r12d, [rax - 7]
mov edx, r14d
shr edx, 1
mov ecx, r14d
and edx, 0x55555555
mov dword [rsp + 0x30], r12d
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 edi, al
cmp r10d, 8
ja 0x14007062c
cmp r9d, 8
ja 0x14007062c
cmp esi, 8
ja 0x14007062c
cmp edi, 8
ja 0x14007062c
mov edx, dword [rsp + 0x28]
mov eax, dword [rbx + 4]
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov ecx, eax
test eax, eax
jle 0x14007056c
mov eax, dword [rsp + 0x48]
neg eax
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], eax
mov eax, 8
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x64], ecx
mov ecx, dword [rsp + 0x4c]
neg ecx
mov dword [rsp + 0x68], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x6c], ecx
mov ecx, dword [rsp + 0x54]
neg ecx
mov dword [rsp + 0x70], ecx
mov ecx, eax
sub ecx, esi
mov dword [rsp + 0x74], ecx
mov ecx, r12d
neg ecx
sub eax, edi
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x7c], eax
mov eax, r10d
mov qword [rbp - 0x48], rax
mov eax, esi
mov ecx, r9d
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], rcx
nop dword [rax]
mov eax, dword [rbx]
movsxd rcx, r13d
test r11, r11
je 0x14007038f
mov dword [rsp + 0x2c], 0
test eax, eax
jle 0x14007050b
lea rdi, [rbx + 0xc0]
lea r14, [rcx + r15]
lea rsi, [rbx + 0x30]
nop dword [rax]
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rdi]
cmp rax, rcx
jae 0x140070149
movzx r8d, byte [rax]
lea rdx, [rax + 1]
jmp 0x1400701a2
cmp dword [rbx + 0x30], 0
lea rsi, [rbx + 0x30]
je 0x1400701c3
mov rax, qword [rbx + 0x10]
lea rdx, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
test eax, eax
jne 0x140070189
lea rcx, [rbx + 0x39]
mov dword [rsi], eax
mov qword [rbx + 0xc8], rcx
mov byte [rbx + 0x38], al
jmp 0x140070199
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
movzx r8d, byte [rbx + 0x38]
lea rdx, [rbx + 0x39]
mov qword [rdi], rdx
mov r10, rdi
mov byte [r14 + 2], r8b
mov r9, rdx
mov rax, rdx
mov r13, rsi
cmp rdx, rcx
jae 0x1400701cb
movzx r8d, byte [rdx]
inc rdx
jmp 0x140070228
mov byte [r14 + 2], 0
mov r13, rsi
cmp dword [rsi], 0
je 0x140070248
mov rax, qword [rbx + 0x10]
lea r12, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, r12
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rdi], r12
test eax, eax
jne 0x14007020d
lea rcx, [rbx + 0x39]
mov dword [rsi], eax
mov qword [rbx + 0xc8], rcx
mov byte [r12], al
jmp 0x14007021d
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov qword [rbx + 0xc8], rcx
mov rax, qword [rdi]
movzx r8d, byte [rax]
lea rdx, [rax + 1]
mov qword [rdi], rdx
mov rax, rdx
mov byte [r14 + 1], r8b
cmp rdx, rcx
jae 0x14007024d
movzx r8d, byte [rdx]
lea rax, [rdx + 1]
mov qword [rdi], rax
lea rsi, [rbx + 0x30]
jmp 0x1400702be
mov byte [r14 + 1], 0
cmp dword [rsi], 0
je 0x1400702bb
mov rax, qword [rbx + 0x10]
lea r12, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, r12
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rdi], r12
test eax, eax
jne 0x14007029c
mov dword [rsi], eax
lea rcx, [rbx + 0x39]
mov qword [rbx + 0xc8], rcx
mov byte [r12], al
mov rax, qword [rdi]
movzx r8d, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1400702be
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov rax, qword [rdi]
mov qword [rbx + 0xc8], rcx
movzx r8d, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1400702be
xor r8b, r8b
cmp qword [rsp + 0x40], 2
mov byte [r14], r8b
jne 0x140070352
cmp rax, rcx
jae 0x1400702dd
movzx ecx, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x140070354
cmp dword [r13], 0
je 0x14007034e
mov rax, qword [rbx + 0x10]
lea r12, [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
mov rdx, r12
mov rcx, qword [rbx + 0x28]
call rax
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xd0]
add dword [rbx + 0xb8], ecx
mov qword [rdi], r12
test eax, eax
jne 0x140070330
mov dword [r13], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc8], rax
mov byte [r12], 0
mov rax, qword [rdi]
movzx ecx, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x140070354
cdqe
lea rcx, [rbx + 0x38]
add rcx, rax
mov rax, qword [rdi]
mov qword [rbx + 0xc8], rcx
movzx ecx, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x140070354
xor cl, cl
jmp 0x140070354
mov cl, 0xff
mov r13d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x2c]
add r13d, 4
inc edx
movzx eax, cl
or dword [rbp + 0x438], eax
mov byte [r14 + 3], cl
add r14, 4
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x2c], edx
cmp edx, dword [rbx]
jl 0x140070130
mov r12d, dword [rsp + 0x30]
jmp 0x140070502
xor r14d, r14d
test eax, eax
jle 0x140070506
lea rsi, [rcx + r15]
mov r15d, dword [rbp + 0x430]
mov rcx, rbx
call fcn.1400649a0
cmp r15d, 0x10
jne 0x1400703b8
mov r8d, eax
jmp 0x1400703d1
mov rcx, rbx
mov edi, eax
call fcn.1400649a0
mov r8d, eax
shl r8d, 0x10
add r8d, edi
mov rdi, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x48]
lea r11, sym.MZ_Mwf.L_MrNRI___2:Gmjl_D3_AZ_AUEoy2Ew_Lvrp_hJ_
mov r10, qword [rbp - 0x48]
mov ecx, r9d
mov edx, r8d
and edx, dword [rsp + 0x34]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x60]
shl edx, cl
mov ecx, dword [rsp + 0x64]
test r9d, r9d
mov r9d, dword [rsp + 0x4c]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r10*4 + 0x36cc90]
mov ecx, dword [r11 + r10*4 + 0x36db70]
mov r10, qword [rbp - 0x40]
sar edx, cl
mov ecx, r9d
mov byte [rsi], dl
mov edx, r8d
and edx, dword [rbp + 0x428]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x68]
shl edx, cl
mov ecx, dword [rsp + 0x6c]
test r9d, r9d
mov r9d, dword [rsp + 0x54]
cmovns edx, eax
shr edx, cl
imul edx, dword [r11 + r10*4 + 0x36cc90]
mov ecx, dword [r11 + r10*4 + 0x36db70]
sar edx, cl
mov ecx, r9d
mov byte [rsi + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x50]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x70]
shl edx, cl
mov ecx, dword [rsp + 0x74]
test r9d, r9d
mov r9, qword [rbp - 0x38]
cmovns edx, eax
mov eax, dword [rsp + 0x38]
shr edx, cl
imul edx, dword [r11 + r9*4 + 0x36cc90]
mov ecx, dword [r11 + r9*4 + 0x36db70]
sar edx, cl
mov byte [rsi + 2], dl
test eax, eax
je 0x1400704d4
and r8d, eax
mov ecx, r12d
mov eax, r8d
shr eax, cl
mov ecx, dword [rsp + 0x78]
shl r8d, cl
mov ecx, dword [rsp + 0x7c]
test r12d, r12d
cmovns r8d, eax
shr r8d, cl
imul r8d, dword [r11 + rdi*4 + 0x36cc90]
mov ecx, dword [r11 + rdi*4 + 0x36db70]
sar r8d, cl
jmp 0x1400704da
mov r8d, 0xff
or dword [rbp + 0x438], r8d
add r13d, 4
mov byte [rsi + 3], r8b
inc r14d
add rsi, 4
cmp r14d, dword [rbx]
jl 0x1400703a5
mov r15, qword [rbp - 0x78]
mov dword [rsp + 0x24], r13d
mov edx, dword [rsp + 0x28]
mov r14d, dword [rsp + 0x20]
test edx, edx
je 0x14007054c
cmp qword [rbx + 0x10], 0
je 0x140070543
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, edx
jge 0x140070543
mov rax, qword [rbx + 0xc8]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
mov edx, dword [rsp + 0x28]
jmp 0x14007054c
mov eax, edx
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r14d
mov r11, qword [rsp + 0x40]
mov ecx, eax
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x20], r14d
cmp r14d, eax
jl 0x140070100
cmp dword [rbp + 0x438], 0
jne 0x14007059e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rdx, eax
test eax, eax
js 0x14007059e
nop word [rax + rax]
mov byte [rdx + r15], 0xff
sub rdx, 4
jns 0x140070590
mov ecx, dword [rbx + 4]
cmp dword [rbp - 0x80], 0
jle 0x140070610
xor r10d, r10d
mov edx, ecx
test ecx, 0xfffffffe
jle 0x140070610
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, r10d
imul edx, ecx
xor r8d, r8d
imul r9d, ecx
lea eax, [rcx*4]
shl edx, 2
mov r11d, edx
add rdx, r15
shl r9d, 2
test eax, eax
jle 0x1400705ff
sub r9, r11
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]
shl eax, 2
cmp r8d, eax
jl 0x1400705e0
mov ecx, dword [rbx + 4]
inc r10d
mov eax, ecx
mov edx, ecx
sar eax, 1
cmp r10d, eax
jl 0x1400705b1
mov eax, dword [rbx]
mov rdx, qword [rbp + 0x418]
mov dword [rdx], eax
mov rax, qword [rbp + 0x420]
mov dword [rax], ecx
mov rax, r15
jmp 0x14006fd39
mov rcx, r15
call fcn.140292ff8
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x14006fd33
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14006fd41
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14006fd49