Function at 0x140065570
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xb0
mov r11d, dword [rsp + 0x110]
xor r13d, r13d
cmp dword [rsp + 0x120], 0x10
mov r10d, r13d
mov r12d, r9d
mov dword [rsp + 0x38], r11d
sete r10b
mov esi, r8d
inc r10d
mov rdi, rdx
mov ebx, r10d
imul ebx, r9d
mov eax, ebx
imul eax, r11d
mov dword [rsp + 0x40], eax
mov rax, qword [rcx]
movsxd rbp, dword [rax + 8]
mov r14d, ebp
mov dword [rsp + 0x20], ebp
imul r14d, r10d
mov r10d, dword [rsp + 0x118]
mov dword [rsp + 0x24], r14d
test r11d, r11d
js 0x140065642
test r10d, r10d
js 0x140065642
je 0x140065600
mov eax, 0x7fffffff
cdq
idiv r10d
cmp r11d, eax
jg 0x140065642
mov ecx, r11d
imul ecx, r10d
test ecx, ecx
js 0x140065642
test ebx, ebx
js 0x140065642
je 0x14006561d
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x140065642
mov eax, ebx
imul eax, r11d
imul eax, r10d
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r11d, dword [rsp + 0x110]
mov r10d, dword [rsp + 0x118]
jmp 0x140065645
mov rax, r13
mov rdx, qword [rsp + 0xf0]
mov qword [rdx + 0x18], rax
test rax, rax
jne 0x14006566b
lea rax, str.Out_of_memory
mov qword [0x1400fee30], rax
xor eax, eax
jmp 0x140066612
mov ecx, dword [rsp + 0x120]
mov eax, ebp
imul eax, r11d
mov qword [rsp + 0xf8], r15
mov r9d, eax
mov dword [rsp + 0x28], eax
imul r9d, ecx
add r9d, 7
shr r9d, 3
mov dword [rsp + 0x50], r9d
lea eax, [r9 + 1]
imul eax, r10d
cmp esi, eax
jb 0x1400665fa
mov dword [rsp + 0x3c], r13d
mov r8d, r13d
lea rsi, [0x140000000]
test r10d, r10d
je 0x140065e3f
movsxd r14, r14d
mov rsi, rbp
mov qword [rsp + 0x58], r14
mov r10, rbp
mov qword [rsp + 0x80], rbp
movsxd r15, ebx
nop dword [rax]
movzx ebp, byte [rdi]
mov ecx, r8d
mov ebx, dword [rsp + 0x40]
inc rdi
mov rdx, qword [rdx + 0x18]
imul ecx, ebx
add rdx, rcx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x30], rdx
cmp ebp, 4
ja 0x1400665fa
cmp dword [rsp + 0x120], 8
jge 0x140065741
mov eax, r12d
mov dword [rsp + 0x24], 1
imul eax, r11d
mov r14d, 1
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x38], r9d
sub eax, r9d
add rdx, rax
mov qword [rsp + 0x30], rdx
mov r9, rdx
sub r9, rbx
test r8d, r8d
mov qword [rsp + 0x48], r9
lea r8, [0x140000000]
jne 0x140065761
movzx ebp, byte [rbp + r8 + 0xfd334]
test r14, r14
jle 0x140065878
mov r13, r9
mov r12, rdx
sub r13, rdi
mov rbx, rdi
sub r12, rdi
mov rsi, r14
nop dword [rax]
cmp ebp, 6
ja case.default.0x140065793
movsxd rax, ebp
mov eax, dword [r8 + rax*4 + 0x66624]
add rax, r8
jmp rax
inc rbx
sub rsi, 1
jne 0x140065780
jmp 0x140065869
movzx eax, byte [rbx]
mov byte [r12 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x140065869
jmp case.0x140065793.0
movzx eax, byte [rbx]
mov byte [r12 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x140065869
jmp case.0x140065793.1
movzx eax, byte [rbx + r13]
add al, byte [rbx]
mov byte [r12 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x140065869
jmp case.0x140065793.2
movzx eax, byte [rbx + r13]
lea rbx, [rbx + 1]
shr al, 1
add al, byte [rbx - 1]
mov byte [r12 + rbx - 1], al
sub rsi, 1
je 0x140065869
jmp case.0x140065793.3
movzx edx, byte [rbx + r13]
xor r8d, r8d
xor ecx, ecx
call fcn.14006b580
add al, byte [rbx]
mov byte [r12 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x140065793.4
mov rdx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x110]
mov r10, qword [rsp + 0x80]
mov esi, dword [rsp + 0x20]
xor r13d, r13d
mov r12d, dword [rsp + 0x108]
mov eax, dword [rsp + 0x120]
cmp eax, 8
jne 0x1400658d3
cmp esi, r12d
je 0x14006588e
mov byte [r10 + rdx], 0xff
movsxd rax, r12d
mov rcx, r10
jmp 0x1400658f8
movzx eax, byte [rbx]
mov byte [r12 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x140065869
jmp case.0x140065793.5
movzx eax, byte [rbx]
mov byte [r12 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x140065793.6
jmp 0x140065869
cmp eax, 0x10
jne 0x1400658f1
cmp esi, r12d
je 0x1400658e4
mov word [r14 + rdx], 0xffff
movsxd r10, dword [rsp + 0x24]
mov rax, r15
mov rcx, r10
jmp 0x1400658fd
mov eax, 1
mov ecx, eax
mov r10d, dword [rsp + 0x24]
add rdi, rcx
lea rbx, [rax + r9]
cmp dword [rsp + 0x120], 8
lea rcx, [rax + rdx]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x78], rbx
jl 0x140065ead
cmp esi, r12d
je 0x140065ead
cmp ebp, 6
ja case.default.0x140065947
lea r9, [0x140000000]
movsxd rax, ebp
mov edx, dword [r9 + rax*4 + 0x66640]
add rdx, r9
jmp rdx
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x140065947
movsxd r11, r10d
mov r10d, eax
nop dword [rax]
test r14, r14
jle 0x140065982
mov r9, rdi
mov rdx, rcx
sub r9, rcx
mov r8, r14
movzx eax, byte [r9 + rdx]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x140065971
mov byte [r14 + rcx], 0xff
add rdi, r11
add rcx, r15
sub r10, 1
jne 0x140065960
jmp case.default.0x140065947
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x140065947
movsxd rbx, r10d
mov r11d, eax
nop dword [rax + rax]
test r14, r14
jle 0x1400659e5
mov r9, rcx
mov r10, rcx
sub r9, r15
mov rdx, rdi
sub r9, rdi
mov r8, r14
sub r10, rdi
nop word [rax + rax]
movzx eax, byte [r9 + rdx]
add al, byte [rdx]
mov byte [rdx + r10], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x1400659d0
mov byte [r14 + rcx], 0xff
add rdi, rbx
add rcx, r15
sub r11, 1
jne 0x1400659b0
jmp case.default.0x140065947
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x140065947
movsxd rbp, r10d
mov esi, eax
nop dword [rax]
mov r11, r13
test r10d, r10d
jle 0x140065ae4
cmp r10d, 0x40
jb 0x140065ae4
lea eax, [r10 - 1]
movsxd rdx, eax
lea rax, [rdx + rdi]
lea r8, [rdx + rcx]
cmp rcx, rax
ja 0x140065a43
cmp r8, rdi
jae 0x140065ae4
lea rax, [rdx + rbx]
cmp rcx, rax
ja 0x140065a55
cmp r8, rbx
jae 0x140065ae4
mov edx, r10d
and edx, 0x8000003f
jge 0x140065a67
dec edx
or edx, 0xffffffc0
inc edx
mov eax, r10d
mov r8, rbx
sub eax, edx
mov rdx, rdi
sub rdx, rcx
movsxd r9, eax
sub r8, rcx
lea rax, [rcx + 0x10]
nop
movdqu xmm0, xmmword [r8 + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [r8 + rax]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax + rdx - 0x40]
movdqu xmmword [rax - 0x50], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rdx + rax - 0x30]
movdqu xmm1, xmmword [r8 + rax - 0x30]
movdqu xmmword [rax - 0x40], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rdx + rax - 0x20]
movdqu xmm2, xmmword [r8 + rax - 0x20]
movdqu xmmword [rax - 0x30], xmm1
paddb xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
cmp r11, r9
jl 0x140065a80
cmp r11, r14
jge 0x140065b1a
mov r9, rbx
lea rdx, [r11 + rdi]
mov r10, rcx
sub r9, rdi
sub r10, rdi
mov r8, r14
sub r8, r11
nop
movzx eax, byte [rdx + r9]
add al, byte [rdx]
mov byte [rdx + r10], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x140065b00
mov r10d, dword [rsp + 0x24]
mov byte [r14 + rcx], 0xff
add rdi, rbp
add rcx, r15
add rbx, r15
sub rsi, 1
jne 0x140065a10
jmp case.default.0x140065947
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x140065947
movsxd r12, r10d
mov ebp, eax
nop dword [rax]
test r14, r14
jle 0x140065b91
mov r9, rcx
mov r11, rdi
sub r9, r15
sub r11, rbx
sub r9, rbx
mov rsi, rcx
sub rsi, rbx
mov r8, rbx
mov r10, r14
movzx edx, byte [r9 + r8]
movzx eax, byte [r8]
lea r8, [r8 + 1]
add edx, eax
shr edx, 1
add dl, byte [r11 + r8 - 1]
mov byte [rsi + r8 - 1], dl
sub r10, 1
jne 0x140065b70
mov byte [r14 + rcx], 0xff
add rdi, r12
add rcx, r15
add rbx, r15
sub rbp, 1
jne 0x140065b50
jmp case.default.0x140065947
lea r9d, [r11 - 1]
cmp r9d, 1
jb case.default.0x140065947
movsxd rax, r10d
lea rdx, [r14 + rcx]
mov qword [rsp + 0x30], rax
lea r11, [r15 + r14]
mov r8d, r9d
mov rax, r15
mov r9, qword [rsp + 0x30]
sub rax, rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x98], r11
mov qword [rsp + 0x48], r8
nop dword [rax]
test r14, r14
jle 0x140065cb0
mov r10, rdx
mov r12, r14
mov rdx, rbx
sub r10, r11
sub rdx, rcx
lea rcx, [rax + rbx]
add rax, rdi
mov rbx, rdx
mov r14, rax
nop word [rax + rax]
movzx r11d, byte [r10]
movzx ebp, byte [r10 + rbx]
mov r8d, r11d
movzx r13d, byte [rcx + r10]
sub r8d, ebp
lea r9d, [r8 + r13]
mov eax, r9d
sub r9d, ebp
sub eax, r11d
cdq
mov esi, eax
mov eax, r8d
xor esi, edx
sub esi, edx
cdq
mov r8d, eax
mov eax, r9d
xor r8d, edx
sub r8d, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, r8d
jg 0x140065c66
cmp esi, eax
jle 0x140065c70
cmp r8d, eax
mov r11d, ebp
cmovle r11d, r13d
movzx eax, byte [r14 + r10]
add al, r11b
mov byte [r15 + r10], al
inc r10
sub r12, 1
jne 0x140065c20
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x58]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x30]
mov r11, qword [rsp + 0x98]
add rcx, r15
mov byte [rdx], 0xff
add rdx, r15
mov qword [rsp + 0x60], rcx
sub rax, r15
mov qword [rsp + 0x68], rdx
add rbx, r15
mov qword [rsp + 0x70], rax
add rdi, r9
mov qword [rsp + 0x78], rbx
sub r8, 1
mov qword [rsp + 0x48], r8
jne 0x140065bf0
jmp case.default.0x140065947
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x140065947
movsxd rbx, r10d
mov r11d, eax
nop dword [rax]
test r14, r14
jle 0x140065d39
mov r9, rcx
mov r10, rcx
sub r9, r15
mov rdx, rdi
sub r9, rdi
mov r8, r14
sub r10, rdi
nop word [rax + rax]
movzx eax, byte [rdx + r9]
lea rdx, [rdx + 1]
shr al, 1
add al, byte [rdx - 1]
mov byte [rdx + r10 - 1], al
sub r8, 1
jne 0x140065d20
mov byte [r14 + rcx], 0xff
add rdi, rbx
add rcx, r15
sub r11, 1
jne 0x140065d00
jmp case.default.0x140065947
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x140065947
movsxd rbx, r10d
mov r11d, eax
nop dword [rax + rax]
test r14, r14
jle 0x140065d95
mov r9, rcx
mov r10, rcx
sub r9, r15
mov rdx, rdi
sub r9, rdi
mov r8, r14
sub r10, rdi
nop word [rax + rax]
movzx eax, byte [rdx + r9]
add al, byte [rdx]
mov byte [rdx + r10], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x140065d80
mov byte [r14 + rcx], 0xff
add rdi, rbx
add rcx, r15
sub r11, 1
jne 0x140065d60
mov ecx, dword [rsp + 0x120]
mov rdx, qword [rsp + 0xf0]
cmp ecx, 0x10
jne 0x1400661cf
mov rcx, qword [rsp + 0xa0]
add rcx, qword [rdx + 0x18]
mov r11d, dword [rsp + 0x110]
test r11d, r11d
je 0x140065def
mov eax, r11d
nop word [rax + rax]
mov byte [r14 + rcx + 1], 0xff
add rcx, r15
sub rax, 1
jne 0x140065de0
mov ecx, dword [rsp + 0x120]
mov r8d, dword [rsp + 0x3c]
mov r13d, 0
mov r12d, dword [rsp + 0x108]
inc r8d
mov r9d, dword [rsp + 0x50]
mov r10, qword [rsp + 0x80]
mov esi, dword [rsp + 0x20]
mov dword [rsp + 0x3c], r8d
cmp r8d, dword [rsp + 0x118]
jb 0x1400656e0
mov r10d, dword [rsp + 0x118]
lea rsi, [0x140000000]
cmp ecx, 8
jge 0x1400665b3
test r10d, r10d
je 0x1400665f3
mov r14d, r12d
movsxd rax, ecx
mov r12d, dword [rsp + 0x128]
lea rsi, [rsi + 0xfd590]
add rsi, rax
movsxd rbp, r11d
imul r14d, r11d
mov r15d, r9d
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdx + 0x18]
mov eax, r13d
imul eax, dword [rsp + 0x40]
mov edi, eax
lea r8, [r9 + rax]
sub r9, r15
add r9, rdi
add r9, r14
test r12d, r12d
jne 0x1400661dc
movzx r10d, byte [rsi]
jmp 0x1400661df
mov r13d, dword [rsp + 0x38]
dec r13d
imul r13d, r10d
mov dword [rsp + 0x30], r13d
cmp ebp, 6
ja case.default.0x140065edf
lea r8, [0x140000000]
movsxd rax, ebp
movsxd rsi, r13d
mov edx, dword [r8 + rax*4 + 0x6665c]
add rdx, r8
jmp rdx
mov r8, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r11d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0xf0]
movsxd rax, r13d
add rdi, rax
jmp 0x140065def
test r13d, r13d
jle case.default.0x140065edf
sub rcx, rdi
mov rdx, rdi
mov r8, rcx
sub r8, r14
nop dword [rax]
movzx eax, byte [rdx + r8]
add al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub rsi, 1
jne 0x140065f20
mov r11d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0xf0]
movsxd rax, r13d
add rdi, rax
jmp 0x140065def
xor eax, eax
mov r8d, eax
test r13d, r13d
jle 0x140066023
cmp r13d, 0x40
jb 0x140066023
lea eax, [r13 - 1]
movsxd rdx, eax
lea rax, [rdi + rdx]
lea r9, [rcx + rdx]
cmp rcx, rax
ja 0x140065f84
cmp r9, rdi
jae 0x140066023
lea rax, [rbx + rdx]
cmp rcx, rax
ja 0x140065f96
cmp r9, rbx
jae 0x140066023
mov edx, r13d
and edx, 0x8000003f
jge 0x140065fa8
dec edx
or edx, 0xffffffc0
inc edx
mov eax, r13d
mov r9, rcx
sub eax, edx
mov rdx, rbx
sub rdx, rdi
movsxd r10, eax
sub r9, rdi
mov rax, rdi
nop
movdqu xmm0, xmmword [rax]
add r8, 0x40
movdqu xmm1, xmmword [rdx + rax]
movdqu xmm2, xmmword [rdx + rax + 0x10]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmmword [rax + r9 - 0x40], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rdx + rax - 0x20]
movdqu xmmword [r9 + rax - 0x30], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdx + rax - 0x10]
movdqu xmmword [r9 + rax - 0x20], xmm1
paddb xmm2, xmm0
movdqu xmmword [r9 + rax - 0x10], xmm2
cmp r8, r10
jl 0x140065fc0
cmp r8, rsi
jge case.default.0x140065edf
sub rbx, rdi
lea rdx, [rdi + r8]
sub rcx, rdi
sub rsi, r8
nop dword [rax]
movzx eax, byte [rdx + rbx]
add al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub rsi, 1
jne 0x140066040
mov r11d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0xf0]
movsxd rax, r13d
add rdi, rax
jmp 0x140065def
test r13d, r13d
jle case.default.0x140065edf
sub rcx, rbx
mov r9, rdi
mov r8, rcx
sub r8, r14
sub r9, rbx
nop word [rax + rax]
movzx edx, byte [r8 + rbx]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
add edx, eax
shr edx, 1
add dl, byte [r9 + rbx - 1]
mov byte [rcx + rbx - 1], dl
sub rsi, 1
jne 0x140066090
mov r11d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0xf0]
movsxd rax, r13d
add rdi, rax
jmp 0x140065def
test r13d, r13d
jle case.default.0x140065edf
sub rbx, rcx
mov rbp, rcx
mov r13, rdi
sub rbp, r14
sub r13, rcx
add r13, r14
lea r12, [r14 + rbx]
nop dword [rax]
movzx r8d, byte [rbx + rbp]
movzx edx, byte [r12 + rbp]
movzx ecx, byte [rbp]
call fcn.14006b580
add al, byte [rbp + r13]
mov byte [r14 + rbp], al
lea rbp, [rbp + 1]
sub rsi, 1
jne 0x1400660f0
mov r13d, dword [rsp + 0x30]
mov r11d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0xf0]
movsxd rax, r13d
add rdi, rax
jmp 0x140065def
test r13d, r13d
jle case.default.0x140065edf
sub rcx, rdi
mov rdx, rdi
mov r8, rcx
sub r8, r14
nop word [rax + rax]
movzx eax, byte [rdx + r8]
lea rdx, [rdx + 1]
shr al, 1
add al, byte [rdx - 1]
mov byte [rdx + rcx - 1], al
sub rsi, 1
jne 0x140066150
mov r11d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0xf0]
movsxd rax, r13d
add rdi, rax
jmp 0x140065def
test r13d, r13d
jle case.default.0x140065edf
sub rcx, rdi
mov rdx, rdi
mov r8, rcx
sub r8, r14
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + r8]
add al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub rsi, 1
jne 0x1400661a0
mov r11d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0xf0]
movsxd rax, r13d
add rdi, rax
jmp 0x140065def
mov r11d, dword [rsp + 0x110]
jmp 0x140065df6
mov r10b, 1
cmp ecx, 4
jne 0x140066256
mov ebx, dword [rsp + 0x28]
cmp ebx, 2
jl 0x140066235
mov r11d, ebx
shr r11, 1
mov eax, r11d
neg eax
lea ebx, [rbx + rax*2]
nop dword [rax + rax]
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
movzx ecx, r10b
mov byte [r8], dl
movzx eax, byte [r9]
inc r9
and al, 0xf
movzx edx, al
imul edx, ecx
mov byte [r8 + 1], dl
add r8, 2
sub r11, 1
jne 0x140066200
test ebx, ebx
jle 0x140066500
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x140066500
cmp ecx, 2
jne 0x140066337
mov ebx, dword [rsp + 0x28]
cmp ebx, 4
jl 0x1400662e5
mov r11d, ebx
shr r11, 2
mov eax, r11d
neg eax
lea ebx, [rbx + rax*4]
nop word [rax + rax]
movzx eax, byte [r9]
shr al, 6
movzx edx, al
movzx ecx, r10b
imul edx, ecx
movzx eax, r10b
mov byte [r8], dl
movzx ecx, byte [r9]
shr cl, 4
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 1], cl
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
movzx ecx, cl
imul ecx, eax
mov byte [r8 + 2], cl
movzx eax, byte [r9]
inc r9
and al, 3
movzx ecx, r10b
movzx edx, al
imul edx, ecx
mov byte [r8 + 3], dl
add r8, 4
sub r11, 1
jne 0x140066280
test ebx, ebx
jle 0x140066300
movzx eax, byte [r9]
shr al, 6
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
inc r8
cmp ebx, 1
jle 0x14006631f
movzx ecx, byte [r9]
shr cl, 4
and cl, 3
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp ebx, 2
jle 0x140066500
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x1400664f3
cmp ecx, 1
jne 0x140066500
mov r11d, dword [rsp + 0x28]
cmp r11d, 8
jl 0x140066428
mov ebx, r11d
shr rbx, 3
mov eax, ebx
neg eax
lea r11d, [r11 + rax*8]
nop
movzx eax, byte [r9]
shr al, 7
movzx edx, al
movzx ecx, r10b
imul edx, ecx
movzx eax, r10b
mov byte [r8], dl
movzx ecx, byte [r9]
shr cl, 6
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 1], cl
movzx ecx, byte [r9]
shr cl, 5
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 2], cl
movzx ecx, byte [r9]
shr cl, 4
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 3], cl
movzx ecx, byte [r9]
shr cl, 3
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 4], cl
movzx ecx, byte [r9]
shr cl, 2
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, r10b
mov byte [r8 + 5], cl
movzx ecx, byte [r9]
shr cl, 1
and cl, 1
movzx ecx, cl
imul ecx, eax
mov byte [r8 + 6], cl
movzx eax, byte [r9]
inc r9
and al, 1
movzx ecx, r10b
movzx edx, al
imul edx, ecx
mov byte [r8 + 7], dl
add r8, 8
sub rbx, 1
jne 0x140066360
test r11d, r11d
jle 0x140066444
movzx eax, byte [r9]
shr al, 7
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
inc r8
cmp r11d, 1
jle 0x140066464
movzx ecx, byte [r9]
shr cl, 6
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 2
jle 0x140066484
movzx ecx, byte [r9]
shr cl, 5
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 3
jle 0x1400664a4
movzx ecx, byte [r9]
shr cl, 4
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 4
jle 0x1400664c4
movzx ecx, byte [r9]
shr cl, 3
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 5
jle 0x1400664e4
movzx ecx, byte [r9]
shr cl, 2
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
inc r8
cmp r11d, 6
jle 0x140066500
movzx ecx, byte [r9]
shr cl, 1
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
mov r8d, dword [rsp + 0x20]
cmp r8d, dword [rsp + 0x108]
je 0x140066589
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rcx + 0x18]
lea rcx, [rbp - 1]
add rdx, rdi
cmp r8d, 1
jne 0x140066544
test rcx, rcx
js 0x140066589
nop dword [rax]
mov byte [rdx + rcx*2 + 1], 0xff
movzx eax, byte [rcx + rdx]
mov byte [rdx + rcx*2], al
sub rcx, 1
jns 0x140066530
jmp 0x140066589
test rcx, rcx
js 0x140066589
lea r8, [rcx*2 + 1]
add r8, rdx
lea rdx, [rdx + rcx*4]
add r8, rcx
add rdx, 2
nop
sub rcx, 1
mov byte [rdx + 1], 0xff
movzx eax, byte [r8 + 1]
lea r8, [r8 - 3]
mov byte [rdx], al
lea rdx, [rdx - 4]
movzx eax, byte [r8 + 3]
mov byte [rdx + 3], al
movzx eax, byte [r8 + 2]
mov byte [rdx + 2], al
jns 0x140066560
mov r10d, dword [rsp + 0x118]
inc r13d
mov ecx, dword [rsp + 0x120]
mov rdx, qword [rsp + 0xf0]
cmp r13d, r10d
jb 0x140065e80
mov eax, 1
jmp 0x14006660a
cmp ecx, 0x10
jne 0x1400665f3
mov r9, qword [rdx + 0x18]
imul r12d, r11d
mov r8, r9
imul r12d, r10d
test r12d, r12d
je 0x1400665f3
mov r10d, r12d
nop
movzx edx, byte [r9]
lea r9, [r9 + 2]
movzx ecx, byte [r8 + 1]
lea r8, [r8 + 2]
shl dx, 8
or dx, cx
mov word [r8 - 2], dx
sub r10, 1
jne 0x1400665d0
mov eax, 1
jmp 0x14006660a
lea rax, str.Corrupt_PNG
mov qword [0x1400fee30], rax
xor eax, eax
mov r15, qword [rsp + 0xf8]
add rsp, 0xb0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret