Function at 0x1800e1300
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 [0x180267080]
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.180180ba0
test eax, eax
jne 0x1800e1411
call fcn.18011c8a0
mov rcx, rax
mov qword [rbp - 0x21], rax
mov rbx, rax
call fcn.18011e890
mov rcx, rbx
mov qword [rbp - 0x29], rax
call fcn.18011c690
mov rcx, rax
mov rdx, rsp
call fcn.1801ac870
mov rbx, qword [rbp - 0x21]
test eax, eax
je 0x1800e1440
test rbx, rbx
je 0x1800e1411
mov rdi, qword [rbp - 0x29]
xor r13d, r13d
test rdi, rdi
je 0x1800e13fd
lea r9d, [r13 - 1]
mov qword [rbp - 0x29], r13
mov r8d, 0x7fff
mov rdx, rdi
mov rcx, rbx
call fcn.18011e970
xor edx, edx
mov r8d, 0x178
mov rcx, rdi
call fcn.180180610
mov rax, qword [rbx + 0x440]
test rax, rax
je 0x1800e13f5
mov rdx, rdi
mov rcx, rbx
call rax
jmp 0x1800e13fd
mov rcx, rdi
call fcn.180182a08
mov rcx, rbx
mov qword [rbp - 0x21], r13
call fcn.18011d8c0
mov rcx, rbx
call fcn.180124f00
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18017df00
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 0x1800e1493
mov rax, qword [rbp + 0xf]
mov qword [rbx + 0x140], rax
lea rax, [0x1800e12b0]
mov qword [rbx + 0x138], rax
cmp qword [rbx + 0x130], r13
je 0x1800e1480
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.18011c320
mov qword [rbx + 0x2b0], r13
test rbx, rbx
je 0x1800e1493
mov byte [rbx + 0x28d], 8
cmp byte [rbx + 0x288], 8
mov rdi, qword [rbp - 0x29]
jb 0x1800e14af
cmp byte [rbx + 0x287], 3
je 0x1800e14af
test byte [rdi + 8], 0x10
je 0x1800e14b7
mov rcx, rbx
call fcn.180117ca0
mov edx, 0xff
mov r8d, 1
mov rcx, rbx
call fcn.18011dc00
mov eax, dword [rbx + 0x16c]
bt eax, 0xf
jae 0x1800e14e0
bts eax, 0x18
mov dword [rbx + 0x16c], eax
cmp byte [rbx + 0x284], r13b
je 0x1800e14f2
or eax, 2
mov dword [rbx + 0x16c], eax
mov rcx, rbx
call fcn.180117cf0
mov rcx, rbx
call fcn.180117c50
mov rdx, rdi
mov rcx, rbx
call fcn.18011c930
mov rdx, rdi
mov rcx, rbx
call fcn.18011ce10
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.180183178
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.180183178
mov r8d, r14d
mov qword [rbp - 0x31], rax
xor edx, edx
mov rcx, rax
call fcn.180180610
mov rcx, 0xffffffffffffffff
mov eax, 8
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.180183178
mov qword [rbp - 0x11], rax
mov rcx, rax
mov r8d, r13d
test esi, esi
jle 0x1800e15da
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 0x1800e15c0
test rdi, rdi
je 0x1800e1a59
mov eax, dword [rdi + 8]
and eax, 0x10000
je 0x1800e1a59
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.180183178
mov rcx, r14
mov qword [rbp + 7], rax
call fcn.180183178
mov r8d, dword [rbp - 0x49]
xor edx, edx
mov rcx, rax
mov qword [rbp - 0x39], rax
mov r14, rax
call fcn.180180610
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.180183178
mov qword [rbp - 9], rax
mov r10, rax
mov qword [r15 + 8], rax
mov dword [rbp - 0x45], r13d
test esi, esi
jle 0x1800e1a42
mov r9, r13
mov qword [rbp - 0x19], r13
mov eax, dword [rbx + 0x164]
mov r11d, 0x3e8
bt eax, 0x10
jae 0x1800e1b16
cmp dword [rbx + 0x410], r13d
je 0x1800e178b
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.1801251d0
mov esi, eax
mov eax, dword [rbx + 0x238]
cmp eax, 0x49444154
jne 0x1800e16f9
test r14b, r14b
jne 0x1800e1af6
cmp dword [rbx + 0x410], 1
ja 0x1800e1af6
mov edx, esi
mov rcx, rbx
call fcn.180125410
jmp 0x1800e16c0
mov rcx, rbx
cmp eax, 0x6663544c
jne 0x1800e1713
mov r8d, esi
mov rdx, rdi
call fcn.180129ad0
mov r14b, 1
jmp 0x1800e16c0
cmp eax, 0x66644154
jne 0x1800e173c
mov edx, esi
call fcn.180129e00
test r14b, r14b
jne 0x1800e1757
cmp dword [rbx + 0x410], 1
jbe 0x1800e1757
lea edx, [rsi - 4]
mov rcx, rbx
call fcn.180125410
jmp 0x1800e16c0
lea rdx, str.Skipped__ignored__a_chunk_between_APNG_chunks
call fcn.18011c320
mov edx, esi
mov rcx, rbx
call fcn.180125410
jmp 0x1800e16c0
mov ecx, dword [rbx + 0x164]
bt ecx, 0x11
jae 0x1800e1b06
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.18011e2b0
test eax, eax
je 0x1800e180c
movzx edx, word [rdi + 0x172]
movzx ecx, word [rdi + 0x170]
test dx, dx
je 0x1800e1805
cmp dx, 0x64
je 0x1800e1805
mov r8, qword [r15 + 8]
add r8, r9
cmp dx, 0xa
jne 0x1800e17d9
movzx eax, cx
shl ax, 2
add cx, ax
add cx, cx
mov word [r8], cx
jmp 0x1800e1811
movzx r9d, cx
cmp dx, r11w
jne 0x1800e17f4
mov eax, 0xcccccccd
mul r9d
shr edx, 3
mov word [r8], dx
jmp 0x1800e1811
movzx ecx, dx
xor edx, edx
imul eax, r9d, 0x64
div ecx
mov word [r8], ax
jmp 0x1800e1811
mov word [r9 + r10], cx
jmp 0x1800e1811
mov word [r9 + r10], r13w
mov rdx, qword [rbp - 0x11]
mov rcx, rbx
call fcn.18011d2d0
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 0x1800e1927
cmp ecx, 1
jne 0x1800e196c
mov r15d, r13d
cmp dword [rdi + 0x164], r13d
jbe 0x1800e196c
mov eax, dword [rdi + 0x160]
nop dword [rax + rax]
mov r9, rsi
mov r10, r14
mov r11d, r13d
test eax, eax
je 0x1800e190f
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 0x1800e1881
add rsi, r12
add r14, r12
inc r15d
cmp r15d, dword [rdi + 0x164]
jb 0x1800e1870
jmp 0x1800e1968
mov r15d, r13d
cmp dword [rdi + 0x164], r13d
jbe 0x1800e196c
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rdi + 0x160]
mov rdx, r14
shl r8d, 2
mov rcx, rsi
call fcn.1801801b0
add rsi, r12
add r14, r12
inc r15d
cmp r15d, dword [rdi + 0x164]
jb 0x1800e1940
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.1801801b0
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 0x1800e19d6
cmp ecx, 1
jne 0x1800e1a14
test r15d, r15d
jle 0x1800e1a14
mov eax, dword [rbp - 0x49]
mov rcx, r9
sub r14, rax
mov r8d, eax
mov rdx, r14
call fcn.1801801b0
jmp 0x1800e1a14
mov r14d, r13d
cmp dword [rdi + 0x164], r13d
jbe 0x1800e1a14
mov r15d, r12d
nop word [rax + rax]
mov r8d, dword [rdi + 0x160]
xor edx, edx
shl r8d, 2
mov rcx, rsi
call fcn.180180610
add rsi, r15
inc r14d
cmp r14d, dword [rdi + 0x164]
jb 0x1800e19f0
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 0x1800e1a42
mov r10, qword [rbp - 9]
jmp 0x1800e167a
mov rcx, r14
call fcn.180182a08
mov rcx, qword [rbp - 0x31]
call fcn.180182a08
mov rax, qword [rbp + 7]
jmp 0x1800e1a70
mov rdx, rcx
mov rcx, rbx
call fcn.18011d2d0
mov rax, qword [rbp - 0x31]
mov dword [r15 + 0x18], 1
mov rcx, qword [rbp - 0x11]
mov qword [r15], rax
call fcn.180182a08
mov rdx, rdi
mov rcx, rbx
call fcn.18011d3c0
test rbx, rbx
je 0x1800e1aee
test rdi, rdi
je 0x1800e1ada
mov r9d, 0xffffffff
mov qword [rbp - 0x29], r13
mov r8d, 0x7fff
mov rdx, rdi
mov rcx, rbx
call fcn.18011e970
xor edx, edx
mov r8d, 0x178
mov rcx, rdi
call fcn.180180610
mov rax, qword [rbx + 0x440]
test rax, rax
je 0x1800e1ad2
mov rdx, rdi
mov rcx, rbx
call rax
jmp 0x1800e1ada
mov rcx, rdi
call fcn.180182a08
mov rcx, rbx
mov qword [rbp - 0x21], r13
call fcn.18011d8c0
mov rcx, rbx
call fcn.180124f00
mov rax, r15
jmp 0x1800e1413
lea rdx, str.png_read_frame_head__:_out_of_place_IDAT
mov rcx, rbx
call fcn.18011c2f0
int3
lea rdx, str.png_read_frame_head__:_out_of_place_fdAT
mov rcx, rbx
call fcn.18011c2f0
int3
lea rdx, str.attempt_to_png_read_frame_head___but_no_acTL_present
mov rcx, rbx
call fcn.18011c2f0
int3