Function at 0x1400b2bc0
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, 0xb0
mov r12d, dword [rsp + 0x110]
mov r14d, r9d
mov rax, qword [rcx]
mov esi, r8d
mov r9d, dword [rsp + 0x118]
xor r8d, r8d
cmp dword [rsp + 0x120], 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 + 0x30], r12d
imul edi, r14d
mov r13d, eax
imul r13d, r10d
mov r15, rcx
mov r11d, edi
imul r11d, r12d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x40], r11d
test r12d, r12d
js 0x1400b3df0
test r9d, r9d
js 0x1400b3df0
je 0x1400b2c69
xor edx, edx
mov eax, 0x7fffffff
div r9d
cmp r12d, eax
jg 0x1400b3df0
mov ecx, r12d
imul ecx, r9d
test ecx, ecx
js 0x1400b3df0
nop dword [rax + rax]
test edi, edi
js 0x1400b3df0
je 0x1400b2c9a
mov eax, 0x7fffffff
cdq
idiv edi
cmp ecx, eax
jg 0x1400b3df0
mov eax, r9d
imul eax, r11d
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x80], rax
mov qword [r15 + 0x18], rax
test rax, rax
je 0x1400b3df4
movsxd r10, dword [rsp + 0x24]
test r10d, r10d
js 0x1400b3ddb
test r12d, r12d
je 0x1400b2ce9
xor edx, edx
mov eax, 0x7fffffff
div r12d
cmp r10d, eax
jg 0x1400b3ddb
mov r11d, r10d
imul r11d, r12d
test r11d, r11d
js 0x1400b3ddb
mov ecx, dword [rsp + 0x120]
test ecx, ecx
js 0x1400b3ddb
je 0x1400b2d1c
xor edx, edx
mov eax, 0x7fffffff
div ecx
cmp r11d, eax
jg 0x1400b3ddb
mov eax, r11d
imul eax, ecx
cmp eax, 0x7ffffff8
jg 0x1400b3ddb
mov edx, r11d
imul edx, ecx
add edx, 7
shr edx, 3
mov dword [rsp + 0x3c], edx
lea eax, [rdx + 1]
imul eax, dword [rsp + 0x118]
cmp esi, eax
jae 0x1400b2d65
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.not_enough_pixels
jmp 0x1400b3e07
mov eax, dword [rsp + 0x118]
xor r8d, r8d
mov dword [rsp + 0x34], r8d
mov r9d, r8d
test eax, eax
je 0x1400b391b
movsxd r14, r13d
movsxd r15, edi
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r10
mov dword [rsp + 0x20], r11d
nop dword [rax]
movzx r10d, byte [rbx]
mov esi, r9d
mov r11d, dword [rsp + 0x40]
inc rbx
imul esi, r11d
add rsi, qword [rsp + 0x80]
mov qword [rsp + 0x58], rsi
cmp r10d, 4
ja 0x1400b38ee
cmp ecx, 8
jge 0x1400b2dff
cmp edx, r12d
ja 0x1400b38d6
mov eax, dword [rsp + 0x108]
mov r13d, 1
imul eax, r12d
mov r14d, r13d
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x30], edx
sub eax, edx
add rsi, rax
mov r12, rsi
lea rcx, [0x140000000]
sub r12, r11
test r9d, r9d
jne 0x1400b2e1a
movzx r10d, byte [r10 + rcx + 0x103ac8]
nop word [rax + rax]
test r14, r14
jle 0x1400b2f73
mov rdi, r12
mov r11, rsi
sub rdi, rbx
mov rdx, rbx
sub r11, rbx
mov r9, r14
nop dword [rax + rax]
mov r8, rdx
cmp r10d, 6
ja case.default.0x1400b2e56
movsxd rax, r10d
mov eax, dword [rcx + rax*4 + 0xb3e28]
add rax, rcx
jmp rax
inc rdx
sub r9, 1
je 0x1400b2f70
lea rcx, [0x140000000]
jmp 0x1400b2e40
movzx eax, byte [rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400b2f70
mov r8, rdx
jmp case.0x1400b2e56.0
movzx eax, byte [rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400b2f70
mov r8, rdx
jmp case.0x1400b2e56.1
movzx eax, byte [rdi + r8]
add al, byte [rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400b2f70
mov r8, rdx
jmp case.0x1400b2e56.2
movzx eax, byte [rdi + r8]
shr al, 1
add al, byte [rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400b2f70
mov r8, rdx
jmp case.0x1400b2e56.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 0x1400b2f70
mov r8, rdx
jmp case.0x1400b2e56.4
movzx eax, byte ds:[rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400b2f70
mov r8, rdx
jmp case.0x1400b2e56.5
movzx eax, byte ds:[rdx]
inc rdx
mov byte [r11 + r8], al
sub r9, 1
je 0x1400b2f6b
mov r8, rdx
jmp case.0x1400b2e56.6
mov r15, qword [rsp + 0x50]
xor r8d, r8d
mov eax, dword [rsp + 0x120]
cmp eax, 8
jne 0x1400b2fb8
movsxd rax, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x60]
cmp dword [rsp + 0x24], eax
je 0x1400b2f96
mov byte [rcx + rsi], 0xff
add rbx, rcx
lea r11, [rax + r12]
lea r9, [rax + rsi]
mov qword [rsp + 0xf8], rbx
mov rdx, rbx
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x28], r9
jmp 0x1400b3029
cmp eax, 0x10
jne 0x1400b2ff6
mov ecx, dword [rsp + 0x24]
cmp ecx, dword [rsp + 0x108]
je 0x1400b2fd1
mov word [r14 + rsi], 0xffff
movsxd rax, r13d
lea r11, [r12 + r15]
add rbx, rax
mov qword [rsp + 0x48], r11
lea r9, [rsi + r15]
mov qword [rsp + 0xf8], rbx
mov rdx, rbx
mov qword [rsp + 0x28], r9
jmp 0x1400b3029
inc rbx
lea r11, [r12 + 1]
mov qword [rsp + 0xf8], rbx
lea r9, [rsi + 1]
mov qword [rsp + 0x48], r11
mov rdx, rbx
mov qword [rsp + 0x28], r9
cmp eax, 8
jl 0x1400b3565
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x108]
je 0x1400b3565
nop word [rax + rax]
cmp r10d, 6
ja case.default.0x1400b3062
movsxd rax, r10d
mov rbx, rdx
lea r10, [0x140000000]
mov ecx, dword [r10 + rax*4 + 0xb3e44]
add rcx, r10
jmp rcx
mov ecx, dword [rsp + 0x110]
lea eax, [rcx - 1]
cmp eax, 1
jb 0x1400b352d
movsxd r11, r13d
mov r10d, eax
nop dword [rax]
test r14, r14
jle 0x1400b30a6
mov r8, rbx
mov rcx, r9
sub r8, r9
mov rdx, r14
movzx eax, byte ds:[rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400b3091
mov byte [r14 + r9], 0xff
add rbx, r11
add r9, r15
sub r10, 1
jne 0x1400b3080
jmp case.default.0x1400b3062
mov ecx, dword [rsp + 0x110]
lea eax, [rcx - 1]
cmp eax, 1
jb 0x1400b352d
movsxd rdi, r13d
mov r11d, eax
test r14, r14
jle 0x1400b3106
mov rdx, r9
mov r10, r9
sub rdx, r15
mov rcx, rbx
sub rdx, rbx
mov r8, r14
sub r10, rbx
nop
movzx eax, byte ds:[rcx + rdx]
add al, byte [rcx]
mov byte [r10 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400b30f0
mov byte [r14 + r9], 0xff
add rbx, rdi
add r9, r15
sub r11, 1
jne 0x1400b30d5
jmp case.default.0x1400b3062
mov ecx, dword [rsp + 0x110]
lea eax, [rcx - 1]
cmp eax, 1
jb 0x1400b352d
movsxd r12, r13d
mov esi, eax
mov rdx, r8
test r13d, r13d
jle 0x1400b3285
cmp r13d, 8
jb 0x1400b3285
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rcx + rbx]
lea r8, [rcx + r9]
cmp r9, rax
ja 0x1400b3170
cmp r8, rbx
jae 0x1400b3285
lea rax, [rcx + r11]
cmp r9, rax
ja 0x1400b3189
nop dword [rax]
cmp r8, r11
jae 0x1400b3285
cmp r13d, 0x80
jb 0x1400b322e
mov ecx, r13d
and ecx, 0x8000007f
jge 0x1400b31af
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]
vmovdqu ymm1, ymmword [rax - 0x20]
vpaddb ymm1, ymm1, ymmword [rax + rcx - 0x20]
vmovdqu ymmword [r8 + rax - 0x20], ymm1
vpaddb ymm1, ymm2, ymmword [rax + rcx]
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 0x1400b31d0
mov eax, r13d
and al, 0x7f
cmp al, 8
jb 0x1400b3285
mov ecx, r13d
and ecx, 0x80000007
jge 0x1400b3240
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 ds:[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 0x1400b3260
cmp rdx, r14
jge 0x1400b32b4
mov r10, r11
lea rcx, [rdx + rbx]
mov rdi, r9
sub r10, rbx
sub rdi, rbx
mov r8, r14
sub r8, rdx
movzx eax, byte [rcx + r10]
add al, byte [rcx]
mov byte [rdi + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400b32a0
mov byte [r14 + r9], 0xff
add rbx, r12
add r9, r15
add r11, r15
mov r8d, 0
sub rsi, 1
jne 0x1400b3134
jmp case.default.0x1400b3062
mov ecx, dword [rsp + 0x110]
lea eax, [rcx - 1]
cmp eax, 1
jb 0x1400b352d
movsxd r13, r13d
mov r12d, eax
test r14, r14
jle 0x1400b332e
mov r8, r9
mov rdi, rbx
sub r8, r15
sub rdi, r11
sub r8, r11
mov rsi, r9
sub rsi, r11
mov rdx, r11
mov r10, r14
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 0x1400b3310
mov byte ds:[r14 + r9], 0xff
add rbx, r13
add r9, r15
add r11, r15
sub r12, 1
jne 0x1400b32f0
jmp case.default.0x1400b3062
mov ecx, dword [rsp + 0x110]
lea eax, [rcx - 1]
cmp eax, 1
jb 0x1400b352d
movsxd rcx, r13d
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x70], rax
test r14, r14
jle 0x1400b3434
mov rax, r11
mov r10, r9
sub rax, r9
sub r10, r15
mov qword [rsp + 0x90], rax
mov r13, r14
mov r14, qword [rsp + 0x50]
mov rax, r15
sub rax, r9
mov r9, qword [rsp + 0x90]
lea rcx, [rax + r11]
lea r11, [rbx + rax]
lea rbx, [rcx]
movzx r8d, byte [r10]
movzx r15d, byte [r10 + r9]
mov ecx, r8d
movzx r12d, byte [rbx + r10]
sub ecx, r15d
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, r15d
mov eax, edx
neg eax
cmovs eax, edx
cmp edi, esi
jg 0x1400b33f1
cmp edi, eax
jle 0x1400b33fa
cmp esi, eax
mov r8d, r15d
cmovle r8d, r12d
add r8b, byte [r11 + r10]
mov byte [r14 + r10], r8b
inc r10
sub r13, 1
jne 0x1400b33b4
mov r9, qword [rsp + 0x28]
mov rbx, qword [rsp + 0xf8]
mov r11, qword [rsp + 0x48]
mov r14, qword [rsp + 0x68]
mov r15, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
add rbx, rcx
mov byte [r14 + r9], 0xff
add r9, r15
mov qword [rsp + 0xf8], rbx
add r11, r15
mov qword [rsp + 0x28], r9
sub rax, 1
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x70], rax
jne 0x1400b3376
jmp case.default.0x1400b3062
mov ecx, dword [rsp + 0x110]
lea eax, [rcx - 1]
cmp eax, 1
jb 0x1400b352d
movsxd rdi, r13d
mov r11d, eax
test r14, r14
jle 0x1400b34b8
mov rdx, r9
mov r10, r9
sub rdx, r15
mov rcx, rbx
sub rdx, rbx
mov r8, r14
sub r10, rbx
nop
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 0x1400b34a0
mov byte [r14 + r9], 0xff
add rbx, rdi
add r9, r15
sub r11, 1
jne 0x1400b3484
jmp case.default.0x1400b3062
mov ecx, dword [rsp + 0x110]
lea eax, [rcx - 1]
cmp eax, 1
jb 0x1400b352d
movsxd rdi, r13d
mov r11d, eax
test r14, r14
jle 0x1400b3514
mov rdx, r9
mov r10, r9
sub rdx, r15
mov rcx, rbx
sub rdx, rbx
mov r8, r14
sub r10, rbx
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
add al, byte [rcx]
mov byte [r10 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400b3500
mov byte ds:[r14 + r9], 0xff
add rbx, rdi
add r9, r15
sub r11, 1
jne 0x1400b34e0
mov ecx, dword [rsp + 0x110]
cmp dword [rsp + 0x120], 0x10
jne 0x1400b389a
nop dword [rax + rax]
test ecx, ecx
je 0x1400b389a
mov eax, ecx
mov rcx, qword [rsp + 0x58]
nop
mov byte [r14 + rcx + 1], 0xff
add rcx, r15
sub rax, 1
jne 0x1400b3550
nop
jmp 0x1400b389a
mov esi, dword [rsp + 0x30]
dec esi
imul esi, r13d
mov dword [rsp + 0x28], esi
cmp r10d, 6
ja case.default.0x1400b3594
lea rcx, [0x140000000]
movsxd rax, r10d
movsxd r8, esi
mov edx, dword [rcx + rax*4 + 0xb3e60]
add rdx, rcx
jmp rdx
mov rdx, rbx
mov rcx, r9
vzeroupper
call sub.VCRUNTIME140.dll_memcpy
jmp case.default.0x1400b3594
test esi, esi
jle case.default.0x1400b3594
mov rdx, r9
mov rcx, rbx
sub rdx, r14
sub rdx, rbx
sub r9, rbx
movzx eax, byte [rcx + rdx]
add al, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400b35c1
jmp case.default.0x1400b3594
xor eax, eax
mov edx, eax
test esi, esi
jle 0x1400b3710
cmp esi, 8
jb 0x1400b3710
lea eax, ds:[rsi - 1]
movsxd rcx, eax
lea rax, [rcx + rbx]
lea r10, [rcx + r9]
cmp r9, rax
ja 0x1400b360e
cmp r10, rbx
jae 0x1400b3710
lea rax, [rcx + r11]
cmp r9, rax
ja 0x1400b3629
nop word [rax + rax]
cmp r10, r11
jae 0x1400b3710
cmp esi, 0x80
jb 0x1400b36bd
mov ecx, esi
and ecx, 0x8000007f
jge 0x1400b3646
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]
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 0x1400b3660
mov eax, esi
and al, 0x7f
cmp al, 8
jb 0x1400b3710
mov ecx, esi
and ecx, 0x80000007
jge 0x1400b36cf
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 0x1400b36f0
cmp rdx, r8
jge case.default.0x1400b3594
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 0x1400b3730
jmp case.default.0x1400b3594
test esi, esi
jle case.default.0x1400b3594
mov rdx, r9
mov r10, rbx
sub rdx, r14
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 0x1400b3770
jmp case.default.0x1400b3594
test esi, esi
jle case.default.0x1400b3594
mov r10, r9
mov r15, r11
sub r10, r14
sub r15, r9
mov rax, r14
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 + r15]
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 0x1400b3805
nop dword [rax + rax]
cmp r11d, eax
jle 0x1400b380e
cmp edi, eax
mov r9d, esi
cmovle r9d, r12d
add r9b, byte [r10 + r13]
mov byte [r14 + r10], r9b
inc r10
sub r8, 1
jne 0x1400b37c0
mov rbx, qword [rsp + 0xf8]
mov r15, qword [rsp + 0x50]
mov esi, dword [rsp + 0x28]
jmp case.default.0x1400b3594
test esi, esi
jle case.default.0x1400b3594
mov rdx, r9
mov rcx, rbx
sub rdx, r14
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 0x1400b3850
jmp case.default.0x1400b3594
test esi, esi
jle case.default.0x1400b3594
mov rdx, r9
mov rcx, rbx
sub rdx, r14
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 0x1400b3880
movsxd rax, esi
add rbx, rax
mov r9d, dword ds:[rsp + 0x34]
xor r8d, r8d
mov eax, dword [rsp + 0x118]
inc r9d
mov r12d, dword [rsp + 0x110]
mov edx, dword [rsp + 0x3c]
mov dword [rsp + 0x34], r9d
cmp r9d, eax
jae 0x1400b3906
mov r13d, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x120]
jmp 0x1400b2da0
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid_width
jmp 0x1400b3e07
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid_filter
jmp 0x1400b3e07
mov r11d, dword [rsp + 0x20]
mov r14d, dword [rsp + 0x108]
mov r15, qword [rsp + 0xf0]
movsxd rdi, dword [rsp + 0x120]
cmp edi, 8
jge 0x1400b3d95
test eax, eax
je 0x1400b3dd4
mov rsi, qword [r15 + 0x18]
lea rcx, [0x140000000]
lea r14, [rcx + 0x1084f0]
movsxd r15, r12d
add r14, rdi
mov r13d, edx
imul r12d, dword [rsp + 0x108]
nop dword [rax + rax]
mov eax, r8d
mov r9, rsi
imul eax, dword [rsp + 0x40]
sub r9, r13
add r9, r12
mov ecx, eax
add r9, rcx
cmp dword [rsp + 0x128], 0
lea rbx, [rsi + rax]
mov rax, rbx
jne 0x1400b398d
movzx r10d, byte [r14]
jmp 0x1400b3990
mov r10b, 1
mov edx, r11d
cmp edi, 4
jne 0x1400b3a25
mov dword [rsp + 0x20], edx
mov edi, edx
cmp edx, 2
jl 0x1400b39fa
mov r11d, edx
mov dword [rsp + 0x20], edx
shr r11, 1
mov ecx, r11d
neg ecx
lea edi, [rdx + rcx*2]
nop dword [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 0x1400b39c0
mov r11d, dword ds:[rsp + 0x20]
test edi, edi
jle 0x1400b3cf0
movzx ecx, byte ds:[r9]
shr cl, 4
movzx r8d, cl
movzx edx, r10b
imul r8d, edx
mov byte [rax], r8b
jmp 0x1400b3cf0
cmp edi, 2
jne 0x1400b3b18
mov dword [rsp + 0x20], edx
mov rdi, rdx
cmp edx, 4
jl 0x1400b3ab8
mov r11, rdx
mov dword [rsp + 0x20], edx
shr r11, 2
mov ecx, r11d
neg ecx
lea edi, [rdx + rcx*4]
nop dword [rax]
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 0x1400b3a50
test edi, edi
jle 0x1400b3ad5
movzx ecx, byte [r9]
shr cl, 6
movzx r8d, cl
movzx edx, r10b
imul r8d, edx
mov byte [rax], r8b
inc rax
cmp edi, 1
jle 0x1400b3af3
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 ds:[rsp + 0x20]
cmp edi, 2
jle 0x1400b3cf0
movzx edx, byte [r9]
shr dl, 2
and dl, 3
jmp 0x1400b3ce4
mov r11d, edx
cmp edi, 1
jne 0x1400b3cf0
mov dword [rsp + 0x20], edx
mov r11, rdx
cmp edx, 8
jl 0x1400b3c17
mov rdi, rdx
mov dword [rsp + 0x20], edx
shr rdi, 3
mov ecx, edi
neg ecx
lea r11d, [rdx + rcx*8]
nop dword [rax]
movzx ecx, byte [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 rdi, 1
jne 0x1400b3b50
test r11d, r11d
jle 0x1400b3c35
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 0x1400b3c54
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 0x1400b3c73
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 0x1400b3c92
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 0x1400b3cb1
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 0x1400b3cd0
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 0x1400b3cf0
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 + 0x108]
je 0x1400b3d6b
lea rcx, [r15 - 1]
cmp r10d, 1
jne 0x1400b3d24
test rcx, rcx
js 0x1400b3d6b
nop
mov byte [rbx + rcx*2 + 1], 0xff
movzx eax, byte [rcx + rbx]
mov byte [rbx + rcx*2], al
sub rcx, 1
jns 0x1400b3d10
jmp 0x1400b3d6b
test rcx, rcx
js 0x1400b3d6b
lea r8, [rcx*2 + 1]
add r8, rbx
lea rdx, [rcx*4 + 2]
add r8, rcx
add rdx, rbx
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 0x1400b3d42
mov r8, qword ds:[rsp + 0x78]
mov edi, dword [rsp + 0x120]
inc r8d
mov qword [rsp + 0x78], r8
cmp r8d, dword [rsp + 0x118]
jb 0x1400b3960
mov eax, 1
jmp 0x1400b3e12
cmp edi, 0x10
jne 0x1400b3dd4
mov r9, qword [r15 + 0x18]
imul r14d, r12d
mov r8, r9
imul r14d, eax
test r14d, r14d
je 0x1400b3dd4
mov r10d, r14d
movzx edx, byte [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 0x1400b3db1
mov eax, 1
jmp 0x1400b3e12
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
jmp 0x1400b3e07
mov qword [r15 + 0x18], r8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, [0x14010d178]
mov edx, 0x28
mov qword [rdx + rcx], rax
xor eax, eax
vzeroupper
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret