Function at 0x1801ac600
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 - 0x1380]
mov eax, 0x1480
call fcn.1801c83e0
sub rsp, rax
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rbp + 0x1370], rax
mov rbx, qword [rcx]
xor edx, edx
xor r14b, r14b
mov qword [rcx + 0x10], rdx
mov r13, rcx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x18], rdx
mov r15d, edx
mov byte [rsp + 0x41], r14b
mov rcx, rbx
mov r14d, 1
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x48], r14d
mov r12d, edx
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x5c], edx
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x54], edx
call fcn.1801ab2e0
test eax, eax
je 0x1801ad05e
mov rcx, rbx
call fcn.1801a6250
mov rcx, rbx
mov esi, eax
call fcn.1801a6250
shl esi, 0x10
mov rcx, rbx
add esi, eax
mov dword [rsp + 0x60], esi
call fcn.1801a6250
mov rcx, rbx
mov edi, eax
call fcn.1801a6250
shl edi, 0x10
lea edx, [rdi + rax]
mov dword [rsp + 0x64], edx
mov rcx, qword [rsp + 0x60]
shr rcx, 0x20
cmp ecx, 0x49484452
ja 0x1801aca99
je 0x1801ac84a
cmp ecx, 0x43674249
je 0x1801ac7e7
cmp ecx, 0x49444154
je 0x1801ac75a
cmp ecx, 0x49454e44
jne 0x1801acaad
test r14d, r14d
jne 0x1801ad05e
mov rsi, qword [r13 + 8]
test rsi, rsi
je 0x1801ad05e
mov edi, dword [rbx]
mov r15d, dword [rsp + 0x50]
imul edi, r15d
add edi, 7
shr edi, 3
imul edi, dword [rbx + 8]
inc edi
imul edi, dword [rbx + 4]
movsxd r14, edi
mov rcx, r14
call fcn.1801d17e4
mov r12d, dword [rsp + 0x54]
mov rcx, rax
test rax, rax
jne 0x1801acd2d
xor esi, esi
jmp 0x1801acd83
test r14d, r14d
jne 0x1801ad05e
cmp byte [rsp + 0x40], r14b
je 0x1801ac773
test r12d, r12d
je 0x1801ad05e
mov eax, dword [rsp + 0x4c]
lea edi, [rsi + rax]
cmp edi, eax
jl 0x1801ad05e
cmp edi, r15d
jbe 0x1801ac7c5
test r15d, r15d
jne 0x1801ac799
mov r15d, 0x1000
cmp esi, r15d
cmova r15d, esi
cmp edi, r15d
jbe 0x1801ac7a8
nop
add r15d, r15d
cmp edi, r15d
ja 0x1801ac7a0
mov rcx, qword [r13 + 8]
mov edx, r15d
call fcn.1801d17ec
test rax, rax
je 0x1801ad05e
mov qword [r13 + 8], rax
mov eax, dword [rsp + 0x4c]
mov edx, eax
mov r8d, esi
add rdx, qword [r13 + 8]
mov rcx, rbx
call fcn.1801a6180
test eax, eax
je 0x1801ad05e
mov dword [rsp + 0x4c], edi
jmp 0x1801acd18
mov dword [rsp + 0x54], 1
test esi, esi
jns 0x1801ac806
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1801acd18
cmp qword [rbx + 0x10], 0
je 0x1801ac83b
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, esi
jge 0x1801ac83b
mov rax, qword [rbx + 0xc0]
sub esi, ecx
mov rcx, qword [rbx + 0x28]
mov edx, esi
mov qword [rbx + 0xb8], rax
call qword [rbx + Ordinal_26]
jmp 0x1801acd18
movsxd rax, esi
add qword [rbx + 0xb8], rax
jmp 0x1801acd18
test r14d, r14d
je 0x1801ad05e
mov dword [rsp + 0x48], 0
cmp esi, 0xd
jne 0x1801ad05e
mov rcx, rbx
call fcn.1801a6250
mov rcx, rbx
mov edi, eax
call fcn.1801a6250
shl edi, 0x10
add eax, edi
mov dword [rbx], eax
cmp eax, 0x1000000
ja 0x1801ad05e
mov rcx, rbx
call fcn.1801a6300
mov dword [rbx + 4], eax
cmp eax, 0x1000000
ja 0x1801ad05e
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x1801ac8bd
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1801ac8e3
cmp dword [rbx + 0x30], 0
je 0x1801ac8e1
mov rcx, rbx
call fcn.1801a60b0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1801ac8e3
xor cl, cl
movzx ecx, cl
mov dword [rsp + 0x50], ecx
cmp ecx, 8
ja 0x1801ad05e
mov edx, 0x116
bt edx, ecx
jae 0x1801ad05e
cmp rax, qword [rbx + 0xc0]
jae 0x1801ac919
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1801ac93f
cmp dword [rbx + 0x30], 0
je 0x1801ac93d
mov rcx, rbx
call fcn.1801a60b0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1801ac93f
xor cl, cl
movzx edi, cl
mov dword [rsp + 0x5c], edi
cmp edi, 6
ja 0x1801ad05e
cmp edi, 3
jne 0x1801ac95f
movzx esi, dil
mov byte [rsp + 0x40], dil
jmp 0x1801ac96e
test dil, 1
jne 0x1801ad05e
movzx esi, byte [rsp + 0x40]
cmp rax, qword [rbx + 0xc0]
jb 0x1801ac98c
cmp dword [rbx + 0x30], 0
je 0x1801ac9a1
mov rcx, rbx
call fcn.1801a60b0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
test cl, cl
jne 0x1801ad05e
cmp rax, qword [rbx + 0xc0]
jb 0x1801ac9bf
cmp dword [rbx + 0x30], 0
je 0x1801ac9d4
mov rcx, rbx
call fcn.1801a60b0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
test cl, cl
jne 0x1801ad05e
cmp rax, qword [rbx + 0xc0]
jae 0x1801ac9ec
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1801aca12
cmp dword [rbx + 0x30], 0
je 0x1801aca10
mov rcx, rbx
call fcn.1801a60b0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1801aca12
xor cl, cl
movzx r14d, cl
mov dword [rsp + 0x58], r14d
cmp r14d, 1
ja 0x1801ad05e
mov ecx, dword [rbx]
test ecx, ecx
je 0x1801ad05e
mov r9d, dword [rbx + 4]
test r9d, r9d
je 0x1801ad05e
xor edx, edx
mov eax, 0x40000000
div ecx
test sil, sil
jne 0x1801aca7c
xor edx, edx
mov r8d, edi
shr r8d, 2
mov ecx, edi
and ecx, 2
and r8d, 1
or ecx, 1
add r8d, ecx
div r8d
mov dword [rbx + 8], r8d
cmp eax, r9d
jb 0x1801ad05e
mov r14d, dword [rsp + 0x48]
jmp 0x1801acd18
shr eax, 2
mov dword [rbx + 8], 1
cmp eax, r9d
jb 0x1801ad05e
mov r14d, dword [rsp + 0x48]
jmp 0x1801acd18
cmp ecx, 0x504c5445
je 0x1801acbd2
cmp ecx, 0x74524e53
je 0x1801acacf
test r14d, r14d
jne 0x1801ad05e
bt edx, 0x1d
jae 0x1801ad034
mov edx, esi
mov rcx, rbx
call fcn.1801a6120
jmp 0x1801acd18
test r14d, r14d
jne 0x1801ad05e
cmp qword [r13 + 8], 0
jne 0x1801ad05e
cmp byte [rsp + 0x40], r14b
je 0x1801acb6e
test r12d, r12d
je 0x1801ad05e
cmp esi, r12d
ja 0x1801ad05e
xor edi, edi
mov byte [rsp + 0x40], 4
test esi, esi
je 0x1801acd18
nop
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x1801acb2f
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1801acb55
cmp dword [rbx + 0x30], 0
je 0x1801acb53
mov rcx, rbx
call fcn.1801a60b0
mov rax, qword [rbx + 0xb8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1801acb55
xor dl, dl
lea eax, [rdi*4 + 3]
inc edi
mov byte [rbp + rax + 0xf70], dl
cmp edi, esi
jb 0x1801acb10
jmp 0x1801acd18
mov ecx, dword [rbx + 8]
test cl, 1
je 0x1801ad05e
lea eax, [rcx + rcx]
cmp esi, eax
jne 0x1801ad05e
xor esi, esi
mov byte [rsp + 0x41], 1
test ecx, ecx
jle 0x1801acd18
movsxd r14, dword [rsp + 0x50]
lea rcx, [0x18024c268]
add r14, rcx
lea rdi, [rsp + 0x44]
mov rcx, rbx
call fcn.1801a6250
movzx ecx, byte [r14]
lea rdi, [rdi + 1]
movzx edx, al
inc esi
imul edx, ecx
mov byte [rdi - 1], dl
cmp esi, dword [rbx + 8]
jl 0x1801acba8
mov r14d, dword [rsp + 0x48]
jmp 0x1801acd18
test r14d, r14d
jne 0x1801ad05e
cmp esi, 0x300
ja 0x1801ad05e
mov eax, 0xaaaaaaab
mul esi
mov r12d, edx
shr r12d, 1
lea eax, [r12 + r12*2]
cmp eax, esi
jne 0x1801ad05e
xor esi, esi
test r12d, r12d
je 0x1801acd18
mov r8, qword [rbx + 0xb8]
mov rdx, qword [rbx + 0xc0]
cmp r8, rdx
jae 0x1801acc2e
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x1801acc5c
cmp dword [rbx + 0x30], 0
je 0x1801acc5a
mov rcx, rbx
call fcn.1801a60b0
mov rax, qword [rbx + 0xb8]
mov rdx, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x1801acc5c
xor cl, cl
lea edi, [rsi*4]
mov byte [rbp + rdi + 0xf70], cl
cmp r8, rdx
jae 0x1801acc7f
movzx r9d, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x1801accaf
cmp dword [rbx + 0x30], 0
je 0x1801accac
mov rcx, rbx
call fcn.1801a60b0
mov rax, qword [rbx + 0xb8]
mov rdx, qword [rbx + 0xc0]
movzx r9d, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x1801accaf
xor r9b, r9b
lea eax, [rdi + 1]
mov byte [rbp + rax + 0xf70], r9b
cmp r8, rdx
jae 0x1801acccf
movzx edx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x1801accf6
cmp dword [rbx + 0x30], 0
je 0x1801accf4
mov rcx, rbx
call fcn.1801a60b0
mov rax, qword [rbx + 0xb8]
movzx edx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x1801accf6
xor dl, dl
lea eax, [rdi + 2]
inc esi
mov byte [rbp + rax + 0xf70], dl
lea eax, [rdi + 3]
mov ecx, eax
mov byte [rbp + rax + 0xf70], 0xff
cmp esi, r12d
jb 0x1801acc12
mov rcx, rbx
call fcn.1801a6250
mov rcx, rbx
call fcn.1801a6250
jmp 0x1801ac694
movsxd rax, dword [rsp + 0x4c]
add rax, rsi
mov qword [rsp + 0x70], rsi
xor esi, esi
mov qword [rsp + 0x78], rax
lea rax, [r14 + rcx]
mov qword [rbp - 0x70], rcx
mov edx, esi
mov qword [rbp - 0x78], rcx
test r12d, r12d
mov qword [rbp - 0x68], rax
lea rcx, [rsp + 0x70]
mov dword [rbp - 0x60], 1
sete dl
call fcn.1801ab020
test eax, eax
je 0x1801acd7a
mov edi, dword [rbp - 0x78]
sub edi, dword [rbp - 0x70]
mov rax, qword [rbp - 0x70]
jmp 0x1801acd86
mov rcx, qword [rbp - 0x70]
call fcn.1801cc408
mov rax, rsi
mov qword [r13 + 0x10], rax
test rax, rax
je 0x1801ad05e
mov rcx, qword [r13 + 8]
call fcn.1801cc408
mov qword [r13 + 8], rsi
mov eax, dword [rbx + 8]
movzx esi, byte [rsp + 0x40]
lea r9d, [rax + 1]
cmp r9d, 4
jne 0x1801acdbb
test sil, sil
je 0x1801ace4b
movzx r14d, byte [rsp + 0x41]
test r14b, r14b
jne 0x1801acdc9
mov r9d, eax
mov eax, dword [rsp + 0x58]
mov r8d, edi
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov rcx, r13
mov dword [rbx + 0xc], r9d
mov rdx, qword [r13 + 0x10]
mov dword [rsp + 0x20], r15d
call fcn.1801ac2d0
test eax, eax
je 0x1801ad05e
test r14b, r14b
je 0x1801ace8e
mov rax, qword [r13]
mov rcx, qword [r13 + 0x18]
mov edx, dword [rax + 4]
imul edx, dword [rax]
test edx, edx
je 0x1801ace8e
cmp dword [rbx + 0xc], 2
jne 0x1801ace56
movzx r8d, byte [rsp + 0x44]
xor r14d, r14d
nop dword [rax]
nop word [rax + rax]
cmp byte [rcx], r8b
lea rcx, [rcx + 2]
mov eax, 0xff
cmove eax, r14d
mov byte [rcx - 1], al
sub rdx, 1
jne 0x1801ace30
jmp 0x1801ace91
movzx r14d, byte [rsp + 0x41]
jmp 0x1801acdc9
movzx r8d, byte [rsp + 0x45]
movzx r9d, byte [rsp + 0x44]
mov eax, edx
movzx edx, byte [rsp + 0x46]
nop dword [rax]
cmp byte [rcx], r9b
jne 0x1801ace84
cmp byte [rcx + 1], r8b
jne 0x1801ace84
cmp byte [rcx + 2], dl
jne 0x1801ace84
mov byte [rcx + 3], 0
add rcx, 4
sub rax, 1
jne 0x1801ace70
xor r14d, r14d
test r12d, r12d
je 0x1801acf8a
cmp dword [0x1802f0d9c], 0
je 0x1801acf8a
cmp dword [rbx + 0xc], 2
jle 0x1801acf8a
mov rax, qword [r13]
mov r9, qword [r13 + 0x18]
mov ecx, dword [rax + 4]
imul ecx, dword [rax]
test ecx, ecx
je 0x1801acf8a
cmp dword [rax + 0xc], 3
jne 0x1801aceef
mov edx, ecx
nop
movzx ecx, byte [r9]
movzx eax, byte [r9 + 2]
mov byte [r9], al
mov byte [r9 + 2], cl
lea r9, [r9 + 3]
sub rdx, 1
jne 0x1801aced0
jmp 0x1801acf8a
cmp dword [0x1802f0dac], 0
je 0x1801acf67
mov edi, ecx
nop word [rax + rax]
movzx eax, byte [r9 + 3]
movzx ecx, byte [r9]
movzx r11d, byte [r9 + 2]
test al, al
je 0x1801acf4c
movzx r8d, al
xor edx, edx
movzx eax, byte [r9 + 1]
imul eax, eax, 0xff
div r8d
xor edx, edx
mov byte [r9 + 1], al
movzx eax, cl
imul eax, eax, 0xff
movzx ecx, r11b
div r8d
xor edx, edx
mov r10d, eax
imul eax, ecx, 0xff
div r8d
jmp 0x1801acf54
movzx r10d, cl
movzx eax, r11b
mov byte [r9], al
mov byte [r9 + 2], r10b
add r9, 4
sub rdi, 1
jne 0x1801acf00
jmp 0x1801acf8a
mov edx, ecx
nop dword [rax]
movzx ecx, byte [r9]
movzx eax, byte [r9 + 2]
mov byte [r9], al
mov byte [r9 + 2], cl
lea r9, [r9 + 4]
sub rdx, 1
jne 0x1801acf70
test sil, sil
je 0x1801ad020
mov dword [rbx + 0xc], 4
movzx eax, sil
mov dword [rbx + 8], eax
mov rax, qword [r13]
mov rbx, qword [r13 + 0x18]
mov edi, dword [rax + 4]
imul edi, dword [rax]
lea ecx, [rdi*4]
call fcn.1801d17e4
mov rsi, rax
test rax, rax
je 0x1801ad05e
test edi, edi
je 0x1801ad013
lea r8, [rax + 2]
mov r9d, edi
movzx edx, byte [rbx]
lea r8, [r8 + 4]
lea rbx, [rbx + 1]
movzx eax, byte [rbp + rdx*4 + 0xf70]
movzx ecx, byte [rbp + rdx*4 + 0xf73]
mov byte [r8 - 6], al
movzx eax, byte [rbp + rdx*4 + 0xf71]
mov byte [r8 - 5], al
movzx eax, byte [rbp + rdx*4 + 0xf72]
mov byte [r8 - 4], al
mov byte [r8 - 3], cl
sub r9, 1
jne 0x1801acfd2
mov rcx, qword [r13 + 0x18]
call fcn.1801cc408
mov qword [r13 + 0x18], rsi
mov rcx, qword [r13 + 0x10]
call fcn.1801cc408
mov eax, 1
mov qword [r13 + 0x10], r14
jmp 0x1801ad060
mov eax, edx
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, edx
shr eax, 0x10
mov byte [0x1802e9729], al
movzx eax, byte [rsp + 0x64]
shr edx, 8
mov byte [0x1802e972b], al
mov byte [0x1802e972a], dl
xor eax, eax
mov rcx, qword [rbp + 0x1370]
xor rcx, rsp
call fcn.1801c74b0
lea r11, [rsp + 0x1480]
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