Function at 0x1400bdac0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xbf0]
sub rsp, 0xcf0
mov rax, qword [0x1401b3658]
xor rax, rsp
mov qword [rbp + 0xbe0], rax
xor eax, eax
mov qword [rsp + 0x78], rcx
mov qword [rcx + 8], rax
mov r13, rcx
mov qword [rcx + 0x1c], rax
mov rbx, rdx
mov rcx, rdx
mov byte [rsp + 0x43], r8b
mov qword [rbp - 0x30], rdx
mov dword [rsp + 0x4c], eax
call fcn.1400edbc0
mov rcx, rbx
movzx edi, al
call fcn.1400edbc0
mov rcx, rbx
movzx r15d, al
call fcn.1400edbc0
mov rcx, rbx
movzx r12d, al
call fcn.1400edbc0
mov rcx, rbx
movsx r14d, al
call fcn.1400edbc0
mov rcx, rbx
movsx esi, al
call fcn.1400edbc0
cmp dil, 0x47
jne 0x1400be668
cmp r15b, 0x49
jne 0x1400be668
cmp r12b, 0x46
jne 0x1400be668
cmp r14b, 0x38
jne 0x1400bdb82
cmp sil, 0x39
jg 0x1400bdb82
cmp al, 0x61
je 0x1400bdba0
mov rdx, qword [rbx + 0x28]
lea rcx, str._s_is_version__c_c_c.
movsx eax, al
mov r9d, esi
mov r8d, r14d
mov dword [rsp + 0x20], eax
call qword [0x1401b2768]
mov rcx, rbx
call fcn.1400edcc0
movzx eax, ax
mov rcx, rbx
mov dword [rsp + 0x54], eax
call fcn.1400edcc0
movzx eax, ax
mov rcx, rbx
mov dword [rsp + 0x50], eax
call fcn.1400edbc0
cmp dword [rbx + 0x30], 0
movzx esi, al
mov byte [rsp + 0x4b], sil
je 0x1400bdbea
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x208
jmp 0x1400be647
xor edx, edx
lea rcx, [rbp + 0x8e0]
mov r8d, 0x300
call sub.VCRUNTIME140.dll_memset
test sil, sil
jns 0x1400bdc11
mov ecx, esi
mov edi, 2
and ecx, 7
shl edi, cl
jmp 0x1400bdc13
xor edi, edi
mov rcx, rbx
mov dword [rsp + 0x44], edi
call fcn.1400edbc0
mov rcx, rbx
mov byte [rsp + 0x49], al
call fcn.1400edbc0
cmp dword [rbx + 0x30], 0
je 0x1400bdc47
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x212
jmp 0x1400be647
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x41], 0
mov byte [rsp + 0x42], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0
test sil, sil
jns 0x1400bdcca
movsxd r12, edi
test edi, edi
jle 0x1400bdcca
xor r14d, r14d
lea r15, [rbp + 0x8e1]
nop dword [rax]
mov rcx, rbx
call fcn.1400edbc0
mov rcx, rbx
mov byte [rbp + r14 - 0x20], al
movzx esi, al
call fcn.1400edbc0
mov rcx, rbx
mov byte [rbp + r14 + 0xe0], al
movzx edi, al
call fcn.1400edbc0
mov byte [rbp + r14 + 0x1e0], al
inc r14
mov byte [r15 - 1], sil
mov byte [r15], dil
mov byte [r15 + 1], al
lea r15, [r15 + 3]
cmp r14, r12
jl 0x1400bdc80
cmp dword [rbx + 0x30], 0
je 0x1400bdce6
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x229
jmp 0x1400be647
mov edi, dword [rsp + 0x4c]
nop word [rax + rax]
mov rcx, rbx
call fcn.1400edbc0
cmp dword [rbx + 0x30], 0
movzx esi, al
jne 0x1400be636
xor r15d, r15d
mov dword [rbp - 0x78], r15d
cmp esi, 0x21
jne 0x1400bdea4
mov rcx, rbx
call fcn.1400edbc0
mov rcx, rbx
movzx esi, al
call fcn.1400edbc0
cmp dword [rbx + 0x30], 0
movzx r15d, al
jne 0x1400be55b
cmp sil, 0xf9
jne 0x1400bddae
cmp r15d, 4
jne 0x1400bde73
mov rcx, rbx
call fcn.1400edbc0
movzx r14d, al
mov rcx, rbx
mov eax, r14d
shr eax, 2
and eax, 7
mov dword [rsp + 0x68], eax
call fcn.1400edcc0
movzx eax, ax
mov rcx, rbx
mov dword [rsp + 0x58], eax
call fcn.1400edbc0
mov rcx, rbx
mov byte [rsp + 0x40], al
call fcn.1400edbc0
cmp dword [rbx + 0x30], 0
movzx r15d, al
jne 0x1400be519
movzx r12d, r14b
shr r14b, 1
and r12b, 1
and r14b, 1
mov byte [rsp + 0x41], r12b
mov byte [rsp + 0x42], r14b
jmp 0x1400be4da
cmp sil, 0xff
jne 0x1400bde5f
xor edx, edx
lea rcx, [rbp + 0x2e0]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
xor edi, edi
test r15d, r15d
je 0x1400bddea
mov rcx, rbx
call fcn.1400edbc0
mov byte [rbp + rdi + 0x2e0], al
inc rdi
cmp rdi, r15
jl 0x1400bddd3
mov rcx, rbx
call fcn.1400edbc0
cmp dword [rbx + 0x30], 0
movzx r15d, al
jne 0x1400be545
test al, al
je 0x1400bde30
lea rdi, [rbp + rdi + 0x2e0]
nop dword [rax]
mov rcx, rbx
call fcn.1400edbc0
mov byte [rdi], al
lea rdi, [rdi + 1]
sub r15d, 1
jne 0x1400bde10
mov rcx, rbx
call fcn.1400edbc0
movzx r15d, al
cmp dword [rbx + 0x30], 0
jne 0x1400be52f
mov edi, dword [rsp + 0x4c]
lea rax, [rbp + 0x2e0]
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x70]
mov rax, qword [r13]
mov rcx, r13
mov dword [rbp - 0x70], edi
call qword [rax + 0x68]
jmp 0x1400be4da
cmp sil, 0xfe
je 0x1400be4da
cmp sil, 1
je 0x1400be4da
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov r8d, esi
mov dword [rsp + 0x20], r15d
mov rdx, rdi
lea rcx, str._s:_unknown_GIF_extension_0x_02x_at_offset__ld__length___d
lea r9d, [rax - 3]
call qword [0x1401b2768]
mov edi, dword [rsp + 0x4c]
jmp 0x1400be4da
cmp esi, 0x2c
jne 0x1400be5e9
mov rcx, rbx
call fcn.1400edcc0
movzx eax, ax
mov rcx, rbx
mov dword [rsp + 0x6c], eax
call fcn.1400edcc0
movzx eax, ax
mov rcx, rbx
mov dword [rbp - 0x80], eax
call fcn.1400edcc0
movzx eax, ax
mov rcx, rbx
mov dword [rsp + 0x70], eax
call fcn.1400edcc0
movzx eax, ax
mov rcx, rbx
mov dword [rsp + 0x5c], eax
call fcn.1400edbc0
movzx ecx, al
mov byte [rsp + 0x4a], cl
cmp dword [rbx + 0x30], r15d
jne 0x1400be5d6
movzx eax, cl
shr al, 6
and al, 1
mov byte [rsp + 0x48], al
test cl, cl
jns 0x1400bdf9e
and ecx, 7
mov r12d, 2
shl r12d, cl
xor edx, edx
lea rcx, [rbp + 0x5e0]
mov dword [rsp + 0x44], r12d
mov r8d, 0x300
call sub.VCRUNTIME140.dll_memset
xor r14d, r14d
movsxd r13, r12d
test r12d, r12d
jle 0x1400bdfa3
lea r12, [rbp + 0x5e1]
nop dword [rax]
mov rcx, rbx
call fcn.1400edbc0
mov rcx, rbx
mov byte [rbp + r14 - 0x20], al
movzx esi, al
call fcn.1400edbc0
mov rcx, rbx
mov byte [rbp + r14 + 0xe0], al
movzx edi, al
call fcn.1400edbc0
mov byte [rbp + r14 + 0x1e0], al
inc r14
mov byte [r12 - 1], sil
mov byte [r12], dil
mov byte [r12 + 1], al
lea r12, [r12 + 3]
cmp r14, r13
jl 0x1400bdf50
mov r12d, dword [rsp + 0x44]
mov rcx, rbx
cmp dword [rbx + 0x30], r15d
jne 0x1400be5c6
call fcn.1400edbc0
movzx r13d, al
mov edi, r13d
cmp dword [rbx + 0x30], r15d
jne 0x1400be5b0
lea eax, [r13 - 2]
cmp eax, 6
jbe 0x1400bdfe3
mov rdx, qword [rbx + 0x28]
lea rcx, str.Fl_GIF_Image:__s_invalid_LZW_initial_code_size__d._n
mov r8d, r13d
call qword [0x1401b2768]
inc r13d
mov dword [rsp + 0x60], r13d
test r12d, r12d
jne 0x1400be06b
mov rdx, qword [rbx + 0x28]
lea rcx, str._s_does_not_have_a_color_table__using_default._n
call qword [0x1401b2768]
mov ecx, edi
mov word [rbp + 0x1e0], 0xff00
mov r12d, 1
mov word [rbp + 0xe0], 0xff00
shl r12d, cl
mov r8d, 2
movsxd r10, r12d
mov word [rbp - 0x20], 0xff00
cmp r8, r10
jge 0x1400be06b
lea r11d, [r12 - 1]
mov r9d, 0x1fe
nop dword [rax]
mov eax, r9d
add r9d, 0xff
cdq
idiv r11d
mov byte [rbp + r8 + 0x1e0], al
mov byte [rbp + r8 + 0xe0], al
mov byte [rbp + r8 - 0x20], al
inc r8
cmp r8, r10
jl 0x1400be040
mov ecx, edi
mov esi, 1
shl esi, cl
cmp esi, 0x100
cmovg esi, r12d
mov edi, esi
mov dword [rsp + 0x44], esi
cmp byte [rsp + 0x41], r15b
je 0x1400be1a5
movzx r14d, byte [rsp + 0x40]
mov dword [rsp + 0x44], esi
cmp r14d, esi
jl 0x1400be1a5
mov eax, r14d
sub eax, esi
inc eax
cmp eax, 0x10
jb 0x1400be16d
movsxd rcx, esi
lea r13, [rbp - 0x20]
movsxd rdx, r14d
lea r8, [rbp - 0x20]
lea r12, [rbp + 0xe0]
add r13, rcx
lea r9, [rbp + 0xe0]
add r8, rdx
add r12, rcx
add r9, rdx
cmp r13, r9
ja 0x1400be0e8
cmp r8, r12
jae 0x1400be168
lea r10, [rbp + 0x1e0]
add r10, rcx
lea rcx, [rbp + 0x1e0]
add rcx, rdx
cmp r13, rcx
ja 0x1400be106
cmp r8, r10
jae 0x1400be168
cmp r12, rcx
ja 0x1400be110
cmp r9, r10
jae 0x1400be168
and eax, 0x8000000f
jge 0x1400be11e
dec eax
or eax, 0xfffffff0
inc eax
mov edx, r14d
sub edx, eax
mov eax, esi
add esi, 0x10
cmp esi, edx
jle 0x1400be125
sub edx, eax
mov rcx, r10
lea eax, [rdx + 0x10]
cdq
and edx, 0xf
add eax, edx
mov dl, 0xff
sar eax, 4
movsxd rdi, eax
shl rdi, 4
mov r8, rdi
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
mov dl, 0xff
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
mov dl, 0xff
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
mov r13d, dword [rsp + 0x60]
movsxd rax, esi
cmp rax, r14
jg 0x1400be19d
nop word [rax + rax]
mov byte [rbp + rax + 0x1e0], 0xff
mov byte [rbp + rax + 0xe0], 0xff
mov byte [rbp + rax - 0x20], 0xff
inc rax
cmp rax, r14
jle 0x1400be180
lea edi, [r14 + 1]
mov dword [rsp + 0x44], edi
cmp dword [rbx + 0x30], r15d
jne 0x1400be59a
mov esi, dword [rsp + 0x5c]
mov eax, esi
mov r12d, dword [rsp + 0x70]
imul eax, r12d
movsxd rcx, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
movzx ecx, byte [rsp + 0x48]
mov r9d, r12d
mov dword [rsp + 0x38], ecx
mov r8, rax
mov dword [rsp + 0x30], edi
mov rdx, rbx
mov dword [rsp + 0x28], r13d
mov r14, rax
mov r13, qword [rsp + 0x78]
mov rcx, r13
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], esi
call fcn.1400be6b0
cmp dword [r13 + 0x14], r15d
jne 0x1400be681
mov eax, dword [rsp + 0x4c]
mov dword [rbp - 0x70], eax
mov eax, dword [rsp + 0x54]
mov dword [rbp - 0x6c], eax
mov eax, dword [rsp + 0x50]
mov dword [rbp - 0x68], eax
mov eax, dword [rsp + 0x6c]
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x60], eax
mov eax, dword [rsp + 0x58]
mov dword [rbp - 0x5c], r12d
mov dword [rbp - 0x58], esi
mov qword [rbp - 0x40], r14
cmp byte [rsp + 0x42], r15b
je 0x1400be23e
not eax
mov ecx, dword [rsp + 0x68]
mov dword [rbp - 0x48], ecx
movzx ecx, byte [rsp + 0x40]
mov dword [rbp - 0x44], eax
cmp byte [rsp + 0x41], r15b
jne 0x1400be259
mov ecx, 0xffffffff
movzx eax, byte [rsp + 0x49]
xor edx, edx
mov dword [rbp - 0x50], eax
mov r8d, 0x2fd
xor eax, eax
mov dword [rbp - 0x4c], ecx
lea rcx, [rbp + 0x2e3]
mov word [rbp + 0x2e0], ax
mov byte [rbp + 0x2e2], al
mov dword [rbp - 0x54], edi
call sub.VCRUNTIME140.dll_memset
cmp byte [rsp + 0x4a], r15b
jge 0x1400be29a
lea rax, [rbp + 0x5e0]
jmp 0x1400be2f1
cmp byte [rsp + 0x4b], r15b
jge 0x1400be2aa
lea rax, [rbp + 0x8e0]
jmp 0x1400be2f1
xor edx, edx
movsxd r8, edi
test edi, edi
jle 0x1400be2ea
lea rcx, [rbp + 0x2e1]
nop word [rax + rax]
movzx eax, byte [rbp + rdx - 0x20]
mov byte [rcx - 1], al
lea rcx, [rcx + 3]
movzx eax, byte [rbp + rdx + 0xe0]
mov byte [rcx - 3], al
movzx eax, byte [rbp + rdx + 0x1e0]
inc rdx
mov byte [rcx - 2], al
cmp rdx, r8
jl 0x1400be2c0
lea rax, [rbp + 0x2e0]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x70]
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x60]
cmp dword [rsp + 0x4c], r15d
jne 0x1400be4bd
cmp byte [rsp + 0x43], r15b
je 0x1400be467
mov ecx, dword [rsp + 0x54]
mov eax, dword [rsp + 0x50]
cmp r12d, ecx
jne 0x1400be32e
cmp esi, eax
je 0x1400be467
mov dword [r13 + 0xc], eax
mov dword [r13 + 0x20], eax
imul eax, ecx
mov dword [r13 + 8], ecx
mov dword [r13 + 0x1c], ecx
mov dword [r13 + 0x10], 1
movsxd rsi, eax
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r13, rax
cmp byte [rsp + 0x41], r15b
je 0x1400be367
movzx edx, byte [rsp + 0x40]
mov edi, edx
jmp 0x1400be36e
movzx edi, byte [rsp + 0x40]
xor edx, edx
mov r8, rsi
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
movsxd r9, dword [rsp + 0x54]
mov edx, dword [rbp - 0x80]
mov r10d, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x5c]
lea eax, [r8 + r12]
cmp eax, r9d
cmova eax, r9d
add ecx, edx
cmp ecx, r10d
cmova ecx, r10d
cmp edx, ecx
jae 0x1400be40a
mov r12d, eax
mov edi, r8d
mov eax, edx
movzx ebx, r8w
imul eax, r9d
sub rdi, rbx
add rdi, r14
sub r12, r8
sub ecx, edx
mov r15, r9
mov r14d, ecx
movsxd rsi, eax
nop dword [rax + rax]
lea rcx, [rsi + rbx]
mov r8, r12
add rcx, r13
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsxd rcx, dword [rsp + 0x70]
add rsi, r15
add rdi, rcx
sub r14, 1
jne 0x1400be3d0
mov rbx, qword [rbp - 0x30]
mov r15d, dword [rbp - 0x78]
movzx edi, byte [rsp + 0x40]
mov r14, qword [rsp + 0x60]
mov r10d, dword [rsp + 0x50]
cmp byte [rsp + 0x41], 0
lea r9, [rbp - 0x20]
mov edx, dword [rsp + 0x54]
mov eax, 0xffffffff
cmovne eax, edi
mov r8d, r10d
mov edi, dword [rsp + 0x44]
mov rcx, r13
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call fcn.1400bd6a0
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x28], rax
mov eax, dword [rsp + 0x5c]
add eax, 2
mov dword [rcx + 0x30], 1
mov dword [rcx + 0x18], eax
mov rcx, r13
call fcn.140098a60
mov rcx, r14
call fcn.140098a60
mov r13, qword [rsp + 0x78]
jmp 0x1400be4d0
movzx eax, byte [rsp + 0x40]
mov dword [r13 + 8], r12d
mov dword [r13 + 0x1c], r12d
mov dword [r13 + 0xc], esi
mov dword [r13 + 0x20], esi
mov dword [r13 + 0x10], 1
cmp byte [rsp + 0x41], r15b
jne 0x1400be490
mov eax, 0xffffffff
mov dword [rsp + 0x28], eax
lea r9, [rbp - 0x20]
mov r8d, esi
mov dword [rsp + 0x20], edi
mov edx, r12d
mov rcx, r14
call fcn.1400bd6a0
mov qword [r13 + 0x28], rax
lea eax, [rsi + 2]
mov dword [r13 + 0x18], eax
mov dword [r13 + 0x30], 1
mov rcx, r14
call fcn.140098a60
cmp byte [rsp + 0x43], r15b
je 0x1400be681
mov edi, dword [rsp + 0x4c]
inc edi
mov dword [rsp + 0x4c], edi
cmp dword [rbx + 0x30], 0
jne 0x1400be571
test r15d, r15d
je 0x1400bdcf0
nop dword [rax]
mov rcx, rbx
call fcn.1400edd70
mov rcx, rbx
lea edx, [r15 + rax]
call fcn.1400edd10
mov rcx, rbx
call fcn.1400edbc0
movzx r15d, al
test al, al
jne 0x1400be4f0
jmp 0x1400bdcf0
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x241
jmp 0x1400be647
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x250
jmp 0x1400be647
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x24b
jmp 0x1400be647
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x238
jmp 0x1400be647
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov r9d, eax
lea rcx, str.__d__Fl_GIF_Image:__s___unexpected_EOF_or_read_error_at_offset__ld
mov r8, rdi
mov edx, 0x300
call qword [case.0x1400d1a53.0]
jmp 0x1400be679
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x2ac
jmp 0x1400be647
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x285
jmp 0x1400be647
mov rdi, qword [rbx + 0x28]
call fcn.1400edd70
mov edx, 0x27e
jmp 0x1400be647
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x26b
jmp 0x1400be647
cmp esi, 0x3b
jne 0x1400be611
test edi, edi
jne 0x1400be681
mov rdx, qword [rbx + 0x28]
lea rcx, str._s:_no_image_data_found.
call qword [case.0x1400d1a53.0]
mov dword [r13 + 0x14], 0xffffffff
jmp 0x1400be681
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov r8d, esi
lea rcx, str._s:_unknown_GIF_code_0x_02x_at_offset__ld
mov rdx, rdi
lea r9d, [rax - 1]
call qword [case.0x1400d1a53.0]
jmp 0x1400be679
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1400edd70
mov edx, 0x232
mov r8, rdi
lea rcx, str.__d__Fl_GIF_Image:__s___unexpected_EOF_or_read_error_at_offset__ld
mov r9d, eax
call qword [case.0x1400d1a53.0]
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x14], 0xfffffffd
jmp 0x1400be681
mov rdx, qword [rbx + 0x28]
lea rcx, str.Fl_GIF_Image:__s_is_not_a_GIF_file._n
call qword [case.0x1400d1a53.0]
mov dword [r13 + 0x14], 0xfffffffd
mov rcx, qword [rbp + 0xbe0]
xor rcx, rsp
call fcn.14012cd90
mov rbx, qword [rsp + 0xd40]
add rsp, 0xcf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret