Function at 0x180047a60
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0xa0
mov r11d, dword [rsp + 0x100]
xor r10d, r10d
cmp dword [rsp + 0x110], 0x10
mov esi, r8d
mov r15d, dword [rsp + 0x108]
mov r13d, r9d
mov qword [rsp + 0x70], r10
mov rdi, rdx
sete r10b
mov dword [rsp + 0x38], r11d
inc r10d
mov rbp, rcx
mov ebx, r10d
imul ebx, r9d
mov eax, ebx
imul eax, r11d
mov dword [rsp + 0x44], eax
mov rax, qword [rcx]
mov r14d, dword [rax + 8]
mov r8d, r14d
imul r8d, r10d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x24], r8d
test r11d, r11d
js 0x180047b37
test r15d, r15d
js 0x180047b37
je 0x180047af6
mov eax, 0x7fffffff
cdq
idiv r15d
cmp r11d, eax
jg 0x180047b37
mov ecx, r11d
imul ecx, r15d
test ecx, ecx
js 0x180047b37
test ebx, ebx
js 0x180047b37
je 0x180047b13
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x180047b37
mov eax, ebx
imul eax, r11d
imul eax, r15d
movsxd rcx, eax
call fcn.180074b18
mov r8d, dword [rsp + 0x24]
xor r10d, r10d
mov r11d, dword [rsp + 0x100]
jmp 0x180047b3d
xor r10d, r10d
mov eax, r10d
mov qword [rbp + 0x18], rax
test rax, rax
jne 0x180047b70
mov edx, dword [0x1801bd240]
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x180048607
test r14d, r14d
js 0x180048aed
test r11d, r11d
js 0x180048aed
je 0x180047b96
mov eax, 0x7fffffff
cdq
idiv r11d
cmp r14d, eax
jg 0x180048aed
mov ecx, r14d
imul ecx, r11d
mov dword [rsp + 0x28], ecx
test ecx, ecx
js 0x180048aed
mov edx, dword [rsp + 0x110]
test edx, edx
js 0x180048aed
je 0x180047bd6
mov eax, 0x7fffffff
cdq
idiv dword [rsp + 0x110]
cmp ecx, eax
jg 0x180048aed
mov edx, dword [rsp + 0x110]
mov eax, ecx
imul eax, edx
cmp eax, 0x7ffffff8
jg 0x180048aed
lea r9d, [rax + 7]
shr r9d, 3
mov dword [rsp + 0x40], r9d
lea eax, [r9 + 1]
imul eax, r15d
cmp esi, eax
jae 0x180047c29
mov edx, dword [0x1801bd240]
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax + rdx*8]
lea rdx, str.not_enough_pixels
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x180048607
mov qword [rsp + 0xe8], r12
lea r12, [0x180000000]
mov dword [rsp + 0x3c], r10d
mov esi, r10d
test r15d, r15d
je 0x18004862c
movsxd r15, r8d
mov qword [rsp + 0x50], r15
movsxd r12, ebx
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbp + 0x18]
mov ecx, esi
movzx ebp, byte [rdi]
inc rdi
mov ebx, dword [rsp + 0x44]
imul ecx, ebx
add r8, rcx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x30], r8
cmp ebp, 4
ja 0x18004869f
cmp edx, 8
jge 0x180047cc4
cmp r9d, r11d
ja 0x1800485da
mov eax, r13d
mov dword [rsp + 0x24], 1
imul eax, r11d
mov r15d, 1
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x38], r9d
sub eax, r9d
add r8, rax
mov qword [rsp + 0x30], r8
mov r9, r8
lea rcx, [0x180000000]
sub r9, rbx
mov qword [rsp + 0x48], r9
test esi, esi
jne 0x180047ce2
movzx ebp, byte [rbp + rcx + 0x1b92d8]
test r15, r15
jle 0x180047df8
mov r13, r9
mov r14, r8
sub r13, rdi
mov rbx, rdi
sub r14, rdi
mov rsi, r15
nop dword [rax]
cmp ebp, 6
ja case.default.0x180047d12
movsxd rax, ebp
mov eax, dword [rcx + rax*4 + 0x48b18]
add rax, rcx
jmp rax
inc rbx
sub rsi, 1
je 0x180047deb
lea rcx, [0x180000000]
jmp 0x180047d00
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x180047deb
jmp case.0x180047d12.0
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x180047deb
jmp case.0x180047d12.1
movzx eax, byte [rbx + r13]
add al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x180047deb
jmp case.0x180047d12.2
movzx eax, byte [rbx + r13]
lea rbx, [rbx + 1]
shr al, 1
add al, byte [rbx - 1]
mov byte [r14 + rbx - 1], al
sub rsi, 1
je 0x180047deb
jmp case.0x180047d12.3
movzx edx, byte [rbx + r13]
xor r8d, r8d
xor ecx, ecx
call fcn.18004ddb0
add al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x180047d12.4
mov r8, qword [rsp + 0x30]
xor r10d, r10d
mov r9, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x100]
mov edx, dword [rsp + 0x110]
mov r14d, dword [rsp + 0x20]
mov r13d, dword [rsp + 0xf8]
cmp edx, 8
jne 0x180047e53
cmp r14d, r13d
je 0x180047e0a
movsxd rax, r14d
mov byte [rax + r8], 0xff
movsxd rax, r13d
movsxd rcx, r14d
jmp 0x180047e78
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x180047deb
jmp case.0x180047d12.5
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x180047d12.6
jmp 0x180047deb
cmp edx, 0x10
jne 0x180047e71
cmp r14d, r13d
je 0x180047e64
mov word [r15 + r8], 0xffff
movsxd r13, dword [rsp + 0x24]
mov rax, r12
mov rcx, r13
jmp 0x180047e7d
mov eax, 1
mov ecx, eax
mov r13d, dword [rsp + 0x24]
add rdi, rcx
lea r14, [rax + r9]
cmp dword [rsp + 0x110], 8
lea rbx, [rax + r8]
mov qword [rsp + 0x68], r14
jl 0x180048314
mov eax, dword [rsp + 0x20]
cmp eax, dword [rsp + 0xf8]
je 0x180048314
cmp ebp, 6
ja case.default.0x180047eca
lea r8, [0x180000000]
movsxd rax, ebp
mov ecx, dword [r8 + rax*4 + 0x48b34]
add rcx, r8
jmp rcx
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180047eca
movsxd r10, r13d
mov r9d, eax
nop
test r15, r15
jle 0x180047f02
mov r8, rdi
mov rcx, rbx
sub r8, rbx
mov rdx, r15
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x180047ef1
mov byte [r15 + rbx], 0xff
add rdi, r10
add rbx, r12
sub r9, 1
jne 0x180047ee0
jmp case.default.0x180047eca
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180047eca
movsxd r11, r13d
mov r10d, eax
nop dword [rax + rax]
test r15, r15
jle 0x180047f65
mov r8, rbx
mov r9, rbx
sub r8, r12
mov rcx, rdi
sub r8, rdi
mov rdx, r15
sub r9, rdi
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
add al, byte [rcx]
mov byte [rcx + r9], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x180047f50
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x180047f30
jmp case.default.0x180047eca
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180047eca
movsxd rsi, r13d
mov r11d, eax
nop
test r13d, r13d
jle 0x180048060
cmp r13d, 0x40
jb 0x180048060
lea eax, [r13 - 1]
xor r10d, r10d
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + rbx]
cmp rbx, rax
ja 0x180047fc3
cmp rdx, rdi
jae 0x180048060
lea rax, [rcx + r14]
cmp rbx, rax
ja 0x180047fd5
cmp rdx, r14
jae 0x180048060
mov ecx, r13d
and ecx, 0x8000003f
jge 0x180047fe7
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r13d
mov rdx, r14
sub eax, ecx
mov rcx, rdi
sub rcx, rbx
movsxd r8, eax
sub rdx, rbx
lea rax, [rbx + 0x10]
nop
movdqu xmm0, xmmword [rdx + rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rax + rcx]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rdx + rax - 0x40]
movdqu xmmword [rax - 0x50], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rcx + rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rax - 0x40], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rcx + rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rax - 0x30], xmm1
paddb xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
cmp r10, r8
jl 0x180048000
cmp r10, r15
jge 0x180048095
mov r8, r14
lea rcx, [r10 + rdi]
mov r9, rbx
sub r8, rdi
sub r9, rdi
mov rdx, r15
sub rdx, r10
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
add al, byte [rcx]
mov byte [rcx + r9], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x180048080
mov byte [r15 + rbx], 0xff
add rdi, rsi
add rbx, r12
add r14, r12
mov r10d, 0
sub r11, 1
jne 0x180047f90
jmp case.default.0x180047eca
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180047eca
movsxd rbp, r13d
mov esi, eax
nop word [rax + rax]
test r15, r15
jle 0x180048110
mov r8, rbx
mov r10, rdi
sub r8, r12
sub r10, r14
sub r8, r14
mov r11, rbx
sub r11, r14
mov rdx, r14
mov r9, r15
movzx ecx, byte [r8 + rdx]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
add ecx, eax
shr ecx, 1
add cl, byte [r10 + rdx - 1]
mov byte [r11 + rdx - 1], cl
sub r9, 1
jne 0x1800480f0
mov byte [r15 + rbx], 0xff
add rdi, rbp
add rbx, r12
add r14, r12
sub rsi, 1
jne 0x1800480d0
jmp case.default.0x180047eca
lea r8d, [r11 - 1]
cmp r8d, 1
jb case.default.0x180047eca
movsxd rax, r13d
lea rcx, [r15 + rbx]
mov qword [rsp + 0x30], rax
lea r9, [r12 + r15]
mov edx, r8d
mov rax, r12
mov r8, qword [rsp + 0x30]
sub rax, rbx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x88], r9
mov qword [rsp + 0x48], rdx
nop dword [rax]
test r15, r15
jle 0x1800481db
mov rsi, rcx
mov r13, r14
lea rcx, [rax + r14]
sub rsi, r9
sub r13, rbx
mov rbp, r15
add rax, rdi
mov r15, rcx
mov r14, rax
movzx r8d, byte [rsi + r13]
movzx edx, byte [r15 + rsi]
movzx ecx, byte [rsi]
call fcn.18004ddb0
add al, byte [r14 + rsi]
mov byte [r12 + rsi], al
lea rsi, [rsi + 1]
sub rbp, 1
jne 0x180048191
mov r14, qword [rsp + 0x68]
mov r15, qword [rsp + 0x50]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x88]
sub rax, r12
mov byte [rcx], 0xff
add rcx, r12
mov qword [rsp + 0x60], rax
add r14, r12
mov qword [rsp + 0x58], rcx
add rdi, r8
mov qword [rsp + 0x68], r14
add rbx, r12
sub rdx, 1
mov qword [rsp + 0x48], rdx
jne 0x180048170
jmp case.default.0x180047eca
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180047eca
movsxd r11, r13d
mov r10d, eax
test r15, r15
jle 0x180048259
mov r8, rbx
mov r9, rbx
sub r8, r12
mov rcx, rdi
sub r8, rdi
mov rdx, r15
sub r9, rdi
nop dword [rax]
movzx eax, byte [rcx + r8]
lea rcx, [rcx + 1]
shr al, 1
add al, byte [rcx - 1]
mov byte [rcx + r9 - 1], al
sub rdx, 1
jne 0x180048240
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x180048223
jmp case.default.0x180047eca
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180047eca
movsxd r11, r13d
mov r10d, eax
nop dword [rax + rax]
test r15, r15
jle 0x1800482b5
mov r8, rbx
mov r9, rbx
sub r8, r12
mov rcx, rdi
sub r8, rdi
mov rdx, r15
sub r9, rdi
nop word [rax + rax]
movzx eax, byte [rcx + r8]
add al, byte [rcx]
mov byte [rcx + r9], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1800482a0
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x180048280
mov edx, dword [rsp + 0x110]
mov rbp, qword [rsp + 0xe0]
cmp edx, 0x10
jne 0x1800485a5
mov rcx, qword [rsp + 0x90]
add rcx, qword [rbp + 0x18]
mov r11d, dword [rsp + 0x100]
test r11d, r11d
je 0x1800485ad
mov eax, r11d
nop
mov byte [r15 + rcx + 1], 0xff
add rcx, r12
sub rax, 1
jne 0x180048300
jmp 0x1800485ad
mov r13d, dword [rsp + 0x38]
dec r13d
imul r13d, dword [rsp + 0x24]
mov dword [rsp + 0x30], r13d
cmp ebp, 6
ja case.default.0x180048347
lea rdx, [0x180000000]
movsxd rax, ebp
movsxd rsi, r13d
mov ecx, dword [rdx + rax*4 + 0x48b50]
add rcx, rdx
jmp rcx
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.180069fc0
jmp case.default.0x180048347
test r13d, r13d
jle case.default.0x180048347
sub rbx, rdi
mov rcx, rdi
mov rdx, rbx
sub rdx, r15
movzx eax, byte [rcx + rdx]
add al, byte [rcx]
mov byte [rcx + rbx], al
lea rcx, [rcx + 1]
sub rsi, 1
jne 0x180048371
jmp case.default.0x180048347
mov rdx, r10
test r13d, r13d
jle 0x180048463
cmp r13d, 0x40
jb 0x180048463
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rdi + rcx]
lea r8, [rbx + rcx]
cmp rbx, rax
ja 0x1800483bc
cmp r8, rdi
jae 0x180048463
lea rax, [r14 + rcx]
cmp rbx, rax
ja 0x1800483ce
cmp r8, r14
jae 0x180048463
mov ecx, r13d
and ecx, 0x8000003f
jge 0x1800483e0
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r13d
mov r8, rbx
sub eax, ecx
mov rcx, r14
sub rcx, rdi
movsxd r9, eax
sub r8, rdi
mov rax, rdi
nop word [rax + rax]
movdqu xmm0, xmmword [rax]
add rdx, 0x40
movdqu xmm1, xmmword [rcx + rax]
movdqu xmm2, xmmword [rcx + rax + 0x10]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmmword [rax + r8 - 0x40], xmm1
paddb xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rcx + rax - 0x20]
movdqu xmmword [r8 + rax - 0x30], xmm2
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rcx + rax - 0x10]
movdqu xmmword [r8 + rax - 0x20], xmm1
paddb xmm2, xmm0
movdqu xmmword [r8 + rax - 0x10], xmm2
cmp rdx, r9
jl 0x180048400
cmp rdx, rsi
jge case.default.0x180048347
sub r14, rdi
lea rcx, [rdi + rdx]
sub rbx, rdi
sub rsi, rdx
nop dword [rax]
movzx eax, byte [rcx + r14]
add al, byte [rcx]
mov byte [rcx + rbx], al
lea rcx, [rcx + 1]
sub rsi, 1
jne 0x180048480
jmp case.default.0x180048347
test r13d, r13d
jle case.default.0x180048347
sub rbx, r14
mov r8, rdi
mov rdx, rbx
sub rdx, r15
sub r8, r14
movzx ecx, byte [rdx + r14]
movzx eax, byte [r14]
lea r14, [r14 + 1]
add ecx, eax
shr ecx, 1
add cl, byte [r8 + r14 - 1]
mov byte [rbx + r14 - 1], cl
sub rsi, 1
jne 0x1800484b1
jmp case.default.0x180048347
test r13d, r13d
jle case.default.0x180048347
sub r14, rbx
mov rbp, rbx
sub rbp, r15
mov rax, rdi
sub rax, rbx
lea r13, [r15 + r14]
lea rbx, [rax + r15]
nop word [rax + rax]
movzx r8d, byte [r14 + rbp]
movzx edx, byte [rbp + r13]
movzx ecx, byte [rbp]
call fcn.18004ddb0
add al, byte [rbx + rbp]
mov byte [r15 + rbp], al
lea rbp, [rbp + 1]
sub rsi, 1
jne 0x180048500
mov r13d, dword [rsp + 0x30]
jmp case.default.0x180048347
test r13d, r13d
jle case.default.0x180048347
sub rbx, rdi
mov rcx, rdi
mov rdx, rbx
sub rdx, r15
nop dword [rax]
movzx eax, byte [rcx + rdx]
lea rcx, [rcx + 1]
shr al, 1
add al, byte [rcx - 1]
mov byte [rcx + rbx - 1], al
sub rsi, 1
jne 0x180048540
jmp case.default.0x180048347
test r13d, r13d
jle case.default.0x180048347
sub rbx, rdi
mov r14, rdi
mov rbp, rbx
sub rbp, r15
nop word [rax + rax]
movzx ecx, byte [r14 + rbp]
xor r8d, r8d
xor edx, edx
call fcn.18004ddb0
add al, byte [r14]
mov byte [r14 + rbx], al
lea r14, [r14 + 1]
sub rsi, 1
jne 0x180048570
mov edx, dword [rsp + 0x110]
mov rbp, qword [rsp + 0xe0]
movsxd rax, r13d
add rdi, rax
mov r11d, dword [rsp + 0x100]
mov esi, dword [rsp + 0x3c]
xor r10d, r10d
mov r9d, dword [rsp + 0x40]
inc esi
mov r13d, dword [rsp + 0xf8]
mov dword [rsp + 0x3c], esi
cmp esi, dword [rsp + 0x108]
jae 0x180048619
mov r14d, dword [rsp + 0x20]
jmp 0x180047c60
mov edx, dword [0x1801bd240]
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_width
mov qword [rcx + rax], rdx
xor eax, eax
mov r12, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, dword [rsp + 0x28]
lea r12, [0x180000000]
mov r15d, dword [rsp + 0x108]
cmp edx, 8
jge 0x180048a99
test r15d, r15d
je 0x180048ae3
lea rsi, [r12 + 0x19ba30]
movsxd rax, edx
mov r12d, dword [rsp + 0x118]
add rsi, rax
mov r14d, r13d
movsxd rbp, r11d
imul r14d, r11d
mov r15d, r9d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rsp + 0xe0]
mov edi, r10d
imul edi, dword [rsp + 0x44]
mov r9, r14
sub r9, r15
mov rax, qword [rax + 0x18]
add r9, rax
add r9, rdi
lea r8, [rax + rdi]
test r12d, r12d
jne 0x1800486c3
movzx r10d, byte [rsi]
jmp 0x1800486c6
mov edx, dword [0x1801bd240]
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_filter
jmp 0x1800485f9
mov r10b, 1
cmp edx, 4
jne 0x180048736
mov ebx, ecx
cmp ecx, 2
jl 0x180048715
mov r11d, ebx
shr r11, 1
mov eax, r11d
neg eax
lea ebx, [rbx + rax*2]
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 0x1800486e0
test ebx, ebx
jle 0x1800489e0
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x1800489e0
cmp edx, 2
jne 0x180048817
mov ebx, ecx
cmp ecx, 4
jl 0x1800487c5
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 0x180048760
test ebx, ebx
jle 0x1800487e0
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 0x1800487ff
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 0x1800489e0
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x1800489d3
cmp edx, 1
jne 0x1800489e0
mov r11d, ecx
cmp ecx, 8
jl 0x180048908
mov ebx, r11d
shr rbx, 3
mov eax, ebx
neg eax
lea r11d, [r11 + rax*8]
nop dword [rax + rax]
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 0x180048840
test r11d, r11d
jle 0x180048924
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 0x180048944
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 0x180048964
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 0x180048984
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 0x1800489a4
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 0x1800489c4
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 0x1800489e0
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, r13d
je 0x180048a69
mov rax, qword [rsp + 0xe0]
lea rcx, [rbp - 1]
mov rdx, qword [rax + 0x18]
add rdx, rdi
cmp r8d, 1
jne 0x180048a24
test rcx, rcx
js 0x180048a69
nop dword [rax + rax]
mov byte [rdx + rcx*2 + 1], 0xff
movzx eax, byte [rcx + rdx]
mov byte [rdx + rcx*2], al
sub rcx, 1
jns 0x180048a10
jmp 0x180048a69
test rcx, rcx
js 0x180048a69
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 0x180048a40
mov r10, qword [rsp + 0x70]
mov edx, dword [rsp + 0x110]
inc r10d
mov ecx, dword [rsp + 0x28]
mov qword [rsp + 0x70], r10
cmp r10d, dword [rsp + 0x108]
jb 0x180048670
mov eax, 1
jmp 0x1800485ff
cmp edx, 0x10
jne 0x180048ae3
mov r9, qword [rbp + 0x18]
imul r13d, r11d
mov r8, r9
imul r13d, r15d
test r13d, r13d
je 0x180048ae3
mov r10d, r13d
nop word [rax + rax]
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 0x180048ac0
mov eax, 1
jmp 0x1800485ff
mov edx, dword [0x1801bd240]
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x180048607