Function at 0x180216d70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
lea rdx, [rsp + 0x68]
mov dword [rbp - 0x7c], 0xff
mov rbx, rcx
xor r15d, r15d
call fcn.1802169a0
test rax, rax
je 0x180216de7
mov eax, dword [rbx + 4]
mov dword [rsp + 0x64], eax
cdq
xor eax, edx
sub eax, edx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x180216df5
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
add rsp, 0x4c0
pop r15
pop rbx
pop rbp
ret
cmp dword [rbx], 0x1000000
ja 0x180216dc4
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x7c]
mov edx, dword [rbp - 0x80]
mov qword [rsp + 0x4b8], rdi
mov edi, dword [rsp + 0x70]
mov qword [rsp + 0x4b0], r12
mov r12d, dword [rsp + 0x68]
mov qword [rsp + 0x4a8], r13
mov r13d, dword [rbp - 0x7c]
mov dword [rbp + 0x400], eax
mov eax, dword [rsp + 0x78]
mov qword [rsp + 0x4a0], r14
movsxd r14, dword [rsp + 0x6c]
mov dword [rsp + 0x2c], eax
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x28], edx
mov dword [rbp + 0x408], r13d
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x34], r12d
cmp edi, 0xc
jne 0x180216e96
cmp r12d, 0x18
jge 0x180216eae
mov ecx, r14d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
mov edx, dword [rsp + 0x28]
jmp 0x180216ea9
cmp r12d, 0x10
jge 0x180216eae
mov r15d, r14d
sub r15d, eax
sub r15d, edi
sar r15d, 2
test r15d, r15d
jne 0x180216ef2
movsxd rcx, dword [rbx + 0xb8]
add rcx, qword [rbx + 0xc0]
sub rcx, rbx
sub rcx, 0x38
cmp r14, rcx
je 0x180216ef2
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.bad_offset
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x180217494
cmp r12d, 0x18
jne 0x180216f07
cmp edx, 0xff000000
jne 0x180216f07
lea eax, [r12 - 0x15]
jmp 0x180216f11
xor eax, eax
test edx, edx
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
test ecx, ecx
js 0x180217b0b
je 0x180216f35
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x180217b0b
lea r9d, [rcx*4]
test r9d, r9d
js 0x180217b0b
test r8d, r8d
js 0x180217b0b
je 0x180216f63
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x180217b0b
mov qword [rsp + 0x4e0], rsi
test ecx, ecx
js 0x180217ae7
je 0x180216f86
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x180217ae7
test r9d, r9d
js 0x180217ae7
test r8d, r8d
js 0x180217ae7
je 0x180216fac
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x180217ae7
imul ecx, r8d
shl ecx, 2
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x70], rax
mov rsi, rax
test rax, rax
je 0x180217ae7
cmp r12d, 0x10
jge 0x1802174ea
xor edi, edi
test r15d, r15d
je 0x1802174c0
cmp r15d, 0x100
jg 0x1802174c0
test r15d, r15d
jle 0x180217138
mov rax, qword [rbx + 0xc0]
xor r14d, r14d
mov r13d, dword [rsp + 0x20]
movsxd r12, r15d
nop dword [rax]
mov rcx, qword [rbx + 0xc8]
cmp rax, rcx
jae 0x18021702b
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180217057
cmp dword [rbx + 0x30], edi
je 0x180217055
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180217057
xor dl, dl
mov byte [rbp + r14*4 - 0x5e], dl
cmp rax, rcx
jae 0x180217070
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18021709c
cmp dword [rbx + 0x30], edi
je 0x18021709a
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18021709c
xor dl, dl
mov byte [rbp + r14*4 - 0x5f], dl
cmp rax, rcx
jae 0x1802170b5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802170da
cmp dword [rbx + 0x30], edi
je 0x1802170d8
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802170da
xor cl, cl
mov byte [rbp + r14*4 - 0x60], cl
cmp r13d, 0xc
je 0x180217115
cmp rax, qword [rbx + 0xc8]
jae 0x1802170fa
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180217115
cmp dword [rbx + 0x30], edi
je 0x180217115
mov rcx, rbx
call fcn.18020d200
inc qword [rbx + 0xc0]
mov rax, qword [rbx + 0xc0]
mov byte [rbp + r14*4 - 0x5d], 0xff
inc r14
cmp r14, r12
jl 0x180217010
mov r12d, dword [rsp + 0x34]
mov r13d, dword [rbp + 0x408]
mov r14d, dword [rsp + 0x30]
xor eax, eax
mov rcx, rbx
cmp dword [rsp + 0x20], 0xc
setne al
add eax, 3
imul eax, r15d
sub r14d, eax
sub r14d, dword [rsp + 0x24]
sub r14d, dword [rsp + 0x20]
mov edx, r14d
call fcn.18020d280
cmp r12d, 1
jne 0x180217174
mov r15d, dword [rbx]
add r15d, 7
shr r15d, 3
jmp 0x180217192
cmp r12d, 4
jne 0x180217185
mov r15d, dword [rbx]
inc r15d
shr r15d, 1
jmp 0x180217192
cmp r12d, 8
jne 0x18021745e
mov r15d, dword [rbx]
mov ecx, dword [rbx + 4]
neg r15d
and r15d, 3
mov dword [rbp + 0x400], edi
mov edx, ecx
cmp r12d, 1
jne 0x1802172e9
test ecx, ecx
jle 0x180217939
mov r12d, r15d
nop dword [rax]
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1802171e5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18021720b
cmp dword [rbx + 0x30], 0
je 0x180217209
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18021720b
xor cl, cl
xor r15d, r15d
movzx edx, cl
cmp dword [rbx], r15d
jle 0x1802172ba
nop word [rax + rax]
mov eax, edx
mov ecx, r14d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x60]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0x5f]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0x5e]
mov byte [rdi + rsi + 2], al
mov byte [rdi + rsi + 3], 0xff
add rdi, 4
inc r15d
cmp r15d, dword [rbx]
je 0x1802172ba
sub r14d, 1
jns 0x1802172b1
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x180217288
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802172ae
cmp dword [rbx + 0x30], 0
je 0x1802172ac
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802172ae
xor cl, cl
movzx edx, cl
cmp r15d, dword [rbx]
jl 0x180217220
mov edx, r12d
mov rcx, rbx
call fcn.18020d280
mov r8d, dword [rbp + 0x400]
mov ecx, dword [rbx + 4]
inc r8d
mov dword [rbp + 0x400], r8d
mov edx, ecx
cmp r8d, ecx
jl 0x1802171c0
jmp 0x180217939
test ecx, ecx
jle 0x180217939
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x180217433
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x18021731f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180217345
cmp dword [rbx + 0x30], 0
je 0x180217343
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180217345
xor cl, cl
xor r8d, r8d
movzx eax, cl
cmp r12d, 4
jne 0x18021735b
mov r8d, eax
and r8d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x60]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x5f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x5e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [r14 + 1]
cmp eax, dword [rbx]
je 0x180217433
cmp r12d, 8
jne 0x1802173ee
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1802173c4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802173ea
cmp dword [rbx + 0x30], 0
je 0x1802173e8
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802173ea
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rbp + rdx - 0x60]
inc edi
add r14d, 2
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x5f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x5e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
cmp r14d, dword [rbx]
jl 0x180217300
mov edx, r15d
mov rcx, rbx
call fcn.18020d280
mov eax, dword [rbp + 0x400]
mov ecx, dword [rbx + 4]
inc eax
mov dword [rbp + 0x400], eax
mov edx, ecx
cmp eax, ecx
jl 0x1802172f1
jmp 0x180217939
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
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.bad_bpp
mov qword [rcx + rax], rdx
xor eax, eax
mov rsi, qword [rsp + 0x4e0]
mov r12, qword [rsp + 0x4b0]
mov rdi, qword [rsp + 0x4b8]
mov r13, qword [rsp + 0x4a8]
mov r14, qword [rsp + 0x4a0]
add rsp, 0x4c0
pop r15
pop rbx
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
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
jmp 0x180217486
sub r14d, dword [rsp + 0x24]
xor eax, eax
sub r14d, edi
mov dword [rsp + 0x3c], eax
mov edx, r14d
mov dword [rsp + 0x44], eax
mov rcx, rbx
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x30], eax
mov r15d, eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x50], eax
call fcn.18020d280
cmp r12d, 0x18
jne 0x18021752f
mov eax, dword [rbx]
lea eax, [rax + rax*2]
jmp 0x18021753d
cmp r12d, 0x10
jne 0x18021753b
mov eax, dword [rbx]
add eax, eax
jmp 0x18021753d
xor eax, eax
neg eax
and eax, 3
mov dword [rsp + 0x60], eax
cmp r12d, 0x18
jne 0x18021755c
mov r8d, 1
mov qword [rsp + 0x58], r8
jmp 0x180217766
mov r11d, dword [rsp + 0x38]
mov r10d, dword [rsp + 0x2c]
mov ecx, dword [rbp + 0x400]
cmp r12d, 0x20
jne 0x1802175aa
cmp r11d, 0xff
jne 0x1802175aa
cmp r10d, 0xff00
jne 0x1802175aa
cmp ecx, 0xff0000
jne 0x1802175aa
mov r9d, dword [rsp + 0x28]
cmp r9d, 0xff000000
jne 0x1802175c9
mov r8d, 2
mov qword [rsp + 0x58], r8
jmp 0x180217766
test ecx, ecx
je 0x180217aba
test r10d, r10d
je 0x180217aba
test r11d, r11d
je 0x180217aba
mov r9d, dword [rsp + 0x28]
call fcn.1802168e0
mov edx, dword [rbp + 0x400]
sub eax, 7
mov ecx, dword [rbp + 0x400]
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
mov dword [rsp + 0x3c], eax
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r10d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r14d, al
mov dword [rsp + 0x20], r14d
call fcn.1802168e0
sub eax, 7
mov edx, r10d
shr edx, 1
mov ecx, r10d
and edx, 0x55555555
mov dword [rsp + 0x44], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r11d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx edi, al
mov dword [rsp + 0x40], edi
call fcn.1802168e0
sub eax, 7
mov edx, r11d
shr edx, 1
mov ecx, r11d
and edx, 0x55555555
mov dword [rsp + 0x4c], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r10d, al
mov dword [rsp + 0x48], r10d
call fcn.1802168e0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x30], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx eax, al
mov dword [rsp + 0x50], eax
cmp r14d, 8
ja 0x180217aba
cmp edi, 8
ja 0x180217aba
cmp r10d, 8
ja 0x180217aba
xor r8d, r8d
mov qword [rsp + 0x58], r8
cmp eax, 8
ja 0x180217aba
mov ecx, dword [rbx + 4]
mov edx, ecx
mov dword [rsp + 0x24], r15d
test ecx, ecx
jle 0x180217939
nop dword [rax + rax]
mov eax, dword [rbx]
movsxd rcx, r15d
test r8, r8
je 0x1802179fe
xor r13d, r13d
test eax, eax
jle 0x180217906
lea rdi, [rsi + rcx]
lea r14, [rdi + 1]
lea r12, [rdi + 2]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1802177cf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802177f5
cmp dword [rbx + 0x30], 0
je 0x1802177f3
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802177f5
xor cl, cl
mov byte [r12], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x180217818
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18021783e
cmp dword [rbx + 0x30], 0
je 0x18021783c
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18021783e
xor cl, cl
mov byte [r14], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x180217860
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180217886
cmp dword [rbx + 0x30], 0
je 0x180217884
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180217886
xor cl, cl
cmp qword [rsp + 0x58], 2
mov byte [rdi], cl
jne 0x1802178d7
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1802178af
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802178d9
cmp dword [rbx + 0x30], 0
je 0x1802178d3
mov rcx, rbx
call fcn.18020d200
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1802178d9
xor cl, cl
jmp 0x1802178d9
mov cl, 0xff
mov byte [rdi + 3], cl
add r15d, 4
movzx eax, cl
add r12, 4
or dword [rbp + 0x408], eax
add r14, 4
add rdi, 4
inc r13d
cmp r13d, dword [rbx]
jl 0x1802177b0
mov r12d, dword [rsp + 0x34]
mov r13d, dword [rbp + 0x408]
mov edx, dword [rsp + 0x60]
mov rcx, rbx
call fcn.18020d280
mov r9d, dword [rsp + 0x24]
mov ecx, dword [rbx + 4]
inc r9d
mov r8, qword [rsp + 0x58]
mov edx, ecx
mov dword [rsp + 0x24], r9d
cmp r9d, ecx
jl 0x180217780
test r13d, r13d
jne 0x18021795e
mov eax, dword [rbx]
imul eax, ecx
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x18021795e
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x180217951
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x64], 0
jle 0x1802179ce
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1802179ce
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
xor r8d, r8d
imul r9d, r10d
lea eax, [rcx*4]
shl edx, 2
mov r11d, edx
add rdx, rsi
shl r9d, 2
test eax, eax
jle 0x1802179bf
sub r9, r11
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [r9 + rdx]
mov byte [r9 + rdx], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x1802179a0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x180217970
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x3e8]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x3f0]
mov eax, dword [rbx + 4]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x3f8]
test rcx, rcx
je 0x1802179f6
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x18021748c
xor r14d, r14d
test eax, eax
jle 0x18021790d
lea rdi, [rsi + rcx]
mov esi, dword [rsp + 0x28]
mov rcx, rbx
cmp r12d, 0x10
jne 0x180217a21
call fcn.18020d490
jmp 0x180217a26
call fcn.18020d540
mov edx, dword [rsp + 0x3c]
mov ecx, eax
and ecx, dword [rbp + 0x400]
mov r10d, eax
mov r8d, dword [rsp + 0x20]
call fcn.180216950
mov edx, dword [rsp + 0x44]
mov ecx, r10d
and ecx, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x40]
mov byte [rdi], al
call fcn.180216950
mov edx, dword [rsp + 0x4c]
mov ecx, r10d
and ecx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x48]
mov byte [rdi + 1], al
call fcn.180216950
mov byte [rdi + 2], al
test esi, esi
je 0x180217a8b
mov edx, dword [rsp + 0x30]
and r10d, esi
mov r8d, dword [rsp + 0x50]
mov ecx, r10d
call fcn.180216950
jmp 0x180217a90
mov eax, 0xff
mov byte [rdi + 3], al
or r13d, eax
add rdi, 4
add r15d, 4
inc r14d
cmp r14d, dword [rbx]
jl 0x180217a11
mov rsi, qword [rbp - 0x70]
mov dword [rbp + 0x408], r13d
jmp 0x18021790d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
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.bad_masks
jmp 0x180217486
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
jmp 0x180217486
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 0x180217494