Function at 0x1400a1bc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov r12d, dword [rsp + 0x100]
mov r15d, r9d
mov rax, qword [rcx]
mov esi, r8d
mov r14d, dword [rsp + 0x108]
xor r8d, r8d
cmp dword [rsp + 0x110], 0x10
mov r10d, r8d
mov rbx, rdx
mov qword [rsp + 0x78], r8
mov eax, dword [rax + 8]
sete r10b
inc r10d
mov dword [rsp + 0x24], eax
mov edi, r10d
mov dword [rsp + 0x40], r12d
imul edi, r15d
mov r13d, eax
imul r13d, r10d
mov r9, rcx
mov r11d, edi
imul r11d, r12d
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x4c], r11d
test r12d, r12d
js 0x1400a2e89
test r14d, r14d
js 0x1400a2e89
je 0x1400a1c69
xor edx, edx
mov eax, 0x7fffffff
div r14d
cmp r12d, eax
jg 0x1400a2e89
mov ecx, r12d
imul ecx, r14d
test ecx, ecx
js 0x1400a2e89
nop dword [rax + rax]
test edi, edi
js 0x1400a2e89
je 0x1400a1c9a
mov eax, 0x7fffffff
cdq
idiv edi
cmp ecx, eax
jg 0x1400a2e89
mov eax, r14d
imul eax, r11d
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0xe0]
mov qword [rcx + 0x18], rax
test rax, rax
je 0x1400a2e8d
movsxd r10, dword [rsp + 0x24]
test r10d, r10d
js 0x1400a2e6d
test r12d, r12d
je 0x1400a1ce9
xor edx, edx
mov eax, 0x7fffffff
div r12d
cmp r10d, eax
jg 0x1400a2e6d
mov r11d, r10d
imul r11d, r12d
test r11d, r11d
js 0x1400a2e6d
mov r9d, dword [rsp + 0x110]
test r9d, r9d
js 0x1400a2e6d
je 0x1400a1d1f
xor edx, edx
mov eax, 0x7fffffff
div r9d
cmp r11d, eax
jg 0x1400a2e6d
mov eax, r11d
imul eax, r9d
cmp eax, 0x7ffffff8
jg 0x1400a2e6d
mov edx, r11d
imul edx, r9d
add edx, 7
shr edx, 3
mov dword [rsp + 0x48], edx
lea eax, [rdx + 1]
imul eax, r14d
cmp esi, eax
jae 0x1400a1d6c
mov edx, dword [0x1401d6048]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.not_enough_pixels
jmp 0x1400a2ea7
xor r8d, r8d
lea rsi, [0x140000000]
mov eax, r8d
mov dword [rsp + 0x28], eax
test r14d, r14d
je 0x1400a2995
movsxd r15, r13d
movsxd r14, edi
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r10
mov dword [rsp + 0x20], r11d
nop dword [rax]
nop word [rax + rax]
movzx r10d, byte ds:[rbx]
inc rbx
mov r11d, dword [rsp + 0x4c]
imul eax, r11d
mov ecx, eax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x38], rcx
mov rsi, qword [rax + 0x18]
add rsi, rcx
cmp r10d, 4
ja 0x1400a2952
cmp r9d, 8
jge 0x1400a1e20
cmp edx, r12d
ja 0x1400a2933
mov eax, dword [rsp + 0xf8]
mov r13d, 1
imul eax, r12d
mov r15d, r13d
mov dword [rsp + 0x44], r13d
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x40], edx
sub eax, edx
add rsi, rax
mov r12, rsi
lea rcx, [0x140000000]
sub r12, r11
cmp dword [rsp + 0x28], 0
jne 0x1400a1e3d
movzx r10d, byte [r10 + rcx + 0x1bbcf8]
nop dword [rax]
test r15, r15
jle 0x1400a1f8e
mov rdi, r12
mov r11, rsi
sub rdi, rbx
mov rdx, rbx
sub r11, rbx
mov r9, r15
nop dword [rax + rax]
mov r8, rdx
cmp r10d, 6
ja case.default.0x1400a1e76
movsxd rax, r10d
mov eax, dword [rcx + rax*4 + 0xa2ec8]
add rax, rcx
jmp rax
inc rdx
sub r9, 1
je 0x1400a1f8b
lea rcx, [0x140000000]
jmp 0x1400a1e60
movzx eax, byte [rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400a1f8b
mov r8, rdx
jmp case.0x1400a1e76.0
movzx eax, byte [rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400a1f8b
mov r8, rdx
jmp case.0x1400a1e76.1
movzx eax, byte [rdi + r8]
add al, byte [rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400a1f8b
mov r8, rdx
jmp case.0x1400a1e76.2
movzx eax, byte [rdi + r8]
shr al, 1
add al, byte [rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400a1f8b
mov r8, rdx
jmp case.0x1400a1e76.3
movzx eax, byte [rdi + r8]
xor ecx, ecx
test al, al
cmovne ecx, eax
add cl, byte [rdx]
inc rdx
mov byte [r11 + r8], cl
sub r9, 1
je 0x1400a1f8b
mov r8, rdx
jmp case.0x1400a1e76.4
movzx eax, byte ds:[rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400a1f8b
mov r8, rdx
jmp case.0x1400a1e76.5
movzx eax, byte ds:[rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400a1f8b
mov r8, rdx
jmp case.0x1400a1e76.6
xor r8d, r8d
mov eax, dword [rsp + 0x110]
cmp eax, 8
jne 0x1400a1fd3
movsxd rax, dword [rsp + 0xf8]
mov rcx, qword [rsp + 0x60]
cmp dword [rsp + 0x24], eax
je 0x1400a1fb1
mov byte [rcx + rsi], 0xff
add rbx, rcx
lea r11, [rax + r12]
lea r9, [rax + rsi]
mov qword [rsp + 0xe8], rbx
mov rdx, rbx
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x30], r9
jmp 0x1400a203f
cmp eax, 0x10
jne 0x1400a2015
mov ecx, dword ds:[rsp + 0x24]
cmp ecx, dword [rsp + 0xf8]
je 0x1400a1ff0
mov word [r15 + rsi], 0xffff
movsxd rax, r13d
lea r11, [r12 + r14]
add rbx, rax
mov qword [rsp + 0x50], r11
lea r9, [rsi + r14]
mov qword [rsp + 0xe8], rbx
mov rdx, rbx
mov qword [rsp + 0x30], r9
jmp 0x1400a203f
inc rbx
lea r11, [r12 + 1]
mov qword [rsp + 0xe8], rbx
lea r9, [rsi + 1]
mov qword [rsp + 0x50], r11
mov rdx, rbx
mov qword [rsp + 0x30], r9
cmp eax, 8
jl 0x1400a25ab
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0xf8]
je 0x1400a25ab
cmp r10d, 6
ja case.default.0x1400a2072
movsxd rax, r10d
mov rbx, rdx
lea r10, [0x140000000]
mov ecx, dword [r10 + rax*4 + 0xa2ee4]
add rcx, r10
jmp rcx
mov r8d, dword [rsp + 0x100]
lea eax, [r8 - 1]
cmp eax, 1
jb 0x1400a255f
movsxd r11, r13d
mov r10d, eax
nop
test r15, r15
jle 0x1400a20b2
mov r8, rbx
mov rcx, r9
sub r8, r9
mov rdx, r15
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400a20a1
mov byte ds:[r15 + r9], 0xff
add rbx, r11
add r9, r14
sub r10, 1
jne 0x1400a2090
jmp case.default.0x1400a2072
mov r8d, dword ds:[rsp + 0x100]
lea eax, ds:[r8 - 1]
cmp eax, 1
jb 0x1400a255f
movsxd rdi, r13d
mov r11d, eax
nop
test r15, r15
jle 0x1400a2126
mov rdx, r9
mov r10, r9
sub rdx, r14
mov rcx, rbx
sub rdx, rbx
mov r8, r15
sub r10, rbx
nop word [rax + rax]
movzx eax, byte ds:[rcx + rdx]
add al, byte [rcx]
mov byte [r10 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400a2110
mov byte [r15 + r9], 0xff
add rbx, rdi
add r9, r14
sub r11, 1
jne 0x1400a20f0
jmp case.default.0x1400a2072
mov eax, dword [rsp + 0x100]
dec eax
cmp eax, 1
jb case.default.0x1400a2072
movsxd r12, r13d
mov esi, eax
mov rdx, r8
test r13d, r13d
jle 0x1400a2290
nop
cmp r13d, 8
jb 0x1400a2290
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rcx + rbx]
lea r8, [rcx + r9]
cmp r9, rax
ja 0x1400a2189
nop
cmp r8, rbx
jae 0x1400a2290
lea rax, [rcx + r11]
cmp r9, rax
ja 0x1400a219b
cmp r8, r11
jae 0x1400a2290
nop dword [rax + rax]
cmp r13d, 0x80
jb 0x1400a223e
mov ecx, r13d
and ecx, 0x8000007f
jge 0x1400a21bf
dec ecx
or ecx, 0xffffff80
inc ecx
mov eax, r13d
sub eax, ecx
mov rcx, rbx
movsxd r10, eax
sub rcx, r11
lea rax, [r11 + 0x20]
mov r8, r9
sub r8, r11
nop word [rax + rax]
vmovdqu ymm2, ymmword [rax + rcx]
vmovdqu ymm1, ymmword [rax - 0x20]
vpaddb ymm1, ymm1, ymmword [rax + rcx - 0x20]
vmovdqu ymmword [r8 + rax - 0x20], ymm1
vpaddb ymm1, ymm2, ymmword [rax]
vmovdqu ymm2, ymmword [rax + 0x20]
vmovdqu ymmword [r8 + rax], ymm1
vpaddb ymm1, ymm2, ymmword [rax + rcx + 0x20]
vmovdqu ymm2, ymmword [rax + 0x40]
vmovdqu ymmword [r8 + rax + 0x20], ymm1
vpaddb ymm1, ymm2, ymmword [rax + rcx + 0x40]
sub rdx, 0xffffffffffffff80
vmovdqu ymmword [r8 + rax + 0x40], ymm1
lea rax, [rax + 0x80]
cmp rdx, r10
jl 0x1400a21e0
mov eax, r13d
and al, 0x7f
cmp al, 8
jb 0x1400a2290
mov ecx, r13d
and ecx, 0x80000007
jge 0x1400a2250
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, r13d
sub eax, ecx
mov rcx, r11
movsxd r10, eax
sub rcx, rbx
lea rax, [rdx + rbx]
mov r8, r9
sub r8, rbx
nop dword [rax + rax]
vmovq xmm1, qword [rax + rcx]
vmovq xmm0, qword [rax]
vpaddb xmm1, xmm1, xmm0
add rdx, 8
vmovq qword [r8 + rax], xmm1
lea rax, [rax + 8]
cmp rdx, r10
jl 0x1400a2270
cmp rdx, r15
jge 0x1400a22c6
mov r10, r11
lea rcx, [rdx + rbx]
mov rdi, r9
sub r10, rbx
sub rdi, rbx
mov r8, r15
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte ds:[rcx + r10]
add al, byte [rcx]
mov byte [rdi + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400a22b0
mov byte ds:[r15 + r9], 0xff
add rbx, r12
add r9, r14
add r11, r14
mov r8d, 0
sub rsi, 1
jne 0x1400a2153
jmp case.default.0x1400a2072
mov r8d, dword ds:[rsp + 0x100]
lea eax, [r8 - 1]
cmp eax, 1
jb 0x1400a255f
movsxd r13, r13d
mov r12d, eax
nop
test r15, r15
jle 0x1400a234e
mov r8, r9
mov rdi, rbx
sub r8, r14
sub rdi, r11
sub r8, r11
mov rsi, r9
sub rsi, r11
mov rdx, r11
mov r10, r15
movzx ecx, byte [rdx + r8]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
add ecx, eax
shr ecx, 1
add cl, byte [rdi + rdx - 1]
mov byte [rsi + rdx - 1], cl
sub r10, 1
jne 0x1400a2330
mov byte ds:[r15 + r9], 0xff
add rbx, r13
add r9, r14
add r11, r14
sub r12, 1
jne 0x1400a2310
jmp case.default.0x1400a2072
mov r8d, dword ds:[rsp + 0x100]
lea eax, ds:[r8 - 1]
cmp eax, 1
jb 0x1400a255f
movsxd rcx, r13d
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0x70], rax
test r15, r15
jle 0x1400a2460
mov rax, r11
mov r10, r9
sub rax, r9
sub r10, r14
mov qword [rsp + 0x88], rax
mov r13, r15
mov r15, qword [rsp + 0x58]
mov rax, r14
sub rax, r9
mov r9, qword [rsp + 0x88]
lea rcx, [rax + r11]
lea r11, [rbx + rax]
lea rbx, [rcx]
nop
movzx r8d, byte [r10]
movzx r14d, byte [r10 + r9]
mov ecx, r8d
movzx r12d, byte [rbx + r10]
sub ecx, r14d
mov esi, ecx
lea edx, [r12 + rcx]
mov eax, edx
sub eax, r8d
mov edi, eax
neg edi
cmovs edi, eax
neg esi
cmovs esi, ecx
sub edx, r14d
mov eax, edx
neg eax
cmovs eax, edx
cmp edi, esi
jg 0x1400a241d
cmp edi, eax
jle 0x1400a2426
cmp esi, eax
mov r8d, r14d
cmovle r8d, r12d
add r8b, byte [r11 + r10]
mov byte [r15 + r10], r8b
inc r10
sub r13, 1
jne 0x1400a23e0
mov r9, qword [rsp + 0x30]
mov rbx, qword [rsp + 0xe8]
mov r11, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x58]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
add rbx, rcx
mov byte [r15 + r9], 0xff
add r9, r14
mov qword [rsp + 0xe8], rbx
add r11, r14
mov qword [rsp + 0x30], r9
sub rax, 1
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x70], rax
jne 0x1400a23a1
jmp case.default.0x1400a2072
mov r8d, dword [rsp + 0x100]
lea eax, [r8 - 1]
cmp eax, 1
jb 0x1400a255f
movsxd rdi, r13d
mov r11d, eax
nop
test r15, r15
jle 0x1400a24e8
mov rdx, r9
mov r10, r9
sub rdx, r14
mov rcx, rbx
sub rdx, rbx
mov r8, r15
sub r10, rbx
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
lea rcx, [rcx + 1]
shr al, 1
add al, byte [rcx - 1]
mov byte [r10 + rcx - 1], al
sub r8, 1
jne 0x1400a24d0
mov byte [r15 + r9], 0xff
add rbx, rdi
add r9, r14
sub r11, 1
jne 0x1400a24b0
jmp case.default.0x1400a2072
mov r8d, dword [rsp + 0x100]
lea eax, [r8 - 1]
cmp eax, 1
jb 0x1400a255f
movsxd rdi, r13d
mov r11d, eax
test r15, r15
jle 0x1400a2546
mov rdx, r9
mov r10, r9
sub rdx, r14
mov rcx, rbx
sub rdx, rbx
mov r8, r15
sub r10, rbx
nop dword [rax]
movzx eax, byte ds:[rcx + rdx]
add al, byte [rcx]
mov byte [r10 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400a2530
mov byte [r15 + r9], 0xff
add rbx, rdi
add r9, r14
sub r11, 1
jne 0x1400a2512
mov r8d, dword [rsp + 0x100]
mov r9d, dword [rsp + 0x110]
cmp r9d, 0x10
jne 0x1400a2902
mov rax, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0x38]
add rdx, qword [rax + 0x18]
test r8d, r8d
je 0x1400a2902
mov ecx, r8d
lea rax, [r15 + rdx]
mov byte ds:[rax + 1], 0xff
lea rax, [r14 + rax]
sub rcx, 1
jne 0x1400a2592
jmp 0x1400a2902
mov esi, dword ds:[rsp + 0x40]
dec esi
imul esi, r13d
mov dword [rsp + 0x30], esi
cmp r10d, 6
ja case.default.0x1400a25e1
lea rcx, [0x140000000]
movsxd rax, r10d
movsxd r8, esi
mov edx, dword [rcx + rax*4 + 0xa2f00]
add rdx, rcx
jmp rdx
mov rdx, rbx
mov rcx, r9
vzeroupper
call sub.VCRUNTIME140.dll_memcpy
jmp case.default.0x1400a25e1
test esi, esi
jle case.default.0x1400a25e1
mov rdx, r9
mov rcx, rbx
sub rdx, r15
sub rdx, rbx
sub r9, rbx
nop dword [rax]
movzx eax, byte ds:[rcx + rdx]
add al, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400a2610
jmp case.default.0x1400a25e1
xor eax, eax
mov edx, eax
test esi, esi
jle 0x1400a2770
nop word [rax + rax]
cmp esi, 8
jb 0x1400a2770
lea eax, [rsi - 1]
movsxd rcx, eax
lea rax, [rcx + rbx]
lea r10, [rcx + r9]
cmp r9, rax
ja 0x1400a2669
nop dword [rax]
cmp r10, rbx
jae 0x1400a2770
lea rax, [rcx + r11]
cmp r9, rax
ja 0x1400a267b
cmp r10, r11
jae 0x1400a2770
nop dword [rax + rax]
cmp esi, 0x80
jb 0x1400a271d
mov ecx, esi
and ecx, 0x8000007f
jge 0x1400a269d
dec ecx
or ecx, 0xffffff80
inc ecx
mov eax, esi
sub eax, ecx
mov rcx, rbx
movsxd rdi, eax
sub rcx, r11
lea rax, [r11 + 0x20]
mov r10, r9
sub r10, r11
nop dword [rax]
nop dword [rax + rax]
vmovdqu ymm2, ymmword [rax + rcx]
vmovdqu ymm1, ymmword [rax - 0x20]
vpaddb ymm1, ymm1, ymmword [rax + rcx - 0x20]
vmovdqu ymmword [r10 + rax - 0x20], ymm1
vpaddb ymm1, ymm2, ymmword [rax]
vmovdqu ymm2, ymmword [rax + 0x20]
vmovdqu ymmword [r10 + rax], ymm1
vpaddb ymm1, ymm2, ymmword [rax + rcx + 0x20]
vmovdqu ymm2, ymmword [rax + 0x40]
vmovdqu ymmword [r10 + rax + 0x20], ymm1
vpaddb ymm1, ymm2, ymmword [rax + rcx + 0x40]
sub rdx, 0xffffffffffffff80
vmovdqu ymmword [r10 + rax + 0x40], ymm1
lea rax, [rax + 0x80]
cmp rdx, rdi
jl 0x1400a26c0
mov eax, esi
and al, 0x7f
cmp al, 8
jb 0x1400a2770
mov ecx, esi
and ecx, 0x80000007
jge 0x1400a272f
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, esi
sub eax, ecx
mov rcx, r11
movsxd rdi, eax
sub rcx, rbx
lea rax, [rdx + rbx]
mov r10, r9
sub r10, rbx
nop word [rax + rax]
vmovq xmm1, qword [rax + rcx]
vmovq xmm0, qword [rax]
vpaddb xmm1, xmm1, xmm0
add rdx, 8
vmovq qword [r10 + rax], xmm1
lea rax, [rax + 8]
cmp rdx, rdi
jl 0x1400a2750
cmp rdx, r8
jge case.default.0x1400a25e1
sub r11, rbx
lea rcx, [rdx + rbx]
sub r9, rbx
sub r8, rdx
nop word [rax + rax]
movzx eax, byte ds:[rcx + r11]
add al, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400a2790
jmp case.default.0x1400a25e1
test esi, esi
jle case.default.0x1400a25e1
mov rdx, r9
mov r10, rbx
sub rdx, r15
sub r10, r11
sub rdx, r11
sub r9, r11
nop word [rax + rax]
movzx ecx, byte [r11 + rdx]
movzx eax, byte [r11]
lea r11, [r11 + 1]
add ecx, eax
shr ecx, 1
add cl, byte [r10 + r11 - 1]
mov byte [r9 + r11 - 1], cl
sub r8, 1
jne 0x1400a27d0
jmp case.default.0x1400a25e1
test esi, esi
jle case.default.0x1400a25e1
mov r10, r9
mov r14, r11
sub r10, r15
sub r14, r9
mov rax, r15
sub rax, r9
lea rcx, [rax + r11]
lea r13, [rax + rbx]
mov rbx, rcx
nop dword [rax + rax]
movzx r9d, byte [r10]
movzx esi, byte [r10 + r14]
mov ecx, r9d
movzx r12d, byte [rbx + r10]
sub ecx, esi
mov edi, ecx
lea edx, [rcx + r12]
mov eax, edx
sub eax, r9d
mov r11d, eax
neg r11d
cmovs r11d, eax
neg edi
cmovs edi, ecx
sub edx, esi
mov eax, edx
neg eax
cmovs eax, edx
cmp r11d, edi
jg 0x1400a2865
nop dword [rax + rax]
cmp r11d, eax
jle 0x1400a286e
cmp edi, eax
mov r9d, esi
cmovle r9d, r12d
add r9b, byte [r10 + r13]
mov byte [r10 + r15], r9b
inc r10
sub r8, 1
jne 0x1400a2820
mov rbx, qword [rsp + 0xe8]
mov r14, qword [rsp + 0x58]
mov esi, dword [rsp + 0x30]
jmp case.default.0x1400a25e1
test esi, esi
jle case.default.0x1400a25e1
mov rdx, r9
mov rcx, rbx
sub rdx, r15
sub rdx, rbx
sub r9, rbx
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
lea rcx, [rcx + 1]
shr al, 1
add al, byte [rcx - 1]
mov byte [r9 + rcx - 1], al
sub r8, 1
jne 0x1400a28b0
jmp case.default.0x1400a25e1
test esi, esi
jle case.default.0x1400a25e1
mov rdx, r9
mov rcx, rbx
sub rdx, r15
sub rdx, rbx
sub r9, rbx
nop dword [rax]
movzx eax, byte [rcx + rdx]
add al, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400a28e0
mov r9d, dword [rsp + 0x110]
movsxd rax, esi
add rbx, rax
mov eax, dword ds:[rsp + 0x28]
xor r8d, r8d
mov r12d, dword [rsp + 0x100]
inc eax
mov edx, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
cmp eax, dword [rsp + 0x108]
jae 0x1400a2971
mov r13d, dword [rsp + 0x44]
jmp 0x1400a1db0
mov edx, dword [0x1401d6048]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_width
jmp 0x1400a2ea7
mov edx, dword [0x1401d6048]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_filter
jmp 0x1400a2ea7
mov r11d, dword [rsp + 0x20]
lea rsi, [0x140000000]
mov r15d, dword [rsp + 0xf8]
mov rcx, qword [rsp + 0xe0]
mov r14d, dword [rsp + 0x108]
movsxd rbx, dword ds:[rsp + 0x110]
cmp ebx, 8
jge 0x1400a2e1d
test r14d, r14d
je 0x1400a2e66
mov r13d, dword [rsp + 0x118]
lea rsi, [rsi + 0xf7d40]
add rsi, rbx
movsxd r14, r12d
imul r15d, r12d
mov r12d, edx
nop
mov eax, r8d
mov r9, r15
imul eax, dword [rsp + 0x4c]
sub r9, r12
add r9, qword [rcx + 0x18]
mov edi, eax
add rax, qword [rcx + 0x18]
add r9, rdi
test r13d, r13d
jne 0x1400a29f6
movzx r10d, byte [rsi]
jmp 0x1400a29f9
mov r10b, 1
mov edx, r11d
cmp ebx, 4
jne 0x1400a2a92
mov dword [rsp + 0x20], edx
mov ebx, edx
cmp edx, 2
jl 0x1400a2a6a
mov r11d, edx
mov dword [rsp + 0x20], edx
shr r11, 1
mov ecx, r11d
neg ecx
lea ebx, [rdx + rcx*2]
nop word [rax + rax]
movzx ecx, byte [r9]
shr cl, 4
movzx r8d, cl
movzx edx, r10b
imul r8d, edx
movzx edx, r10b
mov byte [rax], r8b
movzx ecx, byte [r9]
inc r9
and cl, 0xf
movzx r8d, cl
imul r8d, edx
mov byte [rax + 1], r8b
add rax, 2
sub r11, 1
jne 0x1400a2a30
mov r11d, dword [rsp + 0x20]
test ebx, ebx
jle 0x1400a2d63
movzx ecx, byte [r9]
shr cl, 4
movzx r8d, cl
movzx edx, r10b
imul r8d, edx
mov byte [rax], r8b
jmp 0x1400a2d63
cmp ebx, 2
jne 0x1400a2b85
mov dword [rsp + 0x20], edx
mov rbx, rdx
cmp edx, 4
jl 0x1400a2b28
mov r11, rdx
mov dword [rsp + 0x20], edx
shr r11, 2
mov ecx, r11d
neg ecx
lea ebx, [rdx + rcx*4]
nop
movzx ecx, byte [r9]
shr cl, 6
movzx r8d, cl
movzx edx, r10b
imul r8d, edx
movzx ecx, r10b
mov byte [rax], r8b
movzx edx, byte [r9]
shr dl, 4
and dl, 3
movzx edx, dl
imul edx, ecx
movzx ecx, r10b
mov byte [rax + 1], dl
movzx edx, byte [r9]
shr dl, 2
and dl, 3
movzx edx, dl
imul edx, ecx
mov byte [rax + 2], dl
movzx ecx, byte [r9]
inc r9
and cl, 3
movzx edx, r10b
movzx r8d, cl
imul r8d, edx
mov byte [rax + 3], r8b
add rax, 4
sub r11, 1
jne 0x1400a2ac0
test ebx, ebx
jle 0x1400a2b45
movzx ecx, byte [r9]
shr cl, 6
movzx r8d, cl
movzx edx, r10b
imul r8d, edx
mov byte [rax], r8b
inc rax
cmp ebx, 1
jle 0x1400a2b63
movzx edx, byte [r9]
shr dl, 4
and dl, 3
movzx ecx, r10b
movzx edx, dl
imul edx, ecx
mov byte [rax], dl
inc rax
mov r11d, dword [rsp + 0x20]
cmp ebx, 2
jle 0x1400a2d63
movzx edx, byte ds:[r9]
shr dl, 2
and dl, 3
jmp 0x1400a2d57
mov r11d, edx
cmp ebx, 1
jne 0x1400a2d63
mov dword ds:[rsp + 0x20], edx
mov r11, rdx
cmp edx, 8
jl 0x1400a2c8a
mov rbx, rdx
mov dword [rsp + 0x20], edx
shr rbx, 3
mov ecx, ebx
neg ecx
lea r11d, [rdx + rcx*8]
nop dword [rax]
movzx ecx, byte ds:[r9]
shr cl, 7
movzx r8d, cl
movzx edx, r10b
imul r8d, edx
movzx ecx, r10b
mov byte [rax], r8b
movzx edx, byte [r9]
shr dl, 6
and dl, 1
movzx edx, dl
imul edx, ecx
movzx ecx, r10b
mov byte [rax + 1], dl
movzx edx, byte [r9]
shr dl, 5
and dl, 1
movzx edx, dl
imul edx, ecx
movzx ecx, r10b
mov byte [rax + 2], dl
movzx edx, byte [r9]
shr dl, 4
and dl, 1
movzx edx, dl
imul edx, ecx
movzx ecx, r10b
mov byte [rax + 3], dl
movzx edx, byte [r9]
shr dl, 3
and dl, 1
movzx edx, dl
imul edx, ecx
movzx ecx, r10b
mov byte [rax + 4], dl
movzx edx, byte [r9]
shr dl, 2
and dl, 1
movzx edx, dl
imul edx, ecx
movzx ecx, r10b
mov byte [rax + 5], dl
movzx edx, byte [r9]
shr dl, 1
and dl, 1
movzx edx, dl
imul edx, ecx
mov byte [rax + 6], dl
movzx ecx, byte [r9]
inc r9
and cl, 1
movzx edx, r10b
movzx r8d, cl
imul r8d, edx
mov byte [rax + 7], r8b
add rax, 8
sub rbx, 1
jne 0x1400a2bc0
test r11d, r11d
jle 0x1400a2ca8
movzx ecx, byte [r9]
shr cl, 7
movzx r8d, cl
movzx edx, r10b
imul r8d, edx
mov byte [rax], r8b
inc rax
cmp r11d, 1
jle 0x1400a2cc7
movzx edx, byte [r9]
shr dl, 6
and dl, 1
movzx ecx, r10b
movzx edx, dl
imul edx, ecx
mov byte [rax], dl
inc rax
cmp r11d, 2
jle 0x1400a2ce6
movzx edx, byte [r9]
shr dl, 5
and dl, 1
movzx ecx, r10b
movzx edx, dl
imul edx, ecx
mov byte [rax], dl
inc rax
cmp r11d, 3
jle 0x1400a2d05
movzx edx, byte [r9]
shr dl, 4
and dl, 1
movzx ecx, r10b
movzx edx, dl
imul edx, ecx
mov byte [rax], dl
inc rax
cmp r11d, 4
jle 0x1400a2d24
movzx edx, byte [r9]
shr dl, 3
and dl, 1
movzx ecx, r10b
movzx edx, dl
imul edx, ecx
mov byte [rax], dl
inc rax
cmp r11d, 5
jle 0x1400a2d43
movzx edx, byte [r9]
shr dl, 2
and dl, 1
movzx ecx, r10b
movzx edx, dl
imul edx, ecx
mov byte [rax], dl
inc rax
cmp r11d, 6
mov r11d, dword [rsp + 0x20]
jle 0x1400a2d63
movzx edx, byte [r9]
shr dl, 1
and dl, 1
movzx ecx, r10b
movzx edx, dl
imul edx, ecx
mov byte [rax], dl
mov r10d, dword [rsp + 0x24]
cmp r10d, dword [rsp + 0xf8]
je 0x1400a2de9
mov rax, qword [rsp + 0xe0]
lea rcx, [r14 - 1]
mov rdx, qword [rax + 0x18]
add rdx, rdi
cmp r10d, 1
jne 0x1400a2da4
test rcx, rcx
js 0x1400a2de9
mov byte [rdx + rcx*2 + 1], 0xff
movzx eax, byte [rcx + rdx]
mov byte [rdx + rcx*2], al
sub rcx, 1
jns 0x1400a2d90
jmp 0x1400a2de9
test rcx, rcx
js 0x1400a2de9
lea r8, [rcx*2 + 1]
add r8, rdx
lea rdx, [rdx + rcx*4]
add r8, rcx
add rdx, 2
nop
sub rcx, 1
mov byte [rdx + 1], 0xff
movzx eax, byte [r8 + 1]
lea r8, [r8 - 3]
mov byte [rdx], al
lea rdx, [rdx - 4]
movzx eax, byte [r8 + 3]
mov byte [rdx + 3], al
movzx eax, byte [r8 + 2]
mov byte [rdx + 2], al
jns 0x1400a2dc0
mov r8, qword [rsp + 0x78]
mov ebx, dword [rsp + 0x110]
inc r8d
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x78], r8
cmp r8d, dword [rsp + 0x108]
jb 0x1400a29d0
mov eax, 1
jmp 0x1400a2eb2
nop dword [rax]
cmp ebx, 0x10
jne 0x1400a2e66
mov r9, qword [rcx + 0x18]
imul r15d, r12d
mov r8, r9
imul r15d, r14d
test r15d, r15d
je 0x1400a2e66
mov r10d, r15d
nop dword [rax]
movzx edx, byte ds:[r9]
lea r9, [r9 + 2]
movzx ecx, byte [r8 + 1]
lea r8, [r8 + 2]
shl dx, 8
or dx, cx
mov word [r8 - 2], dx
sub r10, 1
jne 0x1400a2e40
mov eax, 1
jmp 0x1400a2eb2
mov edx, dword [0x1401d6048]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
jmp 0x1400a2ea7
mov qword [r9 + 0x18], r8
mov edx, dword [0x1401d6048]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
mov ecx, 0x20
mov qword [rcx + rax], rdx
xor eax, eax
vzeroupper
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret