Function at 0x180214670
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 + 0x38], r11d
inc r10d
mov rsi, rcx
mov ebx, r10d
imul ebx, r9d
mov eax, ebx
imul eax, r11d
mov dword [rsp + 0x44], 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 0x180214746
test r15d, r15d
js 0x180214746
je 0x180214701
mov eax, 0x7fffffff
cdq
idiv r15d
cmp r11d, eax
jg 0x180214746
mov ecx, r11d
imul ecx, r15d
test ecx, ecx
js 0x180214746
test ebx, ebx
js 0x180214746
je 0x18021471e
mov eax, 0x7fffffff
cdq
idiv ebx
cmp ecx, eax
jg 0x180214746
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 0x18021474c
xor r10d, r10d
mov r14d, r10d
mov qword [rsp + 0x50], r14
mov qword [rsi + 0x18], r14
test r14, r14
jne 0x180214784
mov edx, dword [0x1806d4c38]
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 0x180215236
mov esi, dword [rsp + 0xe0]
test esi, esi
js 0x1802156fd
test r11d, r11d
js 0x1802156fd
je 0x1802147af
mov eax, 0x7fffffff
cdq
idiv r11d
cmp esi, eax
jg 0x1802156fd
mov r9d, esi
imul r9d, r11d
mov dword [rsp + 0x24], r9d
test r9d, r9d
js 0x1802156fd
mov edx, dword [rsp + 0x110]
test edx, edx
js 0x1802156fd
je 0x1802147f2
mov eax, 0x7fffffff
cdq
idiv dword [rsp + 0x110]
cmp r9d, eax
jg 0x1802156fd
mov edx, dword [rsp + 0x110]
mov eax, r9d
imul eax, edx
cmp eax, 0x7ffffff8
jg 0x1802156fd
lea r9d, [rax + 7]
shr r9d, 3
mov dword [rsp + 0x40], r9d
lea eax, [r9 + 1]
imul eax, r15d
cmp ebp, eax
jae 0x180214846
mov edx, dword [0x1806d4c38]
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 0x180215236
mov qword [rsp + 0xe8], r12
mov ecx, r10d
mov dword [rsp + 0x3c], ecx
lea rbp, [0x180000000]
test r15d, r15d
je 0x180215257
movsxd r15, r8d
mov qword [rsp + 0x58], r15
movsxd r12, ebx
movzx ebp, byte [rdi]
mov r8d, ecx
mov ebx, dword [rsp + 0x44]
inc rdi
imul r8d, ebx
add r8, r14
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x28], r8
cmp ebp, 4
ja 0x1802152b9
cmp edx, 8
jge 0x1802148d2
cmp r9d, r11d
ja 0x180215209
mov eax, r13d
mov dword [rsp + 0x20], 1
imul eax, r11d
mov r15d, 1
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x38], r9d
sub eax, r9d
add r8, rax
mov qword [rsp + 0x28], r8
mov r9, r8
sub r9, rbx
test ecx, ecx
mov qword [rsp + 0x30], r9
lea rcx, [0x180000000]
jne 0x1802148f0
movzx ebp, byte [rbp + rcx + 0x5cbb38]
test r15, r15
jle 0x180214a0a
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.0x180214922
movsxd rax, ebp
mov eax, dword [rcx + rax*4 + 0x215728]
add rax, rcx
jmp rax
inc rbx
sub rsi, 1
je 0x1802149fb
lea rcx, [0x180000000]
jmp 0x180214910
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1802149fb
jmp case.0x180214922.0
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1802149fb
jmp case.0x180214922.1
movzx eax, byte [rbx + r13]
add al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1802149fb
jmp case.0x180214922.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 0x1802149fb
jmp case.0x180214922.3
movzx edx, byte [rbx + r13]
xor r8d, r8d
xor ecx, ecx
call fcn.180214600
add al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x180214922.4
mov r8, qword [rsp + 0x28]
xor r10d, r10d
mov r9, qword [rsp + 0x30]
mov r11d, dword [rsp + 0x100]
mov edx, dword [rsp + 0x110]
mov esi, dword [rsp + 0xe0]
mov r13d, dword [rsp + 0xf8]
cmp edx, 8
jne 0x180214a63
cmp esi, r13d
je 0x180214a1c
movsxd rax, esi
mov byte [rax + r8], 0xff
movsxd rax, r13d
movsxd rcx, esi
jmp 0x180214a88
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
je 0x1802149fb
jmp case.0x180214922.5
movzx eax, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne case.0x180214922.6
jmp 0x1802149fb
cmp edx, 0x10
jne 0x180214a81
cmp esi, r13d
je 0x180214a74
mov word [r15 + r8], 0xffff
movsxd r13, dword [rsp + 0x20]
mov rax, r12
mov rcx, r13
jmp 0x180214a8d
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 + 0x48], r14
jl 0x180214f44
cmp esi, dword [rsp + 0xf8]
je 0x180214f44
cmp ebp, 6
ja case.default.0x180214ad6
lea r8, [0x180000000]
movsxd rax, ebp
mov ecx, dword [r8 + rax*4 + 0x215744]
add rcx, r8
jmp rcx
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180214ad6
movsxd r10, r13d
mov r9d, eax
nop dword [rax + rax]
test r15, r15
jle 0x180214b12
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 0x180214b01
mov byte [r15 + rbx], 0xff
add rdi, r10
add rbx, r12
sub r9, 1
jne 0x180214af0
jmp case.default.0x180214ad6
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180214ad6
movsxd r11, r13d
mov r10d, eax
nop dword [rax + rax]
test r15, r15
jle 0x180214b75
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 0x180214b60
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x180214b40
jmp case.default.0x180214ad6
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180214ad6
movsxd rsi, r13d
mov r11d, eax
nop
test r13d, r13d
jle 0x180214c70
cmp r13d, 0x40
jb 0x180214c70
lea eax, [r13 - 1]
xor r10d, r10d
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + rbx]
cmp rbx, rax
ja 0x180214bd3
cmp rdx, rdi
jae 0x180214c70
lea rax, [rcx + r14]
cmp rbx, rax
ja 0x180214be5
cmp rdx, r14
jae 0x180214c70
mov ecx, r13d
and ecx, 0x8000003f
jge 0x180214bf7
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 [rdx + rax]
lea rax, [rax + 0x40]
paddb xmm1, xmm0
movdqu xmm0, xmmword [rax + rcx - 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 0x180214c10
cmp r10, r15
jge 0x180214ca5
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 0x180214c90
mov byte [r15 + rbx], 0xff
add rdi, rsi
add rbx, r12
add r14, r12
mov r10d, 0
sub r11, 1
jne 0x180214ba0
jmp case.default.0x180214ad6
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180214ad6
movsxd rbp, r13d
mov esi, eax
nop word [rax + rax]
test r15, r15
jle 0x180214d20
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 0x180214d00
mov byte [r15 + rbx], 0xff
add rdi, rbp
add rbx, r12
add r14, r12
sub rsi, 1
jne 0x180214ce0
jmp case.default.0x180214ad6
lea r8d, [r11 - 1]
cmp r8d, 1
jb case.default.0x180214ad6
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 + 0x68], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x88], r9
mov qword [rsp + 0x30], rdx
nop dword [rax]
test r15, r15
jle 0x180214deb
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.180214600
add al, byte [r14 + rsi]
mov byte [r12 + rsi], al
lea rsi, [rsi + 1]
sub rbp, 1
jne 0x180214da1
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x88]
sub rax, r12
mov byte [rcx], 0xff
add rcx, r12
mov qword [rsp + 0x68], rax
add r14, r12
mov qword [rsp + 0x60], rcx
add rdi, r8
mov qword [rsp + 0x48], r14
add rbx, r12
sub rdx, 1
mov qword [rsp + 0x30], rdx
jne 0x180214d80
jmp case.default.0x180214ad6
lea eax, [r11 - 1]
cmp eax, 1
jb case.default.0x180214ad6
movsxd r11, r13d
mov r10d, eax
test r15, r15
jle 0x180214e69
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 0x180214e50
mov byte [r15 + rbx], 0xff
add rdi, r11
add rbx, r12
sub r10, 1
jne 0x180214e33
jmp case.default.0x180214ad6
lea ecx, [r11 - 1]
cmp ecx, 1
jb case.default.0x180214ad6
movsxd rax, r13d
mov qword [rsp + 0x30], rax
mov eax, ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
nop dword [rax]
test r15, r15
jle 0x180214ee8
mov rbp, rbx
mov r13, rbx
sub rbp, r12
mov rsi, rdi
sub rbp, rdi
mov r14, r15
sub r13, rdi
nop word [rax + rax]
movzx ecx, byte [rsi + rbp]
xor r8d, r8d
xor edx, edx
call fcn.180214600
add al, byte [rsi]
mov byte [rsi + r13], al
lea rsi, [rsi + 1]
sub r14, 1
jne 0x180214ec0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov byte [r15 + rbx], 0xff
add rdi, rcx
add rbx, r12
sub rax, 1
mov qword [rsp + 0x48], rax
jne 0x180214ea0
mov edx, dword [rsp + 0x110]
cmp edx, 0x10
jne 0x1802151cd
mov r11d, dword [rsp + 0x100]
test r11d, r11d
je 0x1802151d5
mov rcx, qword [rsp + 0x90]
mov eax, r11d
nop word [rax + rax]
mov byte [r15 + rcx + 1], 0xff
add rcx, r12
sub rax, 1
jne 0x180214f30
jmp 0x1802151d5
mov r13d, dword [rsp + 0x38]
dec r13d
imul r13d, dword [rsp + 0x20]
mov dword [rsp + 0x28], r13d
cmp ebp, 6
ja case.default.0x180214f77
lea rdx, [0x180000000]
movsxd rax, ebp
movsxd rsi, r13d
mov ecx, dword [rdx + rax*4 + 0x215760]
add rcx, rdx
jmp rcx
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp case.default.0x180214f77
test r13d, r13d
jle case.default.0x180214f77
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 0x180214fa1
jmp case.default.0x180214f77
mov rdx, r10
test r13d, r13d
jle 0x180215093
cmp r13d, 0x40
jb 0x180215093
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rdi + rcx]
lea r8, [rbx + rcx]
cmp rbx, rax
ja 0x180214fec
cmp r8, rdi
jae 0x180215093
lea rax, [r14 + rcx]
cmp rbx, rax
ja 0x180214ffe
cmp r8, r14
jae 0x180215093
mov ecx, r13d
and ecx, 0x8000003f
jge 0x180215010
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 0x180215030
cmp rdx, rsi
jge case.default.0x180214f77
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 0x1802150b0
jmp case.default.0x180214f77
test r13d, r13d
jle case.default.0x180214f77
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 0x1802150e1
jmp case.default.0x180214f77
test r13d, r13d
jle case.default.0x180214f77
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.180214600
add al, byte [rbx + rbp]
mov byte [r15 + rbp], al
lea rbp, [rbp + 1]
sub rsi, 1
jne 0x180215130
mov r13d, dword [rsp + 0x28]
jmp case.default.0x180214f77
test r13d, r13d
jle case.default.0x180214f77
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 0x180215170
jmp case.default.0x180214f77
test r13d, r13d
jle case.default.0x180214f77
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.180214600
add al, byte [r14]
mov byte [r14 + rbx], al
lea r14, [r14 + 1]
sub rsi, 1
jne 0x1802151a0
mov edx, dword [rsp + 0x110]
movsxd rax, r13d
add rdi, rax
mov r11d, dword [rsp + 0x100]
mov ecx, dword [rsp + 0x3c]
xor r10d, r10d
mov r9d, dword [rsp + 0x40]
inc ecx
mov r13d, dword [rsp + 0xf8]
mov r14, qword [rsp + 0x50]
mov dword [rsp + 0x3c], ecx
cmp ecx, dword [rsp + 0x108]
jae 0x180215248
mov esi, dword [rsp + 0xe0]
jmp 0x180214870
mov edx, dword [0x1806d4c38]
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 0x1802156b5
test r15d, r15d
je 0x1802156f3
mov r12d, dword [rsp + 0x118]
lea r14, [rbp + 0x5cbfa0]
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 + 0x50]
mov r9d, r10d
imul r9d, dword [rsp + 0x44]
lea r11, [r9 + rax]
sub r9, r15
add r9, rbp
mov r8, r11
add r9, rax
test r12d, r12d
jne 0x1802152dd
movzx r10d, byte [r14]
jmp 0x1802152e0
mov edx, dword [0x1806d4c38]
mov rax, qword gs:[0x58]
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid_filter
jmp 0x180215228
mov r10b, 1
cmp edx, 4
jne 0x180215356
mov edi, dword [rsp + 0x24]
cmp edi, 2
jl 0x180215335
mov ebx, edi
shr rbx, 1
mov eax, ebx
neg eax
lea edi, [rdi + rax*2]
nop word [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 rbx, 1
jne 0x180215300
test edi, edi
jle 0x1802155f9
movzx eax, byte [r9]
shr al, 4
movzx edx, al
movzx ecx, r10b
imul edx, ecx
mov byte [r8], dl
jmp 0x1802155f9
cmp edx, 2
jne 0x180215437
mov edi, dword [rsp + 0x24]
cmp edi, 4
jl 0x1802153e5
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 0x180215380
test edi, edi
jle 0x180215400
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 0x18021541f
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 0x1802155f9
movzx ecx, byte [r9]
shr cl, 2
and cl, 3
jmp 0x1802155ec
cmp edx, 1
jne 0x1802155f9
mov ebx, dword [rsp + 0x24]
cmp ebx, 8
jl 0x180215528
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 0x180215460
test ebx, ebx
jle 0x180215543
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 0x180215562
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 0x180215581
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 0x1802155a0
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 0x1802155bf
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 0x1802155de
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 0x1802155f9
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 0x180215689
lea rcx, [rsi - 1]
cmp eax, 1
jne 0x180215637
test rcx, rcx
js 0x180215689
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 0x180215620
jmp 0x180215689
test rcx, rcx
js 0x180215689
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 0x180215660
mov r10, qword [rsp + 0x70]
mov edx, dword [rsp + 0x110]
inc r10d
mov qword [rsp + 0x70], r10
cmp r10d, dword [rsp + 0x108]
jb 0x180215290
mov eax, 1
jmp 0x18021522e
cmp edx, 0x10
jne 0x1802156f3
imul r13d, r11d
mov r8, r14
imul r13d, r15d
test r13d, r13d
je 0x1802156f3
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 0x1802156d0
mov eax, 1
jmp 0x18021522e
mov edx, dword [0x1806d4c38]
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 0x180215236