Function at 0x14009ea40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, r8
mov rsi, rdx
mov rbx, rcx
lea r14, [rcx + 8]
mov qword [rsp + 0x78], r14
mov edx, 0x400
mov rcx, r14
call fcn.140050720
lea rcx, [rbx + 0x20]
mov qword [rsp + 0x60], rcx
mov edx, Ordinal_41
call fcn.140050720
mov edx, 1
lea ecx, [rdx + 0xf]
call fcn.140041590
mov rcx, rax
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
xor r12d, r12d
mov r15d, r12d
test r13, r13
je 0x14009f66f
lea ebp, [r12 + 2]
lea r14, [0x140000000]
nop dword [rax]
movzx eax, byte [r15 + rsi]
test al, al
je 0x14009ebde
movzx edx, byte [rax + r14 + 0x177fff]
lea rax, [rbp - 1]
and eax, 0x1f
movzx r9d, byte [rax + r14 + 0x177ec0]
mov rax, rbp
and eax, 0x1f
movzx r10d, byte [rax + r14 + 0x177ec0]
lea rax, [rbp + 1]
and eax, 0x1f
movzx ebx, byte [rax + r14 + 0x177ec0]
mov rax, r15
shr rax, 3
lea rdi, [rcx + rax*4]
mov r11d, edx
lea rax, [rbp - 2]
and eax, 0x1f
movzx eax, byte [rax + r14 + 0x177ec0]
movzx r8d, byte [rax + r14 + 0x177fff]
add r8d, edx
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx eax, byte [rax + r14 + 0x177f00]
xor byte [rdi], al
movzx r8d, byte [r9 + r14 + 0x177fff]
add r8d, r11d
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx eax, byte [rax + r14 + 0x177f00]
xor byte [rdi + 1], al
movzx r8d, byte [r10 + r14 + 0x177fff]
add r8d, r11d
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx eax, byte [rax + r14 + 0x177f00]
xor byte [rdi + 2], al
movzx r8d, byte [rbx + r14 + 0x177fff]
add r8d, r11d
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx eax, byte [rax + r14 + 0x177f00]
xor byte [rdi + 3], al
inc r15
add rbp, 4
cmp r15, r13
jne 0x14009eac0
cmp r13, 0x10
mov r14, qword [rsp + 0x78]
jne 0x14009ef88
mov r11, r12
mov r10d, 0x800
lea r15, [0x140000000]
nop dword [rax]
mov r9, qword [r14]
movzx edx, byte [r11 + r15 + 0x177cc0]
movzx eax, byte [rcx]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rcx + 4]
xor r8, rax
mov eax, dword [r15 + r8*4 + 0x176cc0]
mov dword [r9 + r10 - 0x800], eax
mov r9, qword [r14]
movzx edx, byte [rcx + 1]
movzx eax, byte [r11 + r15 + 0x177dc0]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rcx + 5]
xor r8, rax
mov eax, dword [r15 + r8*4 + 0x1770c0]
mov dword [r9 + r10 - 0x400], eax
mov r9, qword [r14]
movzx edx, byte [r11 + r15 + 0x177cc0]
movzx eax, byte [rcx + 2]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rcx + 6]
xor r8, rax
mov eax, dword [r15 + r8*4 + 0x1774c0]
mov dword [r9 + r10], eax
mov r9, qword [r14]
movzx edx, byte [rcx + 3]
movzx eax, byte [r11 + r15 + 0x177dc0]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rcx + 7]
xor r8, rax
mov eax, dword [r15 + r8*4 + 0x1778c0]
mov dword [r9 + r10 + 0x400], eax
lea r11, [r11 + 1]
add r10, 4
cmp r10, 0xc00
jne 0x14009ec10
mov r14, qword [rsp + 0x60]
movzx r11d, byte [r12 + r15 + 0x177dc1]
movzx r10d, byte [r12 + r15 + 0x177cc1]
mov edx, r10d
movzx eax, byte [rsi + 0xe]
xor rdx, rax
movzx r9d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 6]
xor r9, rax
mov edx, r11d
movzx eax, byte [rsi + 0xd]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi + 5]
xor r8, rax
mov edi, dword [r15 + r9*4 + 0x1774c0]
xor edi, dword [r15 + r8*4 + 0x1770c0]
movzx eax, byte [rsi + 0xc]
xor rax, r10
movzx edx, byte [rax + r15 + 0x177cc0]
movzx eax, byte [rsi + 4]
xor rdx, rax
xor edi, dword [r15 + rdx*4 + 0x176cc0]
movzx eax, byte [rsi + 0xf]
xor rax, r11
movzx edx, byte [rax + r15 + 0x177dc0]
movzx eax, byte [rsi + 7]
xor rdx, rax
xor edi, dword [r15 + rdx*4 + 0x1778c0]
rol edi, 8
movzx ebx, byte [r12 + r15 + 0x177dc0]
movzx r10d, byte [r12 + r15 + 0x177cc0]
mov edx, r10d
movzx eax, byte [rsi + 8]
xor rdx, rax
movzx r9d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi]
xor r9, rax
mov edx, ebx
movzx eax, byte [rsi + 0xb]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 3]
xor r8, rax
mov r11d, dword [r15 + r9*4 + 0x176cc0]
xor r11d, dword [r15 + r8*4 + 0x1778c0]
movzx eax, byte [rsi + 0xa]
xor rax, r10
movzx edx, byte [rax + r15 + 0x177dc0]
movzx eax, byte [rsi + 2]
xor rdx, rax
xor r11d, dword [r15 + rdx*4 + 0x1774c0]
movzx eax, byte [rsi + 9]
xor rax, rbx
movzx edx, byte [rax + r15 + 0x177cc0]
movzx eax, byte [rsi + 1]
xor rdx, rax
xor r11d, dword [r15 + rdx*4 + 0x1770c0]
add r11d, edi
mov rax, qword [r14]
mov dword [rax + r12*4], r11d
lea edx, [rdi + r11]
rol edx, 9
mov rax, qword [r14]
mov dword [rax + r12*4 + 4], edx
movzx r11d, byte [r12 + r15 + 0x177dc3]
movzx r10d, byte [r12 + r15 + 0x177cc3]
mov edx, r10d
movzx eax, byte [rsi + 0xe]
xor rdx, rax
movzx r9d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 6]
xor r9, rax
mov edx, r11d
movzx eax, byte [rsi + 0xd]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi + 5]
xor r8, rax
mov edi, dword [r15 + r9*4 + 0x1774c0]
xor edi, dword [r15 + r8*4 + 0x1770c0]
movzx eax, byte [rsi + 0xc]
xor rax, r10
movzx edx, byte [rax + r15 + 0x177cc0]
movzx eax, byte [rsi + 4]
xor rdx, rax
xor edi, dword [r15 + rdx*4 + 0x176cc0]
movzx eax, byte [rsi + 0xf]
xor rax, r11
movzx edx, byte [rax + r15 + 0x177dc0]
movzx eax, byte [rsi + 7]
xor rdx, rax
xor edi, dword [r15 + rdx*4 + 0x1778c0]
rol edi, 8
movzx ebx, byte [r12 + r15 + 0x177dc2]
movzx r10d, byte [r12 + r15 + 0x177cc2]
mov edx, r10d
movzx eax, byte [rsi + 8]
xor rdx, rax
movzx r9d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi]
xor r9, rax
mov edx, ebx
movzx eax, byte [rsi + 0xb]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 3]
xor r8, rax
mov r11d, dword [r15 + r9*4 + 0x176cc0]
xor r11d, dword [r15 + r8*4 + 0x1778c0]
movzx eax, byte [rsi + 0xa]
xor rax, r10
movzx edx, byte [rax + r15 + 0x177dc0]
movzx eax, byte [rsi + 2]
xor rdx, rax
xor r11d, dword [r15 + rdx*4 + 0x1774c0]
movzx eax, byte [rsi + 9]
xor rax, rbx
movzx edx, byte [rax + r15 + 0x177cc0]
movzx eax, byte [rsi + 1]
xor rdx, rax
xor r11d, dword [r15 + rdx*4 + 0x1770c0]
add r11d, edi
add edi, r11d
mov rax, qword [r14]
mov dword [rax + r12*4 + 8], r11d
mov rax, qword [r14]
rol edi, 9
mov dword [rax + r12*4 + 0xc], edi
add r12, 4
cmp r12, 0x28
jb 0x14009ecf1
jmp 0x14009f66f
cmp r13, 0x18
jne 0x14009f2a0
mov r11, r12
mov r10d, 0x800
lea r15, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov r9, qword [r14]
movzx edx, byte [r11 + r15 + 0x177dc0]
movzx eax, byte [rcx]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rcx + 4]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rcx + 8]
xor rdx, rax
mov eax, dword [r15 + rdx*4 + 0x176cc0]
mov dword [r9 + r10 - 0x800], eax
mov r9, qword [r14]
movzx edx, byte [r11 + r15 + 0x177dc0]
movzx eax, byte [rcx + 1]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rcx + 5]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rcx + 9]
xor rdx, rax
mov eax, dword [r15 + rdx*4 + 0x1770c0]
mov dword [r9 + r10 - 0x400], eax
mov r9, qword [r14]
movzx edx, byte [rcx + 2]
movzx eax, byte [r11 + r15 + 0x177cc0]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rcx + 6]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177dc0]
movzx eax, byte [rcx + 0xa]
xor rdx, rax
mov eax, dword [r15 + rdx*4 + 0x1774c0]
mov dword [r9 + r10], eax
mov r9, qword [r14]
movzx edx, byte [rcx + 3]
movzx eax, byte [r11 + r15 + 0x177cc0]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rcx + 7]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177dc0]
movzx eax, byte [rcx + 0xb]
xor rdx, rax
mov eax, dword [r15 + rdx*4 + 0x1778c0]
mov dword [r9 + r10 + 0x400], eax
lea r11, [r11 + 1]
add r10, 4
cmp r10, 0xc00
jne 0x14009efb0
mov rcx, qword [rsp + 0x60]
movzx r11d, byte [r12 + r15 + 0x177cc1]
movzx r10d, byte [r12 + r15 + 0x177dc1]
mov edx, r11d
movzx eax, byte [rsi + 0x16]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi + 0xe]
xor r8, rax
movzx r9d, byte [r8 + r15 + 0x177dc0]
movzx eax, byte [rsi + 6]
xor r9, rax
mov edx, r10d
movzx eax, byte [rsi + 0x15]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 0xd]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rsi + 5]
xor rdx, rax
mov ebx, dword [r15 + r9*4 + 0x1774c0]
xor ebx, dword [r15 + rdx*4 + 0x1770c0]
movzx eax, byte [rsi + 0x14]
xor r10, rax
movzx edx, byte [r10 + r15 + 0x177cc0]
movzx eax, byte [rsi + 0xc]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi + 4]
xor r8, rax
xor ebx, dword [r15 + r8*4 + 0x176cc0]
movzx eax, byte [rsi + 0x17]
xor r11, rax
movzx edx, byte [r11 + r15 + 0x177dc0]
movzx eax, byte [rsi + 0xf]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 7]
xor r8, rax
xor ebx, dword [r15 + r8*4 + 0x1778c0]
rol ebx, 8
movzx r11d, byte [r12 + r15 + 0x177cc0]
movzx r8d, byte [r12 + r15 + 0x177dc0]
movzx eax, byte [rsi + 0x11]
xor rax, r8
movzx edx, byte [rax + r15 + 0x177dc0]
movzx eax, byte [rsi + 9]
xor rdx, rax
movzx r9d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi + 1]
xor r9, rax
movzx eax, byte [rsi + 0x10]
xor rax, r8
movzx edx, byte [rax + r15 + 0x177cc0]
movzx eax, byte [rsi + 8]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi]
xor r8, rax
mov r10d, dword [r15 + r9*4 + 0x1770c0]
xor r10d, dword [r15 + r8*4 + 0x176cc0]
movzx eax, byte [rsi + 0x13]
xor rax, r11
movzx edx, byte [rax + r15 + 0x177dc0]
movzx eax, byte [rsi + 0xb]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 3]
xor r8, rax
xor r10d, dword [r15 + r8*4 + 0x1778c0]
movzx eax, byte [rsi + 0x12]
xor r11, rax
movzx edx, byte [r11 + r15 + 0x177cc0]
movzx eax, byte [rsi + 0xa]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 2]
xor r8, rax
xor r10d, dword [r15 + r8*4 + 0x1774c0]
add r10d, ebx
add ebx, r10d
mov rax, qword [rcx]
mov dword [rax + r12*4], r10d
mov rax, qword [rcx]
rol ebx, 9
mov dword [rax + r12*4 + 4], ebx
add r12, 2
cmp r12, 0x28
jb 0x14009f0d1
jmp 0x14009f66a
cmp r13, 0x20
jne 0x14009f66f
mov r11, r12
mov r10d, 0x800
lea r15, [0x140000000]
nop word [rax + rax]
mov r9, qword [r14]
movzx edx, byte [r11 + r15 + 0x177dc0]
movzx eax, byte [rcx]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rcx + 4]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rcx + 8]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rcx + 0xc]
xor r8, rax
mov eax, dword [r15 + r8*4 + 0x176cc0]
mov dword [r9 + r10 - 0x800], eax
mov r9, qword [r14]
movzx edx, byte [rcx + 1]
movzx eax, byte [r11 + r15 + 0x177cc0]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rcx + 5]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177dc0]
movzx eax, byte [rcx + 9]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rcx + 0xd]
xor r8, rax
mov eax, dword [r15 + r8*4 + 0x1770c0]
mov dword [r9 + r10 - 0x400], eax
mov r9, qword [r14]
movzx edx, byte [rcx + 2]
movzx eax, byte [r11 + r15 + 0x177cc0]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rcx + 6]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rcx + 0xa]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rcx + 0xe]
xor r8, rax
mov eax, dword [r15 + r8*4 + 0x1774c0]
mov dword [r9 + r10], eax
mov r9, qword [r14]
movzx edx, byte [r11 + r15 + 0x177dc0]
movzx eax, byte [rcx + 3]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rcx + 7]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177dc0]
movzx eax, byte [rcx + 0xb]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rcx + 0xf]
xor r8, rax
mov eax, dword [r15 + r8*4 + 0x1778c0]
mov dword [r9 + r10 + 0x400], eax
lea r11, [r11 + 1]
add r10, 4
cmp r10, 0xc00
jne 0x14009f2c0
mov rcx, qword [rsp + 0x60]
movzx r10d, byte [r12 + r15 + 0x177dc1]
movzx r11d, byte [r12 + r15 + 0x177cc1]
movzx eax, byte [rsi + 0x1c]
xor rax, r10
movzx edx, byte [rax + r15 + 0x177dc0]
movzx eax, byte [rsi + 0x14]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi + 0xc]
xor r8, rax
movzx r9d, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rsi + 4]
xor r9, rax
movzx eax, byte [rsi + 0x1d]
xor rax, r11
movzx edx, byte [rax + r15 + 0x177dc0]
movzx eax, byte [rsi + 0x15]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 0xd]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rsi + 5]
xor rdx, rax
mov edi, dword [r15 + r9*4 + 0x176cc0]
xor edi, dword [r15 + rdx*4 + 0x1770c0]
movzx eax, byte [rsi + 0x1f]
xor rax, r10
movzx edx, byte [rax + r15 + 0x177cc0]
movzx eax, byte [rsi + 0x17]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 0xf]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177dc0]
movzx eax, byte [rsi + 7]
xor rdx, rax
xor edi, dword [r15 + rdx*4 + 0x1778c0]
movzx eax, byte [rsi + 0x1e]
xor rax, r11
movzx edx, byte [rax + r15 + 0x177cc0]
movzx eax, byte [rsi + 0x16]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi + 0xe]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177dc0]
movzx eax, byte [rsi + 6]
xor rdx, rax
xor edi, dword [r15 + rdx*4 + 0x1774c0]
rol edi, 8
movzx ebx, byte [r12 + r15 + 0x177dc0]
movzx r10d, byte [r12 + r15 + 0x177cc0]
mov edx, ebx
movzx eax, byte [rsi + 0x18]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 0x10]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rsi + 8]
xor rdx, rax
movzx r9d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi]
xor r9, rax
mov edx, r10d
movzx eax, byte [rsi + 0x1a]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177cc0]
movzx eax, byte [rsi + 0x12]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rsi + 0xa]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 2]
xor r8, rax
mov r11d, dword [r15 + r9*4 + 0x176cc0]
xor r11d, dword [r15 + r8*4 + 0x1774c0]
movzx eax, byte [rsi + 0x19]
xor r10, rax
movzx edx, byte [r10 + r15 + 0x177dc0]
movzx eax, byte [rsi + 0x11]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 9]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177cc0]
movzx eax, byte [rsi + 1]
xor rdx, rax
xor r11d, dword [r15 + rdx*4 + 0x1770c0]
movzx eax, byte [rsi + 0x1b]
xor rbx, rax
movzx edx, byte [rbx + r15 + 0x177cc0]
movzx eax, byte [rsi + 0x13]
xor rdx, rax
movzx r8d, byte [rdx + r15 + 0x177dc0]
movzx eax, byte [rsi + 0xb]
xor r8, rax
movzx edx, byte [r8 + r15 + 0x177dc0]
movzx eax, byte [rsi + 3]
xor rdx, rax
xor r11d, dword [r15 + rdx*4 + 0x1778c0]
add r11d, edi
add edi, r11d
mov rax, qword [rcx]
mov dword [rax + r12*4], r11d
mov rax, qword [rcx]
rol edi, 9
mov dword [rax + r12*4 + 4], edi
add r12, 2
cmp r12, 0x28
jb 0x14009f421
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14009f683
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xf]
call fcn.140041650
nop
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret