Function at 0x1800e1390
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rax, qword [rcx]
lea rdx, [rbp + 0x1f]
mov r8d, 8
mov qword [rbp + 0xf], rcx
call qword [rax]
mov r8d, 8
mov dword [rbp + 0x17], 0x474e5089
lea rdx, [rbp + 0x17]
mov dword [rbp + 0x1b], 0xa1a0a0d
lea rcx, [rbp + 0x1f]
call fcn.180181380
test eax, eax
jne 0x1800e14a1
call fcn.18011c930
mov rcx, rax
mov qword [rbp - 0x21], rax
mov rbx, rax
call fcn.18011e920
mov rcx, rbx
mov qword [rbp - 0x29], rax
call fcn.18011c720
mov rcx, rax
mov rdx, rsp
call fcn.1801ad050
mov rbx, qword [rbp - 0x21]
test eax, eax
je 0x1800e14d0
test rbx, rbx
je 0x1800e14a1
mov rdi, qword [rbp - 0x29]
xor r13d, r13d
test rdi, rdi
je 0x1800e148d
lea r9d, [r13 - 1]
mov qword [rbp - 0x29], r13
mov r8d, 0x7fff
mov rdx, rdi
mov rcx, rbx
call fcn.18011ea00
xor edx, edx
mov r8d, 0x178
mov rcx, rdi
call fcn.180180df0
mov rax, qword [rbx + 0x440]
test rax, rax
je 0x1800e1485
mov rdx, rdi
mov rcx, rbx
call rax
jmp 0x1800e148d
mov rcx, rdi
call fcn.1801831e8
mov rcx, rbx
mov qword [rbp - 0x21], r13
call fcn.18011d950
mov rcx, rbx
call fcn.180124f90
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18017e6e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor r13d, r13d
test rbx, rbx
je 0x1800e1523
mov rax, qword [rbp + 0xf]
mov qword [rbx + 0x140], rax
lea rax, [0x1800e1340]
mov qword [rbx + 0x138], rax
cmp qword [rbx + 0x130], r13
je 0x1800e1510
lea rdx, str.Cant_set_both_read_data_fn_and_write_data_fn_in_the_same_structure
mov qword [rbx + 0x130], r13
mov rcx, rbx
call fcn.18011c3b0
mov qword [rbx + 0x2b0], r13
test rbx, rbx
je 0x1800e1523
mov byte [rbx + 0x28d], 8
cmp byte [rbx + 0x288], 8
mov rdi, qword [rbp - 0x29]
jb 0x1800e153f
cmp byte [rbx + 0x287], 3
je 0x1800e153f
test byte [rdi + 8], 0x10
je 0x1800e1547
mov rcx, rbx
call fcn.180117d30
mov edx, 0xff
mov r8d, 1
mov rcx, rbx
call fcn.18011dc90
mov eax, dword [rbx + 0x16c]
bt eax, 0xf
jae 0x1800e1570
bts eax, 0x18
mov dword [rbx + 0x16c], eax
cmp byte [rbx + 0x284], r13b
je 0x1800e1582
or eax, 2
mov dword [rbx + 0x16c], eax
mov rcx, rbx
call fcn.180117d80
mov rcx, rbx
call fcn.180117ce0
mov rdx, rdi
mov rcx, rbx
call fcn.18011c9c0
mov rdx, rdi
mov rcx, rbx
call fcn.18011cea0
mov r12d, dword [rbx + 0x218]
mov ecx, 0x20
mov r14d, dword [rbx + 0x21c]
shl r12d, 2
imul r14d, r12d
mov dword [rbp - 0x41], r12d
mov dword [rbp - 0x49], r14d
call fcn.180183958
mov r15, rax
mov qword [rbp - 1], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x18], r13
mov eax, dword [rbx + 0x218]
movsxd rsi, dword [rbx + 0x21c]
mov dword [r15 + 0x10], eax
mov eax, esi
mul r12d
mov dword [r15 + 0x14], esi
mov ecx, eax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.180183958
mov r8d, r14d
mov qword [rbp - 0x31], rax
xor edx, edx
mov rcx, rax
call fcn.180180df0
mov rcx, 0xffffffffffffffff
mov eax, 8
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.180183958
mov qword [rbp - 0x11], rax
mov rcx, rax
mov r8d, r13d
test esi, esi
jle 0x1800e166a
mov r9, rax
mov rax, qword [rbp - 0x31]
nop
mov edx, r8d
lea r9, [r9 + 8]
imul edx, r12d
inc r8d
add rdx, rax
mov qword [r9 - 8], rdx
cmp r8d, esi
jl 0x1800e1650
test rdi, rdi
je 0x1800e1ae9
mov eax, dword [rdi + 8]
and eax, 0x10000
je 0x1800e1ae9
movsxd rsi, dword [rdi + 0x158]
mov eax, esi
mov dword [rbp - 0x3d], esi
mul r14d
mov dword [r15 + 0x18], esi
mov ecx, eax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.180183958
mov rcx, r14
mov qword [rbp + 7], rax
call fcn.180183958
mov r8d, dword [rbp - 0x49]
xor edx, edx
mov rcx, rax
mov qword [rbp - 0x39], rax
mov r14, rax
call fcn.180180df0
mov ecx, dword [rdi + 0x15c]
mov eax, 2
mov dword [r15 + 0x1c], ecx
mov rcx, 0xffffffffffffffff
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.180183958
mov qword [rbp - 9], rax
mov r10, rax
mov qword [r15 + 8], rax
mov dword [rbp - 0x45], r13d
test esi, esi
jle 0x1800e1ad2
mov r9, r13
mov qword [rbp - 0x19], r13
mov eax, dword [rbx + 0x164]
mov r11d, 0x3e8
bt eax, 0x10
jae 0x1800e1ba6
cmp dword [rbx + 0x410], r13d
je 0x1800e181b
and dword [rbx + 0x168], 0xffffffbf
and eax, 0xfffdfff3
mov dword [rbx + 0x164], eax
xor r14b, r14b
mov dword [rbx + 0x234], r13d
mov byte [rbx + 0x285], r13b
mov rcx, rbx
call fcn.180125260
mov esi, eax
mov eax, dword [rbx + 0x238]
cmp eax, 0x49444154
jne 0x1800e1789
test r14b, r14b
jne 0x1800e1b86
cmp dword [rbx + 0x410], 1
ja 0x1800e1b86
mov edx, esi
mov rcx, rbx
call fcn.1801254a0
jmp 0x1800e1750
mov rcx, rbx
cmp eax, 0x6663544c
jne 0x1800e17a3
mov r8d, esi
mov rdx, rdi
call fcn.180129b60
mov r14b, 1
jmp 0x1800e1750
cmp eax, 0x66644154
jne 0x1800e17cc
mov edx, esi
call fcn.180129e90
test r14b, r14b
jne 0x1800e17e7
cmp dword [rbx + 0x410], 1
jbe 0x1800e17e7
lea edx, [rsi - 4]
mov rcx, rbx
call fcn.1801254a0
jmp 0x1800e1750
lea rdx, str.Skipped__ignored__a_chunk_between_APNG_chunks
call fcn.18011c3b0
mov edx, esi
mov rcx, rbx
call fcn.1801254a0
jmp 0x1800e1750
mov ecx, dword [rbx + 0x164]
bt ecx, 0x11
jae 0x1800e1b96
mov r9, qword [rbp - 0x19]
lea eax, [rsi - 4]
mov r14, qword [rbp - 0x39]
or ecx, 4
mov r10, qword [rbp - 9]
mov r11d, 0x3e8
mov dword [rbx + 0x268], eax
mov dword [rbx + 0x164], ecx
mov r8d, 0x20000
mov rdx, rdi
mov rcx, rbx
call fcn.18011e340
test eax, eax
je 0x1800e189c
movzx edx, word [rdi + 0x172]
movzx ecx, word [rdi + 0x170]
test dx, dx
je 0x1800e1895
cmp dx, 0x64
je 0x1800e1895
mov r8, qword [r15 + 8]
add r8, r9
cmp dx, 0xa
jne 0x1800e1869
movzx eax, cx
shl ax, 2
add cx, ax
add cx, cx
mov word [r8], cx
jmp 0x1800e18a1
movzx r9d, cx
cmp dx, r11w
jne 0x1800e1884
mov eax, 0xcccccccd
mul r9d
shr edx, 3
mov word [r8], dx
jmp 0x1800e18a1
movzx ecx, dx
xor edx, edx
imul eax, r9d, 0x64
div ecx
mov word [r8], ax
jmp 0x1800e18a1
mov word [r9 + r10], cx
jmp 0x1800e18a1
mov word [r9 + r10], r13w
mov rdx, qword [rbp - 0x11]
mov rcx, rbx
call fcn.18011d360
mov eax, dword [rdi + 0x16c]
mov esi, dword [rdi + 0x168]
movzx ecx, byte [rdi + 0x175]
imul eax, r12d
shl esi, 2
add rax, r14
mov r14, qword [rbp - 0x31]
add rsi, rax
test ecx, ecx
je 0x1800e19b7
cmp ecx, 1
jne 0x1800e19fc
mov r15d, r13d
cmp dword [rdi + 0x164], r13d
jbe 0x1800e19fc
mov eax, dword [rdi + 0x160]
nop dword [rax + rax]
mov r9, rsi
mov r10, r14
mov r11d, r13d
test eax, eax
je 0x1800e199f
movzx edx, byte [r10 + 3]
mov r8d, 0xff
movzx ecx, byte [r9]
lea r9, [r9 + 4]
movzx eax, byte [r10]
lea r10, [r10 + 4]
imul eax, edx
sub r8d, edx
imul ecx, r8d
inc r11d
add ecx, eax
sar ecx, 8
mov byte [r9 - 4], cl
movzx ecx, byte [r10 - 3]
movzx eax, byte [r9 - 3]
imul ecx, edx
imul eax, r8d
add ecx, eax
sar ecx, 8
mov byte [r9 - 3], cl
movzx ecx, byte [r10 - 2]
movzx eax, byte [r9 - 2]
imul ecx, edx
imul eax, r8d
add ecx, eax
sar ecx, 8
mov byte [r9 - 2], cl
movzx ecx, byte [r10 - 1]
movzx eax, byte [r9 - 1]
imul ecx, edx
imul eax, r8d
add ecx, eax
sar ecx, 8
mov byte [r9 - 1], cl
mov eax, dword [rdi + 0x160]
cmp r11d, eax
jb 0x1800e1911
add rsi, r12
add r14, r12
inc r15d
cmp r15d, dword [rdi + 0x164]
jb 0x1800e1900
jmp 0x1800e19f8
mov r15d, r13d
cmp dword [rdi + 0x164], r13d
jbe 0x1800e19fc
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rdi + 0x160]
mov rdx, r14
shl r8d, 2
mov rcx, rsi
call fcn.180180990
add rsi, r12
add r14, r12
inc r15d
cmp r15d, dword [rdi + 0x164]
jb 0x1800e19d0
mov r12d, dword [rbp - 0x41]
mov ecx, dword [rbp - 0x49]
mov r15d, dword [rbp - 0x45]
mov r8d, ecx
mov rdx, qword [rbp - 0x39]
mov r14d, r15d
imul r14d, ecx
add r14, qword [rbp + 7]
mov rcx, r14
call fcn.180180990
mov eax, dword [rdi + 0x16c]
mov esi, dword [rdi + 0x168]
mov r9, qword [rbp - 0x39]
movzx ecx, byte [rdi + 0x174]
imul eax, r12d
shl esi, 2
add rax, r9
add rsi, rax
sub ecx, 1
je 0x1800e1a66
cmp ecx, 1
jne 0x1800e1aa4
test r15d, r15d
jle 0x1800e1aa4
mov eax, dword [rbp - 0x49]
mov rcx, r9
sub r14, rax
mov r8d, eax
mov rdx, r14
call fcn.180180990
jmp 0x1800e1aa4
mov r14d, r13d
cmp dword [rdi + 0x164], r13d
jbe 0x1800e1aa4
mov r15d, r12d
nop word [rax + rax]
mov r8d, dword [rdi + 0x160]
xor edx, edx
shl r8d, 2
mov rcx, rsi
call fcn.180180df0
add rsi, r15
inc r14d
cmp r14d, dword [rdi + 0x164]
jb 0x1800e1a80
mov r14d, dword [rbp - 0x45]
mov r9, qword [rbp - 0x19]
inc r14d
mov r15, qword [rbp - 1]
add r9, 2
cmp r14d, dword [rbp - 0x3d]
mov dword [rbp - 0x45], r14d
mov r14, qword [rbp - 0x39]
mov qword [rbp - 0x19], r9
jge 0x1800e1ad2
mov r10, qword [rbp - 9]
jmp 0x1800e170a
mov rcx, r14
call fcn.1801831e8
mov rcx, qword [rbp - 0x31]
call fcn.1801831e8
mov rax, qword [rbp + 7]
jmp 0x1800e1b00
mov rdx, rcx
mov rcx, rbx
call fcn.18011d360
mov rax, qword [rbp - 0x31]
mov dword [r15 + 0x18], 1
mov rcx, qword [rbp - 0x11]
mov qword [r15], rax
call fcn.1801831e8
mov rdx, rdi
mov rcx, rbx
call fcn.18011d450
test rbx, rbx
je 0x1800e1b7e
test rdi, rdi
je 0x1800e1b6a
mov r9d, 0xffffffff
mov qword [rbp - 0x29], r13
mov r8d, 0x7fff
mov rdx, rdi
mov rcx, rbx
call fcn.18011ea00
xor edx, edx
mov r8d, 0x178
mov rcx, rdi
call fcn.180180df0
mov rax, qword [rbx + 0x440]
test rax, rax
je 0x1800e1b62
mov rdx, rdi
mov rcx, rbx
call rax
jmp 0x1800e1b6a
mov rcx, rdi
call fcn.1801831e8
mov rcx, rbx
mov qword [rbp - 0x21], r13
call fcn.18011d950
mov rcx, rbx
call fcn.180124f90
mov rax, r15
jmp 0x1800e14a3
lea rdx, str.png_read_frame_head__:_out_of_place_IDAT
mov rcx, rbx
call fcn.18011c380
int3
lea rdx, str.png_read_frame_head__:_out_of_place_fdAT
mov rcx, rbx
call fcn.18011c380
int3
lea rdx, str.attempt_to_png_read_frame_head___but_no_acTL_present
mov rcx, rbx
call fcn.18011c380
int3