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

Disassembly:
mov dword [rsp + 0x20], r9d
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 ebp, r8d
mov r15d, dword [rsp + 0x108]
mov r13d, r9d
mov qword [rsp + 0x70], r10
mov rdi, rdx
sete r10b
mov dword [rsp + 0x30], r11d
inc r10d
mov rsi, rcx
mov ebx, r10d
imul ebx, r9d
mov eax, ebx
imul eax, r11d
mov dword [rsp + 0x3c], eax
mov rax, qword [rcx]
mov r8d, dword [rax + 8]
mov dword [rsp + 0xe0], r8d
imul r8d, r10d
mov dword [rsp + 0x20], r8d
test r11d, r11d
js 0x1800e1486
test r15d, r15d
js 0x1800e1486
je 0x1800e1441
mov eax, 0x7fffffff
cdq
idiv r15d
cmp r11d, eax
jg 0x1800e1486
mov ecx, r11d
imul ecx, r15d
test ecx, ecx
js 0x1800e1486
test ebx, ebx
js 0x1800e1486
je 0x1800e145e
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x1800e1486
mov eax, ebx
imul eax, r11d
imul eax, r15d
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, dword [rsp + 0x20]
xor r10d, r10d
mov r11d, dword [rsp + 0x100]
mov r14, rax
jmp 0x1800e148c
xor r10d, r10d
mov r14d, r10d
mov qword [rsp + 0x40], r14
mov qword [rsi + 0x18], r14
test r14, r14
jne 0x1800e14c4
mov edx, dword [0x1803325b0]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x1800e1f56
mov esi, dword [rsp + 0xe0]
test esi, esi
js 0x1800e241d
test r11d, r11d
js 0x1800e241d
je 0x1800e14ef
mov eax, 0x7fffffff
cdq
idiv r11d
cmp esi, eax
jg 0x1800e241d
mov r9d, esi
imul r9d, r11d
mov dword [rsp + 0x24], r9d
test r9d, r9d
js 0x1800e241d
mov edx, dword [rsp + 0x110]
test edx, edx
js 0x1800e241d
je 0x1800e1532
mov eax, 0x7fffffff
cdq
idiv dword [rsp + 0x110]
cmp r9d, eax
jg 0x1800e241d
mov edx, dword [rsp + 0x110]
mov eax, r9d
imul eax, edx
cmp eax, 0x7ffffff8
jg 0x1800e241d
lea r9d, [rax + 7]
shr r9d, 3
mov dword [rsp + 0x38], r9d
lea eax, [r9 + 1]
imul eax, r15d
cmp ebp, eax
jae 0x1800e1586
mov edx, dword [0x1803325b0]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.not_enough_pixels
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x1800e1f56
mov qword [rsp + 0xe8], r12
mov ecx, r10d
mov dword [rsp + 0x34], ecx
lea rbp, [0x180000000]
test r15d, r15d
je 0x1800e1f77
movsxd r15, r8d
mov qword [rsp + 0x50], r15
movsxd r12, ebx
movzx ebp, byte [rdi]
mov r8d, ecx
mov ebx, dword [rsp + 0x3c]
inc rdi
imul r8d, ebx
add r8, r14
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x28], r8
cmp ebp, 4
ja 0x1800e1fdb
cmp edx, 8
jge 0x1800e1612
cmp r9d, r11d
ja 0x1800e1f29
mov eax, r13d
mov dword [rsp + 0x20], 1
imul eax, r11d
mov r15d, 1
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x30], r9d
sub eax, r9d
add r8, rax
mov qword [rsp + 0x28], r8
mov r9, r8
sub r9, rbx
test ecx, ecx
mov qword [rsp + 0x48], r9
lea rcx, [0x180000000]
jne 0x1800e1630
movzx ebp, byte [rbp + rcx + 0x267224]
test r15, r15
jle 0x1800e174a
mov r13, r9
mov r14, r8
sub r13, rdi
mov rbx, rdi
sub r14, rdi
mov rsi, r15
nop dword [rax + rax]
cmp ebp, 6
ja case.default.0x1800e1662
movsxd rax, ebp
mov eax, dword [rcx + rax*4 + 0xe2448]
add rax, rcx
jmp rax
inc rbx
sub rsi, 1
je 0x1800e173b
lea rcx, [0x180000000]
jmp 0x1800e1650
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1800e173b
jmp case.0x1800e1662.0
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1800e173b
jmp case.0x1800e1662.1
movzx eax, byte [rbx + r13]
add al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1800e173b
jmp case.0x1800e1662.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 0x1800e173b
jmp case.0x1800e1662.3
movzx edx, byte [rbx + r13]
xor r8d, r8d
xor ecx, ecx
call fcn.1800e1340
add al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x1800e1662.4
mov r8, qword [rsp + 0x28]
xor r10d, r10d
mov r9, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x100]
mov edx, dword [rsp + 0x110]
mov esi, dword [rsp + 0xe0]
mov r13d, dword [rsp + 0xf8]
cmp edx, 8
jne 0x1800e17a3
cmp esi, r13d
je 0x1800e175c
movsxd rax, esi
mov byte [rax + r8], 0xff
movsxd rax, r13d
movsxd rcx, esi
jmp 0x1800e17c8
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1800e173b
jmp case.0x1800e1662.5
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x1800e1662.6
jmp 0x1800e173b
cmp edx, 0x10
jne 0x1800e17c1
cmp esi, r13d
je 0x1800e17b4
mov word [r15 + r8], 0xffff
movsxd r13, dword [rsp + 0x20]
mov rax, r12
mov rcx, r13
jmp 0x1800e17cd
mov eax, 1
mov ecx, eax
mov r13d, dword [rsp + 0x20]
add rdi, rcx
lea r14, [rax + r9]
cmp dword [rsp + 0x110], 8
lea rbx, [rax + r8]
mov qword [rsp + 0x68], r14
jl 0x1800e1c64
cmp esi, dword [rsp + 0xf8]
je 0x1800e1c64
cmp ebp, 6
ja case.default.0x1800e1816
lea r8, [0x180000000]
movsxd rax, ebp
mov ecx, dword [r8 + rax*4 + 0xe2464]
add rcx, r8
jmp rcx
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1800e1816
movsxd r10, r13d
mov r9d, eax
nop dword [rax + rax]
test r15, r15
jle 0x1800e1852
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 0x1800e1841
mov byte [r15 + rbx], 0xff
add rdi, r10
add rbx, r12
sub r9, 1
jne 0x1800e1830
jmp case.default.0x1800e1816
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1800e1816
movsxd r11, r13d
mov r10d, eax
nop dword [rax + rax]
test r15, r15
jle 0x1800e18b5
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 0x1800e18a0
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x1800e1880
jmp case.default.0x1800e1816
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1800e1816
movsxd rsi, r13d
mov r11d, eax
nop
test r13d, r13d
jle 0x1800e19b0
cmp r13d, 0x40
jb 0x1800e19b0
lea eax, [r13 - 1]
xor r10d, r10d
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + rbx]
cmp rbx, rax
ja 0x1800e1913
cmp rdx, rdi
jae 0x1800e19b0
lea rax, [rcx + r14]
cmp rbx, rax
ja 0x1800e1925
cmp rdx, r14
jae 0x1800e19b0
mov ecx, r13d
and ecx, 0x8000003f
jge 0x1800e1937
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 0x1800e1950
cmp r10, r15
jge 0x1800e19e5
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 0x1800e19d0
mov byte [r15 + rbx], 0xff
add rdi, rsi
add rbx, r12
add r14, r12
mov r10d, 0
sub r11, 1
jne 0x1800e18e0
jmp case.default.0x1800e1816
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1800e1816
movsxd rbp, r13d
mov esi, eax
nop word [rax + rax]
test r15, r15
jle 0x1800e1a60
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 0x1800e1a40
mov byte [r15 + rbx], 0xff
add rdi, rbp
add rbx, r12
add r14, r12
sub rsi, 1
jne 0x1800e1a20
jmp case.default.0x1800e1816
lea r8d, [r11 - 1]
cmp r8d, 1
jb case.default.0x1800e1816
movsxd rax, r13d
lea rcx, [r15 + rbx]
mov qword [rsp + 0x28], rax
lea r9, [r12 + r15]
mov edx, r8d
mov rax, r12
mov r8, qword [rsp + 0x28]
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 0x1800e1b2b
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.1800e1340
add al, byte [r14 + rsi]
mov byte [r12 + rsi], al
lea rsi, [rsi + 1]
sub rbp, 1
jne 0x1800e1ae1
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 + 0x28]
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 0x1800e1ac0
jmp case.default.0x1800e1816
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1800e1816
movsxd r11, r13d
mov r10d, eax
test r15, r15
jle 0x1800e1ba9
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 0x1800e1b90
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x1800e1b73
jmp case.default.0x1800e1816
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1800e1816
movsxd r11, r13d
mov r10d, eax
nop dword [rax + rax]
test r15, r15
jle 0x1800e1c05
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 0x1800e1bf0
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x1800e1bd0
mov edx, dword [rsp + 0x110]
cmp edx, 0x10
jne 0x1800e1eed
mov r11d, dword [rsp + 0x100]
test r11d, r11d
je 0x1800e1ef5
mov rcx, qword [rsp + 0x90]
mov eax, r11d
nop dword [rax]
nop word [rax + rax]
mov byte [r15 + rcx + 1], 0xff
add rcx, r12
sub rax, 1
jne 0x1800e1c50
jmp 0x1800e1ef5
mov r13d, dword [rsp + 0x30]
dec r13d
imul r13d, dword [rsp + 0x20]
mov dword [rsp + 0x28], r13d
cmp ebp, 6
ja case.default.0x1800e1c97
lea rdx, [0x180000000]
movsxd rax, ebp
movsxd rsi, r13d
mov ecx, dword [rdx + rax*4 + 0xe2480]
add rcx, rdx
jmp rcx
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp case.default.0x1800e1c97
test r13d, r13d
jle case.default.0x1800e1c97
sub rbx, rdi
mov rcx, rdi
mov rdx, rbx
sub rdx, r15
movzx eax, byte [rdx + rcx]
add al, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub rsi, 1
jne 0x1800e1cc1
jmp case.default.0x1800e1c97
mov rdx, r10
test r13d, r13d
jle 0x1800e1db3
cmp r13d, 0x40
jb 0x1800e1db3
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rdi + rcx]
lea r8, [rbx + rcx]
cmp rbx, rax
ja 0x1800e1d0c
cmp r8, rdi
jae 0x1800e1db3
lea rax, [r14 + rcx]
cmp rbx, rax
ja 0x1800e1d1e
cmp r8, r14
jae 0x1800e1db3
mov ecx, r13d
and ecx, 0x8000003f
jge 0x1800e1d30
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 0x1800e1d50
cmp rdx, rsi
jge case.default.0x1800e1c97
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 0x1800e1dd0
jmp case.default.0x1800e1c97
test r13d, r13d
jle case.default.0x1800e1c97
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 0x1800e1e01
jmp case.default.0x1800e1c97
test r13d, r13d
jle case.default.0x1800e1c97
sub r14, rbx
mov rbp, rbx
sub rbp, r15
mov rax, rdi
sub rax, rbx
lea r13, [r14 + r15]
lea rbx, [rax + r15]
nop word [rax + rax]
movzx r8d, byte [r14 + rbp]
movzx edx, byte [rbp + r13]
movzx ecx, byte [rbp]
call fcn.1800e1340
add al, byte [rbx + rbp]
mov byte [r15 + rbp], al
lea rbp, [rbp + 1]
sub rsi, 1
jne 0x1800e1e50
mov r13d, dword [rsp + 0x28]
jmp case.default.0x1800e1c97
test r13d, r13d
jle case.default.0x1800e1c97
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 0x1800e1e90
jmp case.default.0x1800e1c97
test r13d, r13d
jle case.default.0x1800e1c97
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.1800e1340
add al, byte [r14]
mov byte [r14 + rbx], al
lea r14, [r14 + 1]
sub rsi, 1
jne 0x1800e1ec0
mov edx, dword [rsp + 0x110]
movsxd rax, r13d
add rdi, rax
mov r11d, dword [rsp + 0x100]
mov ecx, dword [rsp + 0x34]
xor r10d, r10d
mov r9d, dword [rsp + 0x38]
inc ecx
mov r13d, dword [rsp + 0xf8]
mov r14, qword [rsp + 0x40]
mov dword [rsp + 0x34], ecx
cmp ecx, dword [rsp + 0x108]
jae 0x1800e1f68
mov esi, dword [rsp + 0xe0]
jmp 0x1800e15b0
mov edx, dword [0x1803325b0]
mov rax, qword gs:[0x58]
mov ecx, 0x20
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 r15d, dword [rsp + 0x108]
lea rbp, [0x180000000]
cmp edx, 8
jge 0x1800e23d5
test r15d, r15d
je 0x1800e2413
mov r12d, dword [rsp + 0x118]
lea r14, [rbp + 0x2672f0]
movsxd rax, edx
mov ebp, r13d
add r14, rax
movsxd rsi, r11d
imul ebp, r11d
mov r15d, r9d
nop dword [rax + rax]
mov rax, qword [rsp + 0x40]
mov ecx, r10d
imul ecx, dword [rsp + 0x3c]
mov r9, rbp
sub r9, r15
add r9, rax
add r9, rcx
lea r11, [rax + rcx]
mov r8, r11
test r12d, r12d
jne 0x1800e1fff
movzx r10d, byte [r14]
jmp 0x1800e2002
mov edx, dword [0x1803325b0]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_filter
jmp 0x1800e1f48
mov r10b, 1
cmp edx, 4
jne 0x1800e2076
mov edi, dword [rsp + 0x24]
cmp edi, 2
jl 0x1800e2055
mov ebx, edi
shr rbx, 1
mov eax, ebx
neg eax
lea edi, [rdi + rax*2]
nop dword [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 rbx, 1
jne 0x1800e2020
test edi, edi
jle 0x1800e2319
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x1800e2319
cmp edx, 2
jne 0x1800e2157
mov edi, dword [rsp + 0x24]
cmp edi, 4
jl 0x1800e2105
mov ebx, edi
shr rbx, 2
mov eax, ebx
neg eax
lea edi, [rdi + 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 rbx, 1
jne 0x1800e20a0
test edi, edi
jle 0x1800e2120
movzx eax, byte [r9]
shr al, 6
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
inc r8
cmp edi, 1
jle 0x1800e213f
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 edi, 2
jle 0x1800e2319
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x1800e230c
cmp edx, 1
jne 0x1800e2319
mov ebx, dword [rsp + 0x24]
cmp ebx, 8
jl 0x1800e2248
mov edi, ebx
shr rdi, 3
mov eax, edi
neg eax
lea ebx, [rbx + rax*8]
nop word [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 rdi, 1
jne 0x1800e2180
test ebx, ebx
jle 0x1800e2263
movzx eax, byte [r9]
shr al, 7
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
inc r8
cmp ebx, 1
jle 0x1800e2282
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 ebx, 2
jle 0x1800e22a1
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 ebx, 3
jle 0x1800e22c0
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 ebx, 4
jle 0x1800e22df
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 ebx, 5
jle 0x1800e22fe
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 ebx, 6
jle 0x1800e2319
movzx ecx, byte [r9]
shr cl, 1
and cl, 1
movzx eax, r10b
movzx ecx, cl
imul ecx, eax
mov byte [r8], cl
mov eax, dword [rsp + 0xe0]
cmp eax, r13d
je 0x1800e23a9
lea rcx, [rsi - 1]
cmp eax, 1
jne 0x1800e2357
test rcx, rcx
js 0x1800e23a9
nop word [rax + rax]
mov byte [r11 + rcx*2 + 1], 0xff
movzx eax, byte [rcx + r11]
mov byte [r11 + rcx*2], al
sub rcx, 1
jns 0x1800e2340
jmp 0x1800e23a9
test rcx, rcx
js 0x1800e23a9
lea r8, [rcx*2 + 1]
add r8, r11
lea rdx, [rcx*4 + 2]
add r8, rcx
add rdx, r11
nop word [rax + rax]
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 0x1800e2380
mov r10, qword [rsp + 0x70]
mov edx, dword [rsp + 0x110]
inc r10d
mov qword [rsp + 0x70], r10
cmp r10d, dword [rsp + 0x108]
jb 0x1800e1fb0
mov eax, 1
jmp 0x1800e1f4e
cmp edx, 0x10
jne 0x1800e2413
imul r13d, r11d
mov r8, r14
imul r13d, r15d
test r13d, r13d
je 0x1800e2413
mov r9d, r13d
nop dword [rax]
movzx edx, byte [r14]
lea r14, [r14 + 2]
movzx ecx, byte [r8 + 1]
lea r8, [r8 + 2]
shl dx, 8
or dx, cx
mov word [r8 - 2], dx
sub r9, 1
jne 0x1800e23f0
mov eax, 1
jmp 0x1800e1f4e
mov edx, dword [0x1803325b0]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x1800e1f56