Function at 0x180112430
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rsi, rcx
mov r15d, r9d
mov ecx, dword [rsp + 0x110]
mov r14d, r8d
mov r9d, dword [rsp + 0x118]
xor r8d, r8d
cmp dword [rsp + 0x120], 0x10
mov r10d, r8d
mov rax, qword [rsi]
mov rbx, rdx
sete r10b
mov qword [rsp + 0x88], r8
inc r10d
mov dword [rsp + 0x30], ecx
mov edi, r10d
mov eax, dword [rax + 8]
mov r13d, eax
imul edi, r15d
imul r13d, r10d
mov dword [rsp + 0x20], eax
mov r11d, edi
imul r11d, ecx
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x40], r11d
test ecx, ecx
js 0x180113648
test r9d, r9d
js 0x180113648
je 0x1801124d1
xor edx, edx
mov eax, 0x7fffffff
div r9d
cmp ecx, eax
jg 0x180113648
imul ecx, r9d
test ecx, ecx
js 0x180113648
test edi, edi
js 0x180113648
je 0x1801124f7
mov eax, 0x7fffffff
cdq
idiv edi
cmp ecx, eax
jg 0x180113648
mov eax, r9d
imul eax, r11d
movsxd rcx, eax
call fcn.1801d42bc
mov qword [rsi + 0x18], rax
mov r12, rax
test rax, rax
je 0x18011364c
movsxd r9, dword [rsp + 0x20]
test r9d, r9d
js 0x18011362c
mov ecx, dword [rsp + 0x110]
test ecx, ecx
je 0x180112541
xor edx, edx
mov eax, 0x7fffffff
div ecx
cmp r9d, eax
jg 0x18011362c
mov r11d, r9d
imul r11d, ecx
test r11d, r11d
js 0x18011362c
mov esi, dword [rsp + 0x120]
test esi, esi
js 0x18011362c
je 0x180112574
xor edx, edx
mov eax, 0x7fffffff
div esi
cmp r11d, eax
jg 0x18011362c
mov eax, r11d
imul eax, esi
cmp eax, 0x7ffffff8
jg 0x18011362c
mov edx, r11d
imul edx, esi
add edx, 7
shr edx, 3
mov dword [rsp + 0x3c], edx
lea eax, [rdx + 1]
imul eax, dword [rsp + 0x118]
cmp r14d, eax
jae 0x1801125c4
mov edx, dword [0x180a5dd54]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.not_enough_pixels
jmp 0x180113666
mov eax, dword [rsp + 0x118]
lea r14, [0x180000000]
xor r10d, r10d
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x34], r10d
mov r8d, r10d
test eax, eax
je 0x180113154
movsxd r14, r13d
movsxd r15, edi
mov qword [rsp + 0x70], r9
mov r9, r12
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x58], r15
mov dword [rsp + 0xf0], r11d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0xa8], r12
nop word [rax + rax]
mov r11d, dword [rsp + 0x40]
mov r12d, r8d
imul r12d, r11d
add r12, r9
movzx r9d, byte [rbx]
inc rbx
mov qword [rsp + 0x50], r12
mov rdi, r12
cmp r9d, 4
ja 0x180113116
cmp esi, 8
jge 0x18011267b
cmp edx, ecx
ja 0x1801130f7
mov eax, dword [rsp + 0x108]
mov r13d, 1
imul eax, ecx
mov r14d, r13d
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x30], edx
sub eax, edx
add rdi, rax
mov rsi, rdi
lea rcx, [0x180000000]
sub rsi, r11
test r8d, r8d
jne 0x180112696
movzx r9d, byte [r9 + rcx + 0x242f84]
test r14, r14
jle 0x1801127b4
mov r11, rsi
mov r10, rdi
sub r11, rbx
mov rdx, rbx
sub r10, rbx
mov r8, r14
cmp r9d, 6
ja case.default.0x1801126c4
movsxd rax, r9d
mov eax, dword [rcx + rax*4 + 0x113688]
add rax, rcx
jmp rax
inc rdx
sub r8, 1
je 0x1801127b1
lea rcx, [0x180000000]
jmp 0x1801126b1
movzx eax, byte [rdx]
mov byte [r10 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x1801127b1
jmp case.0x1801126c4.0
movzx eax, byte [rdx]
mov byte [r10 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x1801127b1
jmp case.0x1801126c4.1
movzx eax, byte [r11 + rdx]
add al, byte [rdx]
mov byte [r10 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x1801127b1
jmp case.0x1801126c4.2
movzx eax, byte [r11 + rdx]
lea rdx, [rdx + 1]
shr al, 1
add al, byte [rdx - 1]
mov byte [r10 + rdx - 1], al
sub r8, 1
je 0x1801127b1
jmp case.0x1801126c4.3
movzx eax, byte [r11 + rdx]
lea rdx, [rdx + 1]
xor ecx, ecx
test al, al
cmovne ecx, eax
add cl, byte [rdx - 1]
mov byte [r10 + rdx - 1], cl
sub r8, 1
je 0x1801127b1
jmp case.0x1801126c4.4
movzx eax, byte [rdx]
mov byte [r10 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
je 0x1801127b1
jmp case.0x1801126c4.5
movzx eax, byte [rdx]
mov byte [r10 + rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne case.0x1801126c4.6
xor r10d, r10d
mov ecx, dword [rsp + 0x120]
cmp ecx, 8
jne 0x1801127f8
movsxd rax, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x70]
cmp dword [rsp + 0x20], eax
je 0x1801127d7
mov byte [rcx + rdi], 0xff
add rbx, rcx
lea r11, [rax + rsi]
add rax, rdi
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x28], rax
mov r8, rbx
mov qword [rsp + 0x48], r11
jmp 0x18011285f
cmp ecx, 0x10
jne 0x180112836
mov eax, dword [rsp + 0x20]
cmp eax, dword [rsp + 0x108]
je 0x180112811
mov word [r14 + rdi], 0xffff
movsxd rax, r13d
lea r11, [rsi + r15]
add rbx, rax
mov qword [rsp + 0x48], r11
lea rax, [rdi + r15]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x28], rax
mov r8, rbx
jmp 0x18011285f
inc rbx
lea r11, [rsi + 1]
mov qword [rsp + 0xf8], rbx
lea rax, [rdi + 1]
mov qword [rsp + 0x48], r11
mov r8, rbx
mov qword [rsp + 0x28], rax
cmp ecx, 8
jl 0x180112da4
mov ecx, dword [rsp + 0x20]
cmp ecx, dword [rsp + 0x108]
je 0x180112da4
cmp r9d, 6
ja case.default.0x180112892
movsxd rcx, r9d
mov rbx, r8
lea r9, [0x180000000]
mov edx, dword [r9 + rcx*4 + 0x1136a4]
add rdx, r9
jmp rdx
mov ecx, dword [rsp + 0x110]
dec ecx
cmp ecx, 1
jb case.default.0x180112892
movsxd r11, r13d
mov r10d, ecx
nop dword [rax]
test r14, r14
jle 0x1801128d2
mov r9, rbx
mov rdx, rax
sub r9, rax
mov r8, r14
movzx ecx, byte [r9 + rdx]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x1801128c1
mov byte [r14 + rax], 0xff
add rbx, r11
add rax, r15
sub r10, 1
jne 0x1801128b0
jmp case.default.0x180112892
mov ecx, dword [rsp + 0x110]
dec ecx
cmp ecx, 1
jb case.default.0x180112892
movsxd rdi, r13d
mov r11d, ecx
test r14, r14
jle 0x180112935
mov r9, rax
mov r10, rax
sub r9, r15
mov rdx, rbx
sub r9, rbx
mov r8, r14
sub r10, rbx
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
add cl, byte [rdx]
mov byte [rdx + r10], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x180112920
mov byte [r14 + rax], 0xff
add rbx, rdi
add rax, r15
sub r11, 1
jne 0x180112900
jmp case.default.0x180112892
mov ecx, dword [rsp + 0x110]
dec ecx
cmp ecx, 1
jb case.default.0x180112892
movsxd r12, r13d
mov esi, ecx
mov r8, r10
test r13d, r13d
jle 0x180112a90
cmp r13d, 8
jb 0x180112a90
lea ecx, [r13 - 1]
movsxd rdx, ecx
lea rcx, [rdx + rbx]
lea r9, [rdx + rax]
cmp rax, rcx
ja 0x180112995
cmp r9, rbx
jae 0x180112a90
lea rcx, [rdx + r11]
cmp rax, rcx
ja 0x1801129a7
cmp r9, r11
jae 0x180112a90
cmp r13d, 0x80
jb 0x180112a40
mov edx, r13d
and edx, 0x8000007f
jge 0x1801129c6
dec edx
or edx, 0xffffff80
inc edx
mov ecx, r13d
sub ecx, edx
mov rdx, rbx
movsxd r10, ecx
sub rdx, r11
lea rcx, [r11 + 0x20]
mov r9, rax
sub r9, r11
nop
vmovdqu ymm2, ymmword [rcx]
vmovdqu ymm1, ymmword [rcx - 0x20]
vpaddb ymm1, ymm1, ymmword [rdx + rcx - 0x20]
vmovdqu ymmword [r9 + rcx - 0x20], ymm1
vpaddb ymm1, ymm2, ymmword [rcx + rdx]
vmovdqu ymm2, ymmword [rcx + 0x20]
vmovdqu ymmword [rcx + r9], ymm1
vpaddb ymm1, ymm2, ymmword [rdx + rcx + 0x20]
vmovdqu ymm2, ymmword [rcx + 0x40]
vmovdqu ymmword [r9 + rcx + 0x20], ymm1
vpaddb ymm1, ymm2, ymmword [rdx + rcx + 0x40]
sub r8, 0xffffffffffffff80
vmovdqu ymmword [r9 + rcx + 0x40], ymm1
lea rcx, [rcx + 0x80]
cmp r8, r10
jl 0x1801129e0
mov ecx, r13d
and cl, 0x7f
cmp cl, 8
jb 0x180112a90
mov edx, r13d
and edx, 0x80000007
jge 0x180112a52
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, r13d
sub ecx, edx
mov rdx, r11
movsxd r10, ecx
sub rdx, rbx
lea rcx, [r8 + rbx]
mov r9, rax
sub r9, rbx
nop word [rax + rax]
vmovq xmm1, qword [rcx + rdx]
vmovq xmm0, qword [rcx]
vpaddb xmm1, xmm1, xmm0
add r8, 8
vmovq qword [rcx + r9], xmm1
lea rcx, [rcx + 8]
cmp r8, r10
jl 0x180112a70
cmp r8, r14
jge 0x180112ac4
mov r10, r11
lea rdx, [r8 + rbx]
mov rdi, rax
sub r10, rbx
sub rdi, rbx
mov r9, r14
sub r9, r8
nop dword [rax + rax]
movzx ecx, byte [rdx + r10]
add cl, byte [rdx]
mov byte [rdx + rdi], cl
lea rdx, [rdx + 1]
sub r9, 1
jne 0x180112ab0
mov byte [r14 + rax], 0xff
add rbx, r12
add rax, r15
add r11, r15
mov r10d, 0
sub rsi, 1
jne 0x180112962
mov r12, qword [rsp + 0x50]
jmp case.default.0x180112892
mov ecx, dword [rsp + 0x110]
dec ecx
cmp ecx, 1
jb case.default.0x180112892
movsxd r13, r13d
mov r12d, ecx
test r14, r14
jle 0x180112b51
mov r9, rax
mov rdi, rbx
sub r9, r15
sub rdi, r11
sub r9, r11
mov rsi, rax
sub rsi, r11
mov r8, r11
mov r10, r14
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9 + r8]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
add edx, ecx
shr edx, 1
add dl, byte [r8 + rdi - 1]
mov byte [r8 + rsi - 1], dl
sub r10, 1
jne 0x180112b30
mov byte [r14 + rax], 0xff
add rbx, r13
add rax, r15
add r11, r15
sub r12, 1
jne 0x180112b04
mov r12, qword [rsp + 0x50]
jmp case.default.0x180112892
mov ecx, dword [rsp + 0x110]
dec ecx
cmp ecx, 1
jb case.default.0x180112892
movsxd rdx, r13d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x80], rcx
nop dword [rax]
test r14, r14
jle 0x180112c73
mov r10, rax
mov rcx, r11
sub rcx, rax
sub r10, r15
mov qword [rsp + 0x90], rcx
mov r13, r14
mov r14, qword [rsp + 0x58]
mov rcx, r15
sub rcx, rax
lea rax, [rcx + r11]
mov r11, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
lea rax, [rbx + rcx]
mov rbx, qword [rsp + 0xa0]
nop dword [rax + rax]
movzx r9d, byte [r10]
movzx r15d, byte [r11 + r10]
mov edx, r9d
movzx r12d, byte [rbx + r10]
sub edx, r15d
mov esi, edx
lea r8d, [r12 + rdx]
mov ecx, r8d
sub ecx, r9d
mov edi, ecx
neg edi
cmovs edi, ecx
neg esi
cmovs esi, edx
sub r8d, r15d
mov ecx, r8d
neg ecx
cmovs ecx, r8d
cmp edi, esi
jg 0x180112c30
cmp edi, ecx
jle 0x180112c39
cmp esi, ecx
mov r9d, r15d
cmovle r9d, r12d
add r9b, byte [rax + r10]
mov byte [r14 + r10], r9b
inc r10
sub r13, 1
jne 0x180112bf0
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0xf8]
mov r11, qword [rsp + 0x48]
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x68]
add rbx, rdx
mov byte [r14 + rax], 0xff
add rax, r15
mov qword [rsp + 0xf8], rbx
add r11, r15
mov qword [rsp + 0x28], rax
sub rcx, 1
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x80], rcx
jne 0x180112ba0
mov r12, qword [rsp + 0x50]
jmp case.default.0x180112892
mov ecx, dword [rsp + 0x110]
dec ecx
cmp ecx, 1
jb case.default.0x180112892
movsxd rdi, r13d
mov r11d, ecx
test r14, r14
jle 0x180112cfa
mov r9, rax
mov r10, rax
sub r9, r15
mov rdx, rbx
sub r9, rbx
mov r8, r14
sub r10, rbx
movzx ecx, byte [r9 + rdx]
lea rdx, [rdx + 1]
shr cl, 1
add cl, byte [rdx - 1]
mov byte [r10 + rdx - 1], cl
sub r8, 1
jne 0x180112ce1
mov byte [r14 + rax], 0xff
add rbx, rdi
add rax, r15
sub r11, 1
jne 0x180112cc7
jmp case.default.0x180112892
mov ecx, dword [rsp + 0x110]
dec ecx
cmp ecx, 1
jb case.default.0x180112892
movsxd rdi, r13d
mov r11d, ecx
test r14, r14
jle 0x180112d55
mov r9, rax
mov r10, rax
sub r9, r15
mov rdx, rbx
sub r9, rbx
mov r8, r14
sub r10, rbx
nop dword [rax + rax]
movzx ecx, byte [r9 + rdx]
add cl, byte [rdx]
mov byte [r10 + rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x180112d40
mov byte [r14 + rax], 0xff
add rbx, rdi
add rax, r15
sub r11, 1
jne 0x180112d21
mov esi, dword [rsp + 0x120]
cmp esi, 0x10
jne 0x1801130c1
mov ecx, dword [rsp + 0x110]
test ecx, ecx
je 0x1801130c8
mov eax, ecx
nop word [rax + rax]
mov byte [r14 + r12 + 1], 0xff
add r12, r15
sub rax, 1
jne 0x180112d90
jmp 0x1801130c8
mov esi, dword [rsp + 0x30]
dec esi
imul esi, r13d
mov dword [rsp + 0x28], esi
cmp r9d, 6
ja case.default.0x180112dd4
movsxd rcx, r9d
lea r9, [0x180000000]
movsxd r8, esi
mov edx, dword [r9 + rcx*4 + 0x1136c0]
add rdx, r9
jmp rdx
mov rdx, rbx
mov rcx, rax
vzeroupper
call fcn.1801feaf0
jmp case.default.0x180112dd4
test esi, esi
jle case.default.0x180112dd4
mov r9, rax
mov rdx, rbx
sub r9, r14
sub r9, rbx
sub rax, rbx
movzx ecx, byte [r9 + rdx]
add cl, byte [rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x180112e00
jmp case.default.0x180112dd4
mov r9, r10
test esi, esi
jle 0x180112f40
cmp esi, 8
jb 0x180112f40
lea ecx, [rsi - 1]
movsxd rdx, ecx
lea rcx, [rdx + rbx]
lea r10, [rdx + rax]
cmp rax, rcx
ja 0x180112e49
cmp r10, rbx
jae 0x180112f40
lea rcx, [rdx + r11]
cmp rax, rcx
ja 0x180112e5b
cmp r10, r11
jae 0x180112f40
cmp esi, 0x80
jb 0x180112eef
mov edx, esi
and edx, 0x8000007f
jge 0x180112e78
dec edx
or edx, 0xffffff80
inc edx
mov ecx, esi
sub ecx, edx
mov rdx, rbx
movsxd rdi, ecx
sub rdx, r11
lea rcx, [r11 + 0x20]
mov r10, rax
sub r10, r11
nop
vmovdqu ymm2, ymmword [rcx]
vmovdqu ymm1, ymmword [rcx - 0x20]
vpaddb ymm1, ymm1, ymmword [rdx + rcx - 0x20]
vmovdqu ymmword [r10 + rcx - 0x20], ymm1
vpaddb ymm1, ymm2, ymmword [rcx + rdx]
vmovdqu ymm2, ymmword [rcx + 0x20]
vmovdqu ymmword [rcx + r10], ymm1
vpaddb ymm1, ymm2, ymmword [rdx + rcx + 0x20]
vmovdqu ymm2, ymmword [rcx + 0x40]
vmovdqu ymmword [r10 + rcx + 0x20], ymm1
vpaddb ymm1, ymm2, ymmword [rdx + rcx + 0x40]
sub r9, 0xffffffffffffff80
vmovdqu ymmword [r10 + rcx + 0x40], ymm1
lea rcx, [rcx + 0x80]
cmp r9, rdi
jl 0x180112e90
mov ecx, esi
and cl, 0x7f
cmp cl, 8
jb 0x180112f40
mov edx, esi
and edx, 0x80000007
jge 0x180112f00
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, esi
sub ecx, edx
mov rdx, r11
movsxd rdi, ecx
sub rdx, rbx
lea rcx, [r9 + rbx]
mov r10, rax
sub r10, rbx
nop word [rax + rax]
vmovq xmm1, qword [rdx + rcx]
vmovq xmm0, qword [rcx]
vpaddb xmm1, xmm1, xmm0
add r9, 8
vmovq qword [rcx + r10], xmm1
lea rcx, [rcx + 8]
cmp r9, rdi
jl 0x180112f20
cmp r9, r8
jge case.default.0x180112dd4
sub r11, rbx
lea rdx, [r9 + rbx]
sub rax, rbx
sub r8, r9
nop word [rax + rax]
movzx ecx, byte [r11 + rdx]
add cl, byte [rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x180112f60
jmp case.default.0x180112dd4
test esi, esi
jle case.default.0x180112dd4
mov r9, rax
mov r10, rbx
sub r9, r14
sub r10, r11
sub r9, r11
sub rax, r11
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9 + r11]
movzx ecx, byte [r11]
lea r11, [r11 + 1]
add edx, ecx
shr edx, 1
add dl, byte [r10 + r11 - 1]
mov byte [rax + r11 - 1], dl
sub r8, 1
jne 0x180112fa0
jmp case.default.0x180112dd4
test esi, esi
jle case.default.0x180112dd4
mov r10, rax
mov r15, r11
sub r15, rax
sub r10, r14
mov rcx, r14
sub rcx, rax
lea rax, [rcx + r11]
lea r13, [rcx + rbx]
mov rbx, rax
nop dword [rax + rax]
movzx r9d, byte [r10]
movzx esi, byte [r15 + r10]
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 0x180113030
cmp r11d, eax
jle 0x180113039
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 0x180112ff0
mov rbx, qword [rsp + 0xf8]
mov r15, qword [rsp + 0x58]
mov esi, dword [rsp + 0x28]
jmp case.default.0x180112dd4
test esi, esi
jle case.default.0x180112dd4
mov r9, rax
mov rdx, rbx
sub r9, r14
sub r9, rbx
sub rax, rbx
movzx ecx, byte [r9 + rdx]
lea rdx, [rdx + 1]
shr cl, 1
add cl, byte [rdx - 1]
mov byte [rax + rdx - 1], cl
sub r8, 1
jne 0x180113070
jmp case.default.0x180112dd4
test esi, esi
jle case.default.0x180112dd4
mov r9, rax
mov rdx, rbx
sub r9, r14
sub r9, rbx
sub rax, rbx
nop dword [rax]
movzx ecx, byte [rdx + r9]
add cl, byte [rdx]
mov byte [rdx + rax], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x1801130a0
movsxd rax, esi
mov esi, dword [rsp + 0x120]
add rbx, rax
mov ecx, dword [rsp + 0x110]
mov r8d, dword [rsp + 0x34]
xor r10d, r10d
mov eax, dword [rsp + 0x118]
inc r8d
mov edx, dword [rsp + 0x3c]
mov dword [rsp + 0x34], r8d
cmp r8d, eax
jae 0x180113135
mov r13d, dword [rsp + 0x38]
mov r9, qword [rsp + 0x60]
jmp 0x180112620
mov edx, dword [0x180a5dd54]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_width
jmp 0x180113666
mov edx, dword [0x180a5dd54]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_filter
jmp 0x180113666
mov r11d, dword [rsp + 0xf0]
lea r14, [0x180000000]
mov r12, qword [rsp + 0xa8]
mov r15d, dword [rsp + 0x108]
movsxd rdi, dword [rsp + 0x120]
cmp edi, 8
jge 0x1801135dd
test eax, eax
je 0x180113625
mov r13d, dword [rsp + 0x128]
lea rsi, [rdi + 0x243090]
add rsi, r14
mov r12d, edx
imul r15d, ecx
movsxd r14, ecx
nop dword [rax]
mov rax, qword [rsp + 0x60]
mov ecx, r10d
imul ecx, dword [rsp + 0x40]
mov r9, r15
sub r9, r12
add r9, rcx
add r9, rax
lea rbx, [rcx + rax]
mov r8, rbx
test r13d, r13d
jne 0x1801131bb
movzx r10d, byte [rsi]
jmp 0x1801131be
mov r10b, 1
mov ecx, r11d
cmp edi, 4
jne 0x18011324e
mov dword [rsp + 0xf0], ecx
mov edi, ecx
cmp ecx, 2
jl 0x180113225
mov r11d, ecx
mov dword [rsp + 0xf0], ecx
shr r11, 1
mov eax, r11d
neg eax
lea edi, [rcx + rax*2]
nop dword [rax]
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
movzx ecx, r10b
mov byte [r8], dl
movzx eax, byte [r9]
inc r9
and al, 0xf
movzx edx, al
imul edx, ecx
mov byte [r8 + 1], dl
add r8, 2
sub r11, 1
jne 0x1801131f0
mov r11d, dword [rsp + 0xf0]
test edi, edi
jle 0x180113528
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x180113528
cmp edi, 2
jne 0x18011333f
mov dword [rsp + 0xf0], ecx
mov rdi, rcx
cmp ecx, 4
jl 0x1801132e5
mov r11, rcx
mov dword [rsp + 0xf0], ecx
shr r11, 2
mov eax, r11d
neg eax
lea edi, [rcx + rax*4]
nop dword [rax]
movzx eax, byte [r9]
shr al, 6
movzx edx, al
movzx ecx, r10b
imul edx, ecx
movzx eax, r10b
mov byte [r8], dl
movzx ecx, byte [r9]
shr cl, 4
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 1], cl
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
movzx ecx, cl
imul ecx, eax
mov byte [r8 + 2], cl
movzx eax, byte [r9]
inc r9
and al, 3
movzx ecx, r10b
movzx edx, al
imul edx, ecx
mov byte [r8 + 3], dl
add r8, 4
sub r11, 1
jne 0x180113280
test edi, edi
jle 0x180113300
movzx eax, byte [r9]
shr al, 6
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
inc r8
cmp edi, 1
jle 0x18011331f
movzx ecx, byte [r9]
shr cl, 4
and cl, 3
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
mov r11d, dword [rsp + 0xf0]
cmp edi, 2
jle 0x180113528
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x18011351b
mov r11d, ecx
cmp edi, 1
jne 0x180113528
mov dword [rsp + 0xf0], ecx
mov r11, rcx
cmp ecx, 8
jl 0x180113448
mov rdi, rcx
mov dword [rsp + 0xf0], ecx
shr rdi, 3
mov eax, edi
neg eax
lea r11d, [rcx + rax*8]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9]
shr al, 7
movzx edx, al
movzx ecx, r10b
imul edx, ecx
movzx eax, r10b
mov byte [r8], dl
movzx ecx, byte [r9]
shr cl, 6
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 1], cl
movzx ecx, byte [r9]
shr cl, 5
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 2], cl
movzx ecx, byte [r9]
shr cl, 4
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 3], cl
movzx ecx, byte [r9]
shr cl, 3
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 4], cl
movzx ecx, byte [r9]
shr cl, 2
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 5], cl
movzx ecx, byte [r9]
shr cl, 1
and cl, 1
movzx ecx, cl
imul ecx, eax
mov byte [r8 + 6], cl
movzx eax, byte [r9]
inc r9
and al, 1
movzx ecx, r10b
movzx edx, al
imul edx, ecx
mov byte [r8 + 7], dl
add r8, 8
sub rdi, 1
jne 0x180113380
test r11d, r11d
jle 0x180113464
movzx eax, byte [r9]
shr al, 7
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
inc r8
cmp r11d, 1
jle 0x180113484
movzx ecx, byte [r9]
shr cl, 6
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 2
jle 0x1801134a4
movzx ecx, byte [r9]
shr cl, 5
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 3
jle 0x1801134c4
movzx ecx, byte [r9]
shr cl, 4
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 4
jle 0x1801134e4
movzx ecx, byte [r9]
shr cl, 3
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 5
jle 0x180113504
movzx ecx, byte [r9]
shr cl, 2
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 6
mov r11d, dword [rsp + 0xf0]
jle 0x180113528
movzx ecx, byte [r9]
shr cl, 1
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
mov eax, dword [rsp + 0x20]
cmp eax, dword [rsp + 0x108]
je 0x1801135ab
lea rcx, [r14 - 1]
cmp eax, 1
jne 0x180113564
test rcx, rcx
js 0x1801135ab
nop dword [rax]
nop word [rax + rax]
mov byte [rbx + rcx*2 + 1], 0xff
movzx eax, byte [rcx + rbx]
mov byte [rbx + rcx*2], al
sub rcx, 1
jns 0x180113550
jmp 0x1801135ab
test rcx, rcx
js 0x1801135ab
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 0x180113582
mov r10, qword [rsp + 0x88]
mov edi, dword [rsp + 0x120]
inc r10d
mov qword [rsp + 0x88], r10
cmp r10d, dword [rsp + 0x118]
jb 0x180113190
mov eax, 1
jmp 0x180113671
cmp edi, 0x10
jne 0x180113625
imul r15d, ecx
mov r8, r12
imul r15d, eax
test r15d, r15d
je 0x180113625
mov r9d, r15d
nop word [rax + rax]
movzx edx, byte [r12]
lea r12, [r12 + 2]
movzx ecx, byte [r8 + 1]
lea r8, [r8 + 2]
shl dx, 8
or dx, cx
mov word [r8 - 2], dx
sub r9, 1
jne 0x180113600
mov eax, 1
jmp 0x180113671
mov edx, dword [0x180a5dd54]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
jmp 0x180113666
mov qword [rsi + 0x18], r8
mov edx, dword [0x180a5dd54]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
mov ecx, Ordinal_41
mov qword [rcx + rax], rdx
xor eax, eax
vzeroupper
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret