Function at 0x14000f3e0
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.140079a70
sub rsp, rax
mov rax, qword [0x14009e010]
xor rax, rsp
mov qword [rbp + 0x1370], rax
mov rbx, qword [rcx]
xor edx, edx
xor r14b, r14b
mov qword [rcx + 0x10], rdx
mov qword [rcx + 8], rdx
mov r12, rcx
mov qword [rcx + 0x18], rdx
mov r15d, 1
mov rcx, rbx
mov byte [rsp + 0x41], r14b
mov byte [rsp + 0x40], 0
mov r13d, edx
mov dword [rsp + 0x48], edx
mov r14d, edx
mov dword [rsp + 0x44], r15d
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x4c], edx
call fcn.14000ddf0
test eax, eax
je 0x140010002
mov rcx, rbx
call fcn.140007570
mov rcx, rbx
mov esi, eax
call fcn.140007570
shl esi, 0x10
mov rcx, rbx
add esi, eax
call fcn.140007570
mov rcx, rbx
mov edi, eax
call fcn.140007570
shl edi, 0x10
lea ecx, [rdi + rax]
cmp ecx, 0x49484452
ja 0x14000f7fe
je 0x14000f590
cmp ecx, 0x43674249
je 0x14000f583
cmp ecx, 0x49444154
je 0x14000f4f4
cmp ecx, 0x49454e44
jne 0x14000f812
test r15d, r15d
jne 0x14000fff4
mov rdi, qword [r12 + 8]
test rdi, rdi
jne 0x14000fb30
lea rax, str.no_IDAT
jmp 0x14000fffb
test r15d, r15d
jne 0x14000fff4
cmp byte [rsp + 0x40], r15b
je 0x14000f50d
test r14d, r14d
je 0x14000ff2b
mov eax, dword [rsp + 0x48]
lea edi, [rsi + rax]
cmp edi, eax
jl 0x140010002
cmp edi, r13d
jbe 0x14000f560
test r13d, r13d
jne 0x14000f538
mov r13d, 0x1000
cmp esi, r13d
cmova r13d, esi
cmp edi, r13d
jbe 0x14000f540
add r13d, r13d
cmp edi, r13d
ja 0x14000f538
mov rcx, qword [r12 + 8]
mov edx, r13d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14000ff0b
mov qword [r12 + 8], rax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov r8d, esi
add rdx, qword [r12 + 8]
mov rcx, rbx
call fcn.1400074a0
test eax, eax
je 0x14000ff37
mov dword [rsp + 0x48], edi
jmp 0x14000fb1b
mov dword [rsp + 0x4c], 1
jmp 0x14000f825
test r15d, r15d
je 0x14000ff8e
mov dword [rsp + 0x44], 0
cmp esi, 0xd
jne 0x14000ff85
mov rcx, rbx
call fcn.140007570
mov rcx, rbx
mov edi, eax
call fcn.140007570
shl edi, 0x10
add eax, edi
mov dword [rbx], eax
cmp eax, 0x1000000
ja 0x14000f7de
mov rcx, rbx
call fcn.140007570
mov rcx, rbx
mov edi, eax
call fcn.140007570
shl edi, 0x10
lea ecx, [rax + rdi]
mov dword [rbx + 4], ecx
cmp ecx, 0x1000000
ja 0x14000f7de
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x14000f614
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14000f63a
cmp dword [rbx + 0x30], 0
je 0x14000f638
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14000f63a
xor cl, cl
mov rax, rbx
mov edx, 0x30
movzx eax, cl
mov dword [r12 + 0x20], eax
lea rdi, [rdx + rbx]
cmp eax, 0x10
ja 0x14000ff7c
mov ecx, 0x10116
bt ecx, eax
jae 0x14000ff7c
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x14000f684
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14000f6a9
cmp dword [rdi], 0
je 0x14000f6a7
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14000f6a9
xor cl, cl
movzx esi, cl
mov dword [rsp + 0x54], esi
cmp esi, 6
ja 0x14000ff73
cmp esi, 3
jne 0x14000f6d1
cmp dword [r12 + 0x20], 0x10
je 0x14000ff73
mov byte [rsp + 0x40], sil
jmp 0x14000f6db
test sil, 1
jne 0x14000ff73
cmp rax, qword [rbx + 0xc0]
jb 0x14000f6f8
cmp dword [rdi], 0
je 0x14000f70d
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
test cl, cl
jne 0x14000ff43
cmp rax, qword [rbx + 0xc0]
jb 0x14000f72a
cmp dword [rdi], 0
je 0x14000f73f
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
test cl, cl
jne 0x14000ff4f
cmp rax, qword [rbx + 0xc0]
jae 0x14000f757
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14000f77c
cmp dword [rdi], 0
je 0x14000f77a
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14000f77c
xor cl, cl
movzx r15d, cl
mov dword [rsp + 0x50], r15d
cmp r15d, 1
ja 0x14000ff67
mov ecx, dword [rbx]
test ecx, ecx
je 0x14000ff5b
mov r9d, dword [rbx + 4]
test r9d, r9d
je 0x14000ff5b
xor edx, edx
mov eax, 0x40000000
div ecx
cmp byte [rsp + 0x40], 0
jne 0x14000f7ea
xor edx, edx
mov r8d, esi
shr r8d, 2
mov ecx, esi
and ecx, 2
and r8d, 1
or ecx, 1
add r8d, ecx
div r8d
mov dword [rbx + 8], r8d
cmp eax, r9d
jae 0x14000fb16
lea rax, str.too_large
jmp 0x14000fffb
shr eax, 2
mov dword [rbx + 8], 1
cmp eax, r9d
jb 0x14000f7de
jmp 0x14000fb16
cmp ecx, 0x504c5445
je 0x14000f9bf
cmp ecx, 0x74524e53
je 0x14000f880
test r15d, r15d
jne 0x14000fff4
bt ecx, 0x1d
jae 0x14000ff97
test esi, esi
jns 0x14000f83c
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x14000fb1b
cmp qword [rbx + 0x10], 0
je 0x14000f871
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, esi
jge 0x14000f871
mov rax, qword [rbx + 0xc0]
sub esi, ecx
mov rcx, qword [rbx + 0x28]
mov edx, esi
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
jmp 0x14000fb1b
movsxd rax, esi
add qword [rbx + 0xb8], rax
jmp 0x14000fb1b
test r15d, r15d
jne 0x14000fff4
cmp qword [r12 + 8], 0
jne 0x14000ffe2
cmp byte [rsp + 0x40], r15b
je 0x14000f92e
test r14d, r14d
je 0x14000ffc7
cmp esi, r14d
ja 0x14000ffd0
xor edi, edi
mov byte [rsp + 0x40], 4
test esi, esi
je 0x14000fb1b
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x14000f8ef
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14000f915
cmp dword [rbx + 0x30], 0
je 0x14000f913
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14000f915
xor dl, dl
lea eax, [rdi*4 + 3]
inc edi
mov byte [rbp + rax + 0xf70], dl
cmp edi, esi
jb 0x14000f8d0
jmp 0x14000fb1b
mov ecx, dword [rbx + 8]
test cl, 1
je 0x14000ffd9
lea eax, [rcx + rcx]
cmp esi, eax
jne 0x14000ffd0
xor esi, esi
mov byte [rsp + 0x41], 1
cmp dword [r12 + 0x20], 0x10
jne 0x14000f97e
test ecx, ecx
jle 0x14000fb1b
lea rdi, [rbp + 0xf64]
mov rcx, rbx
call fcn.140007570
inc esi
mov word [rdi], ax
lea rdi, [rdi + 2]
cmp esi, dword [rbx + 8]
jl 0x14000f963
jmp 0x14000fb1b
test ecx, ecx
jle 0x14000fb1b
lea rdi, [rbp + 0xf60]
lea r15, [0x140081080]
mov rcx, rbx
call fcn.140007570
movsxd rcx, dword [r12 + 0x20]
lea rdi, [rdi + 1]
movzx eax, al
inc esi
movzx edx, byte [rcx + r15]
imul eax, edx
mov byte [rdi - 1], al
cmp esi, dword [rbx + 8]
jl 0x14000f994
jmp 0x14000fb16
test r15d, r15d
jne 0x14000fff4
cmp esi, 0x300
ja 0x14000ffeb
mov eax, 0xaaaaaaab
mul esi
mov r14d, edx
shr r14d, 1
mov dword [rsp + 0x58], r14d
lea eax, [r14 + r14*2]
cmp eax, esi
jne 0x14000ffeb
test r14d, r14d
je 0x14000fb16
lea rdi, [rbx + 0x30]
nop
mov rdx, qword [rbx + 0xb8]
mov rsi, rdi
cmp rdx, qword [rbx + 0xc0]
jae 0x14000fa22
movzx ecx, byte [rdx]
inc rdx
mov qword [rbx + 0xb8], rdx
jmp 0x14000fa48
cmp dword [rdi], 0
je 0x14000fa46
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
lea rdx, [rax + 1]
mov qword [rbx + 0xb8], rdx
jmp 0x14000fa48
xor cl, cl
lea r14d, [r15*4]
mov byte [rbp + r14 + 0xf70], cl
cmp rdx, qword [rbx + 0xc0]
jae 0x14000fa75
movzx r8d, byte [rdx]
lea rdi, [rbx + 0x30]
inc rdx
mov qword [rbx + 0xb8], rdx
jmp 0x14000fa9d
cmp dword [rdi], 0
je 0x14000fa9a
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx r8d, byte [rax]
lea rdx, [rax + 1]
mov qword [rbx + 0xb8], rdx
jmp 0x14000fa9d
xor r8b, r8b
lea eax, [r14 + 1]
mov byte [rbp + rax + 0xf70], r8b
cmp rdx, qword [rbx + 0xc0]
jae 0x14000fac3
movzx r8d, byte [rdx]
lea rax, [rdx + 1]
mov qword [rbx + 0xb8], rax
jmp 0x14000faed
cmp dword [rsi], 0
mov rdi, rsi
je 0x14000faea
mov rcx, rbx
call fcn.140007430
mov rax, qword [rbx + 0xb8]
movzx r8d, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14000faed
xor r8b, r8b
lea eax, [r14 + 2]
inc r15d
mov byte [rbp + rax + 0xf70], r8b
lea eax, [r14 + 3]
mov r14d, dword [rsp + 0x58]
mov byte [rbp + rax + 0xf70], 0xff
cmp r15d, r14d
jb 0x14000fa00
mov r15d, dword [rsp + 0x44]
mov rcx, rbx
call fcn.140007570
mov rcx, rbx
call fcn.140007570
jmp 0x14000f470
mov eax, dword [rbx]
imul eax, dword [r12 + 0x20]
add eax, 7
shr eax, 3
imul eax, dword [rbx + 8]
inc eax
imul eax, dword [rbx + 4]
movsxd rsi, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
test rax, rax
jne 0x14000fb66
mov qword [r12 + 0x10], rax
jmp 0x140010002
movsxd rax, dword [rsp + 0x48]
xor r13d, r13d
mov r15d, dword [rsp + 0x4c]
add rax, rdi
mov qword [rsp + 0x68], rax
mov edx, r13d
lea rax, [rsi + rcx]
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x78], rcx
test r15d, r15d
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rdi
sete dl
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 1
call fcn.14000db00
test eax, eax
je 0x14000ff17
mov rax, qword [rbp - 0x80]
mov edi, dword [rsp + 0x78]
sub edi, dword [rbp - 0x80]
mov qword [r12 + 0x10], rax
test rax, rax
je 0x140010002
mov rcx, qword [r12 + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx esi, byte [rsp + 0x40]
mov qword [r12 + 8], r13
mov eax, dword [rbx + 8]
lea r9d, [rax + 1]
cmp r9d, 4
jne 0x14000fbf7
test sil, sil
je 0x14000fc93
movzx r14d, byte [rsp + 0x41]
test r14b, r14b
jne 0x14000fc05
mov r9d, eax
mov eax, dword [rsp + 0x50]
mov r8d, edi
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov rcx, r12
mov dword [rbx + 0xc], r9d
mov eax, dword [r12 + 0x20]
mov rdx, qword [r12 + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14000f040
test eax, eax
je 0x140010002
test r14b, r14b
je 0x14000fd40
mov rcx, qword [r12]
mov eax, dword [rcx + 4]
imul eax, dword [rcx]
cmp dword [r12 + 0x20], 0x10
mov rcx, qword [r12 + 0x18]
jne 0x14000fcd9
test eax, eax
je 0x14000fd40
cmp dword [rbx + 0xc], 2
jne 0x14000fc9e
movzx r8d, word [rbp + 0xf64]
mov edx, eax
cmp word [rcx], r8w
lea rcx, [rcx + 4]
mov eax, 0xffff
cmove ax, r13w
mov word [rcx - 2], ax
sub rdx, 1
jne 0x14000fc72
jmp 0x14000fd40
movzx r14d, byte [rsp + 0x41]
jmp 0x14000fc05
movzx edx, word [rbp + 0xf68]
movzx r8d, word [rbp + 0xf66]
movzx r9d, word [rbp + 0xf64]
cmp word [rcx], r9w
jne 0x14000fccd
cmp word [rcx + 2], r8w
jne 0x14000fccd
cmp word [rcx + 4], dx
jne 0x14000fccd
mov word [rcx + 6], r13w
add rcx, 8
sub rax, 1
jne 0x14000fcb5
jmp 0x14000fd40
test eax, eax
je 0x14000fd40
cmp dword [rbx + 0xc], 2
jne 0x14000fd0b
movzx r8d, byte [rbp + 0xf60]
mov edx, eax
nop dword [rax]
cmp byte [rcx], r8b
lea rcx, [rcx + 2]
mov eax, 0xff
cmove eax, r13d
mov byte [rcx - 1], al
sub rdx, 1
jne 0x14000fcf0
jmp 0x14000fd40
movzx edx, byte [rbp + 0xf62]
movzx r8d, byte [rbp + 0xf61]
movzx r9d, byte [rbp + 0xf60]
cmp byte [rcx], r9b
jne 0x14000fd36
cmp byte [rcx + 1], r8b
jne 0x14000fd36
cmp byte [rcx + 2], dl
jne 0x14000fd36
mov byte [rcx + 3], r13b
add rcx, 4
sub rax, 1
jne 0x14000fd22
test r15d, r15d
je 0x14000fe3a
cmp dword [0x1400a4264], r13d
je 0x14000fe3a
cmp dword [rbx + 0xc], 2
jle 0x14000fe3a
mov rax, qword [r12]
mov r9, qword [r12 + 0x18]
mov ecx, dword [rax + 4]
imul ecx, dword [rax]
test ecx, ecx
je 0x14000fe3a
cmp dword [rax + 0xc], 3
jne 0x14000fd9f
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 0x14000fd80
jmp 0x14000fe3a
cmp dword [0x1400a4288], r13d
je 0x14000fe10
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 0x14000fdf5
mov r8d, eax
xor edx, edx
movzx eax, byte [r9 + 1]
imul eax, eax, 0xff
div r8d
xor edx, edx
mov byte [r9 + 1], al
imul eax, ecx, 0xff
div r8d
xor edx, edx
mov r10d, eax
imul eax, r11d, 0xff
div r8d
jmp 0x14000fdfd
movzx r10d, cl
movzx eax, r11b
mov byte [r9], al
mov byte [r9 + 2], r10b
add r9, 4
sub rdi, 1
jne 0x14000fdb0
jmp 0x14000fe3a
mov edx, ecx
nop dword [rax]
nop word [rax + 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 0x14000fe20
test sil, sil
je 0x14000fef1
mov dword [rbx + 0xc], 4
movzx eax, sil
mov dword [rbx + 8], eax
mov rax, qword [r12]
mov rbx, qword [r12 + 0x18]
mov edi, dword [rax + 4]
imul edi, dword [rax]
test edi, edi
js 0x14000ff0b
lea eax, [rdi*4]
cmp edi, 0x1fffffff
jg 0x14000ff0b
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000ff0b
test edi, edi
je 0x14000fee1
lea r8, [rax + 2]
mov r9d, edi
nop word [rax + rax]
movzx edx, byte [rbx]
lea r8, [r8 + 4]
lea rbx, [rbx + 1]
movzx eax, byte [rbp + rdx*4 + 0xf70]
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
movzx eax, byte [rbp + rdx*4 + 0xf73]
mov byte [r8 - 3], al
sub r9, 1
jne 0x14000fea0
mov rcx, qword [r12 + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r12 + 0x18], rsi
mov rcx, qword [r12 + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
mov qword [r12 + 0x10], r13
jmp 0x140010004
lea rax, str.outofmem
jmp 0x14000fffb
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r12 + 0x10], r13
jmp 0x140010002
lea rax, str.no_PLTE
jmp 0x14000fffb
lea rax, str.outofdata
jmp 0x14000fffb
lea rax, str.bad_comp_method
jmp 0x14000fffb
lea rax, str.bad_filter_method
jmp 0x14000fffb
lea rax, str.0_pixel_image
jmp 0x14000fffb
lea rax, str.bad_interlace_method
jmp 0x14000fffb
lea rax, str.bad_ctype
jmp 0x14000fffb
lea rax, str.1_2_4_8_16_bit_only
jmp 0x14000fffb
lea rax, str.bad_IHDR_len
jmp 0x14000fffb
lea rax, str.multiple_IHDR
jmp 0x14000fffb
mov eax, ecx
mov byte [0x14009e143], cl
shr eax, 0x18
mov byte [str.XXXX_PNG_chunk_not_known], al
mov eax, ecx
shr eax, 0x10
mov byte [0x14009e141], al
mov eax, ecx
shr eax, 8
mov byte [0x14009e142], al
lea rax, str.XXXX_PNG_chunk_not_known
jmp 0x14000fffb
lea rax, str.tRNS_before_PLTE
jmp 0x14000fffb
lea rax, str.bad_tRNS_len
jmp 0x14000fffb
lea rax, str.tRNS_with_alpha
jmp 0x14000fffb
lea rax, str.tRNS_after_IDAT
jmp 0x14000fffb
lea rax, str.invalid_PLTE
jmp 0x14000fffb
lea rax, str.first_not_IHDR
mov qword [0x1400a4630], rax
xor eax, eax
mov rcx, qword [rbp + 0x1370]
xor rcx, rsp
call fcn.140078830
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