Function at 0x1400f7d10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1390]
mov eax, 0x1490
call fcn.14012b0b0
sub rsp, rax
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x1380], rax
mov r15, rcx
mov byte [rsp + 0x40], 0
xor ecx, ecx
mov dword [rsp + 0x48], 1
xor r14b, r14b
mov dword [rsp + 0x4c], ecx
xor eax, eax
mov dword [rsp + 0x54], ecx
mov rbx, qword [r15]
mov r12d, ecx
mov r13d, ecx
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], ecx
mov qword [r15 + 0x10], rcx
mov qword [r15 + 8], rcx
mov qword [r15 + 0x18], rcx
mov byte [rsp + 0x41], r14b
mov byte [rsp + 0x44], r14b
mov r14d, ecx
mov rcx, rbx
mov word [rsp + 0x45], ax
call fcn.1400f65c0
test eax, eax
je 0x1400f88f3
mov qword [rsp + 0x14c8], rsi
mov qword [rsp + 0x14d0], rdi
mov rcx, rbx
call fcn.1400efb80
mov rcx, rbx
mov esi, eax
call fcn.1400efb80
shl esi, 0x10
mov rcx, rbx
add esi, eax
mov dword [rsp + 0x60], esi
call fcn.1400efb80
mov rcx, rbx
mov edi, eax
call fcn.1400efb80
shl edi, 0x10
lea edx, [rdi + rax]
mov dword [rsp + 0x64], edx
mov rcx, qword [rsp + 0x60]
shr rcx, 0x20
cmp ecx, 0x49484452
ja 0x1400f81e3
je 0x1400f7f4a
cmp ecx, 0x43674249
je 0x1400f7ee7
cmp ecx, 0x49444154
je 0x1400f7e54
cmp ecx, 0x49454e44
jne 0x1400f81f7
cmp dword [rsp + 0x48], 0
jne 0x1400f88c5
mov rsi, qword [r15 + 8]
test rsi, rsi
jne 0x1400f849e
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.no_IDAT
jmp 0x1400f88d8
cmp dword [rsp + 0x48], 0
jne 0x1400f88c5
cmp byte [rsp + 0x40], 0
je 0x1400f7e6f
test r12d, r12d
je 0x1400f8715
mov eax, dword [rsp + 0x4c]
lea edi, [rsi + rax]
cmp edi, eax
jl 0x1400f88e1
cmp edi, r14d
jbe 0x1400f7ec5
test r14d, r14d
jne 0x1400f7e95
mov r14d, 0x1000
cmp esi, r14d
cmova r14d, esi
cmp edi, r14d
jbe 0x1400f7ea8
nop word [rax + rax]
add r14d, r14d
cmp edi, r14d
ja 0x1400f7ea0
mov rcx, qword [r15 + 8]
mov edx, r14d
call fcn.1402899e0
test rax, rax
je 0x1400f872d
mov qword [r15 + 8], rax
mov eax, dword [rsp + 0x4c]
mov edx, eax
mov r8d, esi
add rdx, qword [r15 + 8]
mov rcx, rbx
call fcn.1400efab0
test eax, eax
je 0x1400f8745
mov dword [rsp + 0x4c], edi
jmp 0x1400f8489
mov dword [rsp + 0x50], 1
test esi, esi
jns 0x1400f7f06
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400f8489
cmp qword [rbx + 0x10], 0
je 0x1400f7f3b
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, esi
jge 0x1400f7f3b
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 0x1400f8489
movsxd rax, esi
add qword [rbx + 0xb8], rax
jmp 0x1400f8489
cmp dword [rsp + 0x48], 0
je 0x1400f8805
mov dword [rsp + 0x48], 0
cmp esi, 0xd
jne 0x1400f87ed
mov rcx, rbx
call fcn.1400efb80
mov rcx, rbx
mov edi, eax
call fcn.1400efb80
shl edi, 0x10
add eax, edi
mov dword [rbx], eax
cmp eax, 0x1000000
ja 0x1400f81af
mov rcx, rbx
call fcn.1400efb80
mov rcx, rbx
mov edi, eax
call fcn.1400efb80
shl edi, 0x10
lea ecx, [rax + rdi]
mov dword [rbx + 4], ecx
cmp ecx, 0x1000000
ja 0x1400f81af
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x1400f7fd0
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f7ff6
cmp dword [rbx + 0x30], 0
je 0x1400f7ff4
mov rcx, rbx
call fcn.1400ef9e0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f7ff6
xor cl, cl
movzx eax, cl
mov dword [r15 + 0x20], eax
cmp eax, 0x10
ja 0x1400f87d5
mov ecx, 0x10116
bt ecx, eax
jae 0x1400f87d5
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x1400f8033
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f8059
cmp dword [rbx + 0x30], 0
je 0x1400f8057
mov rcx, rbx
call fcn.1400ef9e0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f8059
xor cl, cl
movzx edi, cl
mov dword [rsp + 0x58], edi
cmp edi, 6
ja 0x1400f875d
cmp edi, 3
jne 0x1400f8084
cmp dword [r15 + 0x20], 0x10
je 0x1400f875d
movzx esi, dil
mov byte [rsp + 0x40], dil
jmp 0x1400f8093
test dil, 1
jne 0x1400f875d
movzx esi, byte [rsp + 0x40]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jb 0x1400f80b8
cmp dword [rbx + 0x30], 0
je 0x1400f80cd
mov rcx, rbx
call fcn.1400ef9e0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
test cl, cl
jne 0x1400f8775
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jb 0x1400f80f2
cmp dword [rbx + 0x30], 0
je 0x1400f8107
mov rcx, rbx
call fcn.1400ef9e0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
test cl, cl
jne 0x1400f878d
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x1400f8126
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f814c
cmp dword [rbx + 0x30], 0
je 0x1400f814a
mov rcx, rbx
call fcn.1400ef9e0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f814c
xor cl, cl
movzx r13d, cl
mov dword [rsp + 0x54], r13d
cmp r13d, 1
ja 0x1400f87bd
mov r10d, dword [rbx]
test r10d, r10d
je 0x1400f87a5
mov r9d, dword [rbx + 4]
test r9d, r9d
je 0x1400f87a5
xor edx, edx
test sil, sil
jne 0x1400f81c7
mov r8d, edi
mov eax, edi
and eax, 2
shr r8d, 2
or eax, 1
and r8d, 1
add r8d, eax
mov eax, 0x40000000
div r10d
xor edx, edx
mov dword [rbx + 8], r8d
div r8d
cmp eax, r9d
jae 0x1400f8489
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, [0x14035a8a8]
jmp 0x1400f88d8
mov eax, 0x40000000
mov dword [rbx + 8], 1
div r10d
shr eax, 2
cmp eax, r9d
jb 0x1400f81af
jmp 0x1400f8489
cmp ecx, 0x504c5445
je 0x1400f834f
cmp ecx, 0x74524e53
je 0x1400f821b
cmp dword [rsp + 0x48], 0
jne 0x1400f88c5
bt edx, 0x1d
jae 0x1400f881d
mov edx, esi
mov rcx, rbx
call fcn.1400efa50
jmp 0x1400f8489
cmp dword [rsp + 0x48], 0
jne 0x1400f88c5
cmp qword [r15 + 8], 0
jne 0x1400f889b
cmp byte [rsp + 0x40], 0
je 0x1400f82b6
test r12d, r12d
je 0x1400f8871
cmp esi, r12d
ja 0x1400f885c
mov byte [rsp + 0x40], 4
test esi, esi
je 0x1400f8489
lea rdi, [rbp + 0xf83]
nop
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x1400f827f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f82a5
cmp dword [rbx + 0x30], 0
je 0x1400f82a3
mov rcx, rbx
call fcn.1400ef9e0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f82a5
xor cl, cl
mov byte [rdi], cl
add rdi, 4
sub rsi, 1
jne 0x1400f8260
jmp 0x1400f8489
mov ecx, dword [rbx + 8]
test cl, 1
je 0x1400f8886
lea eax, [rcx + rcx]
cmp esi, eax
jne 0x1400f885c
xor esi, esi
mov byte [rsp + 0x41], 1
cmp dword [r15 + 0x20], 0x10
jne 0x1400f830b
test ecx, ecx
jle 0x1400f8489
lea rdi, [rbp + 0xf70]
nop word [rax + rax]
mov rcx, rbx
call fcn.1400efb80
inc esi
mov word [rdi], ax
lea rdi, [rdi + 2]
cmp esi, dword [rbx + 8]
jl 0x1400f82f0
jmp 0x1400f8489
test ecx, ecx
jle 0x1400f8489
lea rdi, [rsp + 0x44]
lea r13, [0x14033fa90]
nop
mov rcx, rbx
call fcn.1400efb80
movsxd rcx, dword [r15 + 0x20]
lea rdi, [rdi + 1]
movzx eax, al
inc esi
movzx edx, byte [rcx + r13]
imul eax, edx
mov byte [rdi - 1], al
cmp esi, dword [rbx + 8]
jl 0x1400f8320
mov r13d, dword [rsp + 0x54]
jmp 0x1400f8489
cmp dword [rsp + 0x48], 0
jne 0x1400f88c5
cmp esi, 0x300
ja 0x1400f88b0
mov eax, 0xaaaaaaab
mul esi
mov r12d, edx
shr r12d, 1
lea eax, [r12 + r12*2]
cmp eax, esi
jne 0x1400f88b0
test r12d, r12d
je 0x1400f8489
lea rdi, [rbp + 0xf82]
mov esi, r12d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x1400f83bf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f83e5
cmp dword [rbx + 0x30], 0
je 0x1400f83e3
mov rcx, rbx
call fcn.1400ef9e0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f83e5
xor cl, cl
mov rax, qword [rbx + 0xb8]
mov byte [rdi - 2], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400f8407
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f842d
cmp dword [rbx + 0x30], 0
je 0x1400f842b
mov rcx, rbx
call fcn.1400ef9e0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f842d
xor cl, cl
mov rax, qword [rbx + 0xb8]
mov byte [rdi - 1], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400f844f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f8475
cmp dword [rbx + 0x30], 0
je 0x1400f8473
mov rcx, rbx
call fcn.1400ef9e0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f8475
xor cl, cl
mov byte [rdi], cl
mov byte [rdi + 1], 0xff
add rdi, 4
sub rsi, 1
jne 0x1400f83a0
mov rcx, rbx
call fcn.1400efb80
mov rcx, rbx
call fcn.1400efb80
jmp 0x1400f7db2
mov edi, dword [r15 + 0x20]
imul edi, dword [rbx]
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.140280918
mov r12d, dword [rsp + 0x50]
mov rcx, rax
test rax, rax
jne 0x1400f84d1
xor esi, esi
jmp 0x1400f8527
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.1400f6470
test eax, eax
je 0x1400f851e
mov edi, dword [rbp - 0x78]
sub edi, dword [rbp - 0x70]
mov rax, qword [rbp - 0x70]
jmp 0x1400f852a
mov rcx, qword [rbp - 0x70]
call fcn.1402804a8
mov rax, rsi
mov qword [r15 + 0x10], rax
test rax, rax
je 0x1400f88e1
mov rcx, qword [r15 + 8]
call fcn.1402804a8
mov qword [r15 + 8], rsi
mov eax, dword [rbx + 8]
movzx esi, byte [rsp + 0x40]
cmp eax, 3
jne 0x1400f8556
test sil, sil
je 0x1400f8563
movzx r14d, byte [rsp + 0x41]
test r14b, r14b
je 0x1400f856b
jmp 0x1400f8569
movzx r14d, byte [rsp + 0x41]
inc eax
mov dword [rbx + 0xc], eax
mov r8d, edi
mov eax, dword [rsp + 0x58]
mov rcx, r15
mov r9d, dword [rbx + 0xc]
mov rdx, qword [r15 + 0x10]
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x20]
mov dword [rsp + 0x20], eax
call fcn.1400f7760
test eax, eax
je 0x1400f88e1
test r14b, r14b
je 0x1400f869f
mov rax, qword [r15]
mov rcx, qword [r15 + 0x18]
mov edx, dword [rax + 4]
imul edx, dword [rax]
cmp dword [r15 + 0x20], 0x10
jne 0x1400f8638
cmp dword [rbx + 0xc], 2
jne 0x1400f85f3
xor edi, edi
test edx, edx
je 0x1400f86a1
movzx r8d, word [rbp + 0xf70]
cmp word [rcx], r8w
lea rcx, [rcx + 4]
mov eax, 0xffff
cmove ax, di
mov word [rcx - 2], ax
sub rdx, 1
jne 0x1400f85d3
jmp 0x1400f86a1
test edx, edx
je 0x1400f869f
mov r8, qword [rbp + 0xf72]
movzx r9d, word [rbp + 0xf70]
mov eax, edx
mov rdx, qword [rbp + 0xf74]
xor edi, edi
cmp word [rcx], r9w
jne 0x1400f862c
cmp word [rcx + 2], r8w
jne 0x1400f862c
cmp word [rcx + 4], dx
jne 0x1400f862c
mov word [rcx + 6], di
add rcx, 8
sub rax, 1
jne 0x1400f8613
jmp 0x1400f86a1
cmp dword [rbx + 0xc], 2
jne 0x1400f866a
xor edi, edi
test edx, edx
je 0x1400f86a1
movzx r8d, byte [rsp + 0x44]
nop word [rax + rax]
cmp byte [rcx], r8b
lea rcx, [rcx + 2]
mov eax, 0xff
cmove eax, edi
mov byte [rcx - 1], al
sub rdx, 1
jne 0x1400f8650
jmp 0x1400f86a1
test edx, edx
je 0x1400f869f
movzx r8d, byte [rsp + 0x45]
movzx r9d, byte [rsp + 0x44]
mov eax, edx
movzx edx, byte [rsp + 0x46]
cmp byte [rcx], r9b
jne 0x1400f8695
cmp byte [rcx + 1], r8b
jne 0x1400f8695
cmp byte [rcx + 2], dl
jne 0x1400f8695
mov byte [rcx + 3], 0
add rcx, 4
sub rax, 1
jne 0x1400f8681
xor edi, edi
test r12d, r12d
je 0x1400f86bd
cmp dword [0x14045ff08], 0
je 0x1400f86bd
cmp dword [rbx + 0xc], 2
jle 0x1400f86bd
mov rcx, r15
call fcn.1400f7c20
test sil, sil
je 0x1400f86ee
movzx eax, sil
lea rdx, [rbp + 0xf80]
mov r9d, 4
mov dword [rbx + 8], eax
mov rcx, r15
mov dword [rbx + 0xc], 4
call fcn.1400f7ac0
test eax, eax
jne 0x1400f86f6
jmp 0x1400f88e1
test r14b, r14b
je 0x1400f86f6
inc dword [rbx + 8]
mov rcx, qword [r15 + 0x10]
call fcn.1402804a8
mov rcx, rbx
mov qword [r15 + 0x10], rdi
call fcn.1400efc30
mov eax, 1
jmp 0x1400f88e3
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.no_PLTE
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofdata
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_ctype
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_comp_method
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_filter_method
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.0_pixel_image
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_interlace_method
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.1_2_4_8_16_bit_only
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_IHDR_len
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.multiple_IHDR
jmp 0x1400f88d8
mov eax, edx
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, edx
shr eax, 0x10
mov byte [0x140455ca1], al
movzx eax, byte [rsp + 0x64]
mov byte [0x140455ca3], al
mov rax, qword gs:[0x58]
shr edx, 8
mov byte [0x140455ca2], dl
mov rcx, qword [rax]
lea rax, str.XXXX_PNG_chunk_not_known
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_tRNS_len
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.tRNS_before_PLTE
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.tRNS_with_alpha
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.tRNS_after_IDAT
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid_PLTE
jmp 0x1400f88d8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.first_not_IHDR
mov edx, reloc.WS2_32.dll_recv
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x14c8]
mov rdi, qword [rsp + 0x14d0]
mov rcx, qword [rbp + 0x1380]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x14d8]
add rsp, 0x1490
pop r15
pop r14
pop r13
pop r12
pop rbp
ret