Function at 0x1801df860
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.1801df490
test rax, rax
je 0x1801df8d7
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 0x1801df8e5
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
add rsp, 0x4c0
pop r15
pop rbx
pop rbp
ret
cmp dword [rbx], 0x1000000
ja 0x1801df8b4
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 0x1801df986
cmp r12d, 0x18
jge 0x1801df99e
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 0x1801df999
cmp r12d, 0x10
jge 0x1801df99e
mov r15d, r14d
sub r15d, eax
sub r15d, edi
sar r15d, 2
test r15d, r15d
jne 0x1801df9e2
movsxd rcx, dword [rbx + 0xb8]
add rcx, qword [rbx + 0xc0]
sub rcx, rbx
sub rcx, 0x38
cmp r14, rcx
je 0x1801df9e2
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.bad_offset
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x1801dff84
cmp r12d, 0x18
jne 0x1801df9f7
cmp edx, 0xff000000
jne 0x1801df9f7
lea eax, [r12 - 0x15]
jmp 0x1801dfa01
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 0x1801e05fb
je 0x1801dfa25
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1801e05fb
lea r9d, [rcx*4]
test r9d, r9d
js 0x1801e05fb
test r8d, r8d
js 0x1801e05fb
je 0x1801dfa53
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1801e05fb
mov qword [rsp + 0x4e0], rsi
test ecx, ecx
js 0x1801e05d7
je 0x1801dfa76
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1801e05d7
test r9d, r9d
js 0x1801e05d7
test r8d, r8d
js 0x1801e05d7
je 0x1801dfa9c
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1801e05d7
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 0x1801e05d7
cmp r12d, 0x10
jge 0x1801dffda
xor edi, edi
test r15d, r15d
je 0x1801dffb0
cmp r15d, 0x100
jg 0x1801dffb0
test r15d, r15d
jle 0x1801dfc28
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 0x1801dfb1b
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfb47
cmp dword [rbx + 0x30], edi
je 0x1801dfb45
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfb47
xor dl, dl
mov byte [rbp + r14*4 - 0x5e], dl
cmp rax, rcx
jae 0x1801dfb60
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfb8c
cmp dword [rbx + 0x30], edi
je 0x1801dfb8a
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfb8c
xor dl, dl
mov byte [rbp + r14*4 - 0x5f], dl
cmp rax, rcx
jae 0x1801dfba5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfbca
cmp dword [rbx + 0x30], edi
je 0x1801dfbc8
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfbca
xor cl, cl
mov byte [rbp + r14*4 - 0x60], cl
cmp r13d, 0xc
je 0x1801dfc05
cmp rax, qword [rbx + 0xc8]
jae 0x1801dfbea
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfc05
cmp dword [rbx + 0x30], edi
je 0x1801dfc05
mov rcx, rbx
call fcn.1801d5c90
inc qword [rbx + 0xc0]
mov rax, qword [rbx + 0xc0]
mov byte [rbp + r14*4 - 0x5d], 0xff
inc r14
cmp r14, r12
jl 0x1801dfb00
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.1801d5d10
cmp r12d, 1
jne 0x1801dfc64
mov r15d, dword [rbx]
add r15d, 7
shr r15d, 3
jmp 0x1801dfc82
cmp r12d, 4
jne 0x1801dfc75
mov r15d, dword [rbx]
inc r15d
shr r15d, 1
jmp 0x1801dfc82
cmp r12d, 8
jne 0x1801dff4e
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 0x1801dfdd9
test ecx, ecx
jle 0x1801e0429
mov r12d, r15d
nop dword [rax]
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1801dfcd5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfcfb
cmp dword [rbx + 0x30], 0
je 0x1801dfcf9
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfcfb
xor cl, cl
xor r15d, r15d
movzx edx, cl
cmp dword [rbx], r15d
jle 0x1801dfdaa
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 0x1801dfdaa
sub r14d, 1
jns 0x1801dfda1
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1801dfd78
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfd9e
cmp dword [rbx + 0x30], 0
je 0x1801dfd9c
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfd9e
xor cl, cl
movzx edx, cl
cmp r15d, dword [rbx]
jl 0x1801dfd10
mov edx, r12d
mov rcx, rbx
call fcn.1801d5d10
mov r8d, dword [rbp + 0x400]
mov ecx, dword [rbx + 4]
inc r8d
mov dword [rbp + 0x400], r8d
mov edx, ecx
cmp r8d, ecx
jl 0x1801dfcb0
jmp 0x1801e0429
test ecx, ecx
jle 0x1801e0429
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x1801dff23
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1801dfe0f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfe35
cmp dword [rbx + 0x30], 0
je 0x1801dfe33
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfe35
xor cl, cl
xor r8d, r8d
movzx eax, cl
cmp r12d, 4
jne 0x1801dfe4b
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 0x1801dff23
cmp r12d, 8
jne 0x1801dfede
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1801dfeb4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfeda
cmp dword [rbx + 0x30], 0
je 0x1801dfed8
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801dfeda
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 0x1801dfdf0
mov edx, r15d
mov rcx, rbx
call fcn.1801d5d10
mov eax, dword [rbp + 0x400]
mov ecx, dword [rbx + 4]
inc eax
mov dword [rbp + 0x400], eax
mov edx, ecx
cmp eax, ecx
jl 0x1801dfde1
jmp 0x1801e0429
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
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.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 [0x18067c038]
mov rax, qword gs:[0x58]
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid
jmp 0x1801dff76
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.1801d5d10
cmp r12d, 0x18
jne 0x1801e001f
mov eax, dword [rbx]
lea eax, [rax + rax*2]
jmp 0x1801e002d
cmp r12d, 0x10
jne 0x1801e002b
mov eax, dword [rbx]
add eax, eax
jmp 0x1801e002d
xor eax, eax
neg eax
and eax, 3
mov dword [rsp + 0x60], eax
cmp r12d, 0x18
jne 0x1801e004c
mov r8d, 1
mov qword [rsp + 0x58], r8
jmp 0x1801e0256
mov r11d, dword [rsp + 0x38]
mov r10d, dword [rsp + 0x2c]
mov ecx, dword [rbp + 0x400]
cmp r12d, 0x20
jne 0x1801e009a
cmp r11d, 0xff
jne 0x1801e009a
cmp r10d, 0xff00
jne 0x1801e009a
cmp ecx, 0xff0000
jne 0x1801e009a
mov r9d, dword [rsp + 0x28]
cmp r9d, 0xff000000
jne 0x1801e00b9
mov r8d, 2
mov qword [rsp + 0x58], r8
jmp 0x1801e0256
test ecx, ecx
je 0x1801e05aa
test r10d, r10d
je 0x1801e05aa
test r11d, r11d
je 0x1801e05aa
mov r9d, dword [rsp + 0x28]
call fcn.1801df3d0
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.1801df3d0
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.1801df3d0
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.1801df3d0
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 0x1801e05aa
cmp edi, 8
ja 0x1801e05aa
cmp r10d, 8
ja 0x1801e05aa
xor r8d, r8d
mov qword [rsp + 0x58], r8
cmp eax, 8
ja 0x1801e05aa
mov ecx, dword [rbx + 4]
mov edx, ecx
mov dword [rsp + 0x24], r15d
test ecx, ecx
jle 0x1801e0429
nop dword [rax + rax]
mov eax, dword [rbx]
movsxd rcx, r15d
test r8, r8
je 0x1801e04ee
xor r13d, r13d
test eax, eax
jle 0x1801e03f6
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 0x1801e02bf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801e02e5
cmp dword [rbx + 0x30], 0
je 0x1801e02e3
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801e02e5
xor cl, cl
mov byte [r12], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1801e0308
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801e032e
cmp dword [rbx + 0x30], 0
je 0x1801e032c
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801e032e
xor cl, cl
mov byte [r14], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1801e0350
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801e0376
cmp dword [rbx + 0x30], 0
je 0x1801e0374
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801e0376
xor cl, cl
cmp qword [rsp + 0x58], 2
mov byte [rdi], cl
jne 0x1801e03c7
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1801e039f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801e03c9
cmp dword [rbx + 0x30], 0
je 0x1801e03c3
mov rcx, rbx
call fcn.1801d5c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1801e03c9
xor cl, cl
jmp 0x1801e03c9
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 0x1801e02a0
mov r12d, dword [rsp + 0x34]
mov r13d, dword [rbp + 0x408]
mov edx, dword [rsp + 0x60]
mov rcx, rbx
call fcn.1801d5d10
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 0x1801e0270
test r13d, r13d
jne 0x1801e044e
mov eax, dword [rbx]
imul eax, ecx
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x1801e044e
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x1801e0441
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x64], 0
jle 0x1801e04be
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1801e04be
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 0x1801e04af
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 0x1801e0490
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1801e0460
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 0x1801e04e6
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x1801dff7c
xor r14d, r14d
test eax, eax
jle 0x1801e03fd
lea rdi, [rsi + rcx]
mov esi, dword [rsp + 0x28]
mov rcx, rbx
cmp r12d, 0x10
jne 0x1801e0511
call fcn.1801d5f20
jmp 0x1801e0516
call fcn.1801d5fd0
mov edx, dword [rsp + 0x3c]
mov ecx, eax
and ecx, dword [rbp + 0x400]
mov r10d, eax
mov r8d, dword [rsp + 0x20]
call fcn.1801df440
mov edx, dword [rsp + 0x44]
mov ecx, r10d
and ecx, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x40]
mov byte [rdi], al
call fcn.1801df440
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.1801df440
mov byte [rdi + 2], al
test esi, esi
je 0x1801e057b
mov edx, dword [rsp + 0x30]
and r10d, esi
mov r8d, dword [rsp + 0x50]
mov ecx, r10d
call fcn.1801df440
jmp 0x1801e0580
mov eax, 0xff
mov byte [rdi + 3], al
or r13d, eax
add rdi, 4
add r15d, 4
inc r14d
cmp r14d, dword [rbx]
jl 0x1801e0501
mov rsi, qword [rbp - 0x70]
mov dword [rbp + 0x408], r13d
jmp 0x1801e03fd
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
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.bad_masks
jmp 0x1801dff76
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
jmp 0x1801dff76
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 0x1801dff84