Function at 0x1801dd180
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 0x1801dd256
test r15d, r15d
js 0x1801dd256
je 0x1801dd211
mov eax, 0x7fffffff
cdq
idiv r15d
cmp r11d, eax
jg 0x1801dd256
mov ecx, r11d
imul ecx, r15d
test ecx, ecx
js 0x1801dd256
test ebx, ebx
js 0x1801dd256
je 0x1801dd22e
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x1801dd256
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 0x1801dd25c
xor r10d, r10d
mov r14d, r10d
mov qword [rsp + 0x40], r14
mov qword [rsi + 0x18], r14
test r14, r14
jne 0x1801dd294
mov edx, dword [0x18067c038]
mov rax, qword gs:[0x58]
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x1801ddd26
mov esi, dword [rsp + 0xe0]
test esi, esi
js 0x1801de1ed
test r11d, r11d
js 0x1801de1ed
je 0x1801dd2bf
mov eax, 0x7fffffff
cdq
idiv r11d
cmp esi, eax
jg 0x1801de1ed
mov r9d, esi
imul r9d, r11d
mov dword [rsp + 0x24], r9d
test r9d, r9d
js 0x1801de1ed
mov edx, dword [rsp + 0x110]
test edx, edx
js 0x1801de1ed
je 0x1801dd302
mov eax, 0x7fffffff
cdq
idiv dword [rsp + 0x110]
cmp r9d, eax
jg 0x1801de1ed
mov edx, dword [rsp + 0x110]
mov eax, r9d
imul eax, edx
cmp eax, 0x7ffffff8
jg 0x1801de1ed
lea r9d, [rax + 7]
shr r9d, 3
mov dword [rsp + 0x38], r9d
lea eax, [r9 + 1]
imul eax, r15d
cmp ebp, eax
jae 0x1801dd356
mov edx, dword [0x18067c038]
mov rax, qword gs:[0x58]
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [rax + rdx*8]
lea rdx, str.not_enough_pixels
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x1801ddd26
mov qword [rsp + 0xe8], r12
mov ecx, r10d
mov dword [rsp + 0x34], ecx
lea rbp, [0x180000000]
test r15d, r15d
je 0x1801ddd47
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 0x1801dddab
cmp edx, 8
jge 0x1801dd3e2
cmp r9d, r11d
ja 0x1801ddcf9
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 0x1801dd400
movzx ebp, byte [rbp + rcx + 0x58dda4]
test r15, r15
jle 0x1801dd51a
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.0x1801dd432
movsxd rax, ebp
mov eax, dword [rcx + rax*4 + 0x1de218]
add rax, rcx
jmp rax
inc rbx
sub rsi, 1
je 0x1801dd50b
lea rcx, [0x180000000]
jmp 0x1801dd420
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1801dd50b
jmp case.0x1801dd432.0
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1801dd50b
jmp case.0x1801dd432.1
movzx eax, byte [rbx + r13]
add al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1801dd50b
jmp case.0x1801dd432.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 0x1801dd50b
jmp case.0x1801dd432.3
movzx edx, byte [rbx + r13]
xor r8d, r8d
xor ecx, ecx
call fcn.1801dd110
add al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x1801dd432.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 0x1801dd573
cmp esi, r13d
je 0x1801dd52c
movsxd rax, esi
mov byte [rax + r8], 0xff
movsxd rax, r13d
movsxd rcx, esi
jmp 0x1801dd598
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1801dd50b
jmp case.0x1801dd432.5
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x1801dd432.6
jmp 0x1801dd50b
cmp edx, 0x10
jne 0x1801dd591
cmp esi, r13d
je 0x1801dd584
mov word [r15 + r8], 0xffff
movsxd r13, dword [rsp + 0x20]
mov rax, r12
mov rcx, r13
jmp 0x1801dd59d
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 0x1801dda34
cmp esi, dword [rsp + 0xf8]
je 0x1801dda34
cmp ebp, 6
ja case.default.0x1801dd5e6
lea r8, [0x180000000]
movsxd rax, ebp
mov ecx, dword [r8 + rax*4 + 0x1de234]
add rcx, r8
jmp rcx
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1801dd5e6
movsxd r10, r13d
mov r9d, eax
nop dword [rax + rax]
test r15, r15
jle 0x1801dd622
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 0x1801dd611
mov byte [r15 + rbx], 0xff
add rdi, r10
add rbx, r12
sub r9, 1
jne 0x1801dd600
jmp case.default.0x1801dd5e6
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1801dd5e6
movsxd r11, r13d
mov r10d, eax
nop dword [rax + rax]
test r15, r15
jle 0x1801dd685
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 0x1801dd670
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x1801dd650
jmp case.default.0x1801dd5e6
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1801dd5e6
movsxd rsi, r13d
mov r11d, eax
nop
test r13d, r13d
jle 0x1801dd780
cmp r13d, 0x40
jb 0x1801dd780
lea eax, [r13 - 1]
xor r10d, r10d
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + rbx]
cmp rbx, rax
ja 0x1801dd6e3
cmp rdx, rdi
jae 0x1801dd780
lea rax, [rcx + r14]
cmp rbx, rax
ja 0x1801dd6f5
cmp rdx, r14
jae 0x1801dd780
mov ecx, r13d
and ecx, 0x8000003f
jge 0x1801dd707
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 0x1801dd720
cmp r10, r15
jge 0x1801dd7b5
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 0x1801dd7a0
mov byte [r15 + rbx], 0xff
add rdi, rsi
add rbx, r12
add r14, r12
mov r10d, 0
sub r11, 1
jne 0x1801dd6b0
jmp case.default.0x1801dd5e6
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1801dd5e6
movsxd rbp, r13d
mov esi, eax
nop word [rax + rax]
test r15, r15
jle 0x1801dd830
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 0x1801dd810
mov byte [r15 + rbx], 0xff
add rdi, rbp
add rbx, r12
add r14, r12
sub rsi, 1
jne 0x1801dd7f0
jmp case.default.0x1801dd5e6
lea r8d, [r11 - 1]
cmp r8d, 1
jb case.default.0x1801dd5e6
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 0x1801dd8fb
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.1801dd110
add al, byte [r14 + rsi]
mov byte [r12 + rsi], al
lea rsi, [rsi + 1]
sub rbp, 1
jne 0x1801dd8b1
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 0x1801dd890
jmp case.default.0x1801dd5e6
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1801dd5e6
movsxd r11, r13d
mov r10d, eax
test r15, r15
jle 0x1801dd979
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 0x1801dd960
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x1801dd943
jmp case.default.0x1801dd5e6
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x1801dd5e6
movsxd r11, r13d
mov r10d, eax
nop dword [rax + rax]
test r15, r15
jle 0x1801dd9d5
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 0x1801dd9c0
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x1801dd9a0
mov edx, dword [rsp + 0x110]
cmp edx, 0x10
jne 0x1801ddcbd
mov r11d, dword [rsp + 0x100]
test r11d, r11d
je 0x1801ddcc5
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 0x1801dda20
jmp 0x1801ddcc5
mov r13d, dword [rsp + 0x30]
dec r13d
imul r13d, dword [rsp + 0x20]
mov dword [rsp + 0x28], r13d
cmp ebp, 6
ja case.default.0x1801dda67
lea rdx, [0x180000000]
movsxd rax, ebp
movsxd rsi, r13d
mov ecx, dword [rdx + rax*4 + 0x1de250]
add rcx, rdx
jmp rcx
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp case.default.0x1801dda67
test r13d, r13d
jle case.default.0x1801dda67
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 0x1801dda91
jmp case.default.0x1801dda67
mov rdx, r10
test r13d, r13d
jle 0x1801ddb83
cmp r13d, 0x40
jb 0x1801ddb83
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rdi + rcx]
lea r8, [rbx + rcx]
cmp rbx, rax
ja 0x1801ddadc
cmp r8, rdi
jae 0x1801ddb83
lea rax, [r14 + rcx]
cmp rbx, rax
ja 0x1801ddaee
cmp r8, r14
jae 0x1801ddb83
mov ecx, r13d
and ecx, 0x8000003f
jge 0x1801ddb00
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 0x1801ddb20
cmp rdx, rsi
jge case.default.0x1801dda67
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 0x1801ddba0
jmp case.default.0x1801dda67
test r13d, r13d
jle case.default.0x1801dda67
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 0x1801ddbd1
jmp case.default.0x1801dda67
test r13d, r13d
jle case.default.0x1801dda67
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.1801dd110
add al, byte [rbx + rbp]
mov byte [r15 + rbp], al
lea rbp, [rbp + 1]
sub rsi, 1
jne 0x1801ddc20
mov r13d, dword [rsp + 0x28]
jmp case.default.0x1801dda67
test r13d, r13d
jle case.default.0x1801dda67
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 0x1801ddc60
jmp case.default.0x1801dda67
test r13d, r13d
jle case.default.0x1801dda67
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.1801dd110
add al, byte [r14]
mov byte [r14 + rbx], al
lea r14, [r14 + 1]
sub rsi, 1
jne 0x1801ddc90
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 0x1801ddd38
mov esi, dword [rsp + 0xe0]
jmp 0x1801dd380
mov edx, dword [0x18067c038]
mov rax, qword gs:[0x58]
mov ecx, reloc.WS2_32.dll_recv
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 0x1801de1a5
test r15d, r15d
je 0x1801de1e3
mov r12d, dword [rsp + 0x118]
lea r14, [rbp + 0x58dd80]
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 0x1801dddcf
movzx r10d, byte [r14]
jmp 0x1801dddd2
mov edx, dword [0x18067c038]
mov rax, qword gs:[0x58]
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_filter
jmp 0x1801ddd18
mov r10b, 1
cmp edx, 4
jne 0x1801dde46
mov edi, dword [rsp + 0x24]
cmp edi, 2
jl 0x1801dde25
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 0x1801dddf0
test edi, edi
jle 0x1801de0e9
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x1801de0e9
cmp edx, 2
jne 0x1801ddf27
mov edi, dword [rsp + 0x24]
cmp edi, 4
jl 0x1801dded5
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 0x1801dde70
test edi, edi
jle 0x1801ddef0
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 0x1801ddf0f
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 0x1801de0e9
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x1801de0dc
cmp edx, 1
jne 0x1801de0e9
mov ebx, dword [rsp + 0x24]
cmp ebx, 8
jl 0x1801de018
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 0x1801ddf50
test ebx, ebx
jle 0x1801de033
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 0x1801de052
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 0x1801de071
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 0x1801de090
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 0x1801de0af
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 0x1801de0ce
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 0x1801de0e9
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 0x1801de179
lea rcx, [rsi - 1]
cmp eax, 1
jne 0x1801de127
test rcx, rcx
js 0x1801de179
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 0x1801de110
jmp 0x1801de179
test rcx, rcx
js 0x1801de179
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 0x1801de150
mov r10, qword [rsp + 0x70]
mov edx, dword [rsp + 0x110]
inc r10d
mov qword [rsp + 0x70], r10
cmp r10d, dword [rsp + 0x108]
jb 0x1801ddd80
mov eax, 1
jmp 0x1801ddd1e
cmp edx, 0x10
jne 0x1801de1e3
imul r13d, r11d
mov r8, r14
imul r13d, r15d
test r13d, r13d
je 0x1801de1e3
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 0x1801de1c0
mov eax, 1
jmp 0x1801ddd1e
mov edx, dword [0x18067c038]
mov rax, qword gs:[0x58]
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x1801ddd26