Function at 0x14004b710
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x118
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x14010bcf8]
xor rax, rsp
mov qword [rbp + 0xa0], rax
movsxd rbx, dword [rsp + 0x198]
mov r14d, r9d
mov r9, qword [rsp + 0x180]
mov eax, r14d
mov r13, qword [rsp + 0x1a0]
and eax, 0xf
mov r12d, r14d
mov dword [rbp], eax
mov eax, dword [rsp + 0x188]
mov rsi, r8
shr r12d, 4
mov rdi, rdx
mov qword [rbp + 8], rcx
mov r15, rcx
cmp eax, 0xc
jne 0x14004b79c
movsd xmm0, qword [r9]
mov eax, dword [r9 + 8]
movsd qword [rbp + 0x40], xmm0
mov dword [rbp + 0x48], eax
mov dword [rbp + 0x4c], 0x1000000
jmp 0x14004b7be
lea rcx, [rbp + 0x40]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x20], eax
xor edx, edx
call fcn.14004ad50
mov r8d, dword [rsp + 0x1a8]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov r9, rsi
mov qword [rsp + 0x28], rax
mov rdx, r13
mov rcx, r15
mov dword [rsp + 0x20], r14d
call fcn.14004ad50
lea r8, [rbp + 0x80]
mov rcx, r15
lea rdx, [rbp + 0x40]
call fcn.140042f40
lea rax, [rbp + 0x80]
xor r8d, r8d
lea rcx, [rbp + 0x20]
or rax, rcx
test al, 7
jne 0x14004b826
movdqa xmm0, xmmword [rbp + 0x20]
pxor xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp + 0x20], xmm0
jmp 0x14004b87a
lea rcx, [rbp + 0x20]
lea rax, [rbp + 0x8f]
cmp rcx, rax
ja 0x14004b868
lea rcx, [rbp + 0x2f]
lea rax, [rbp + 0x80]
cmp rcx, rax
jb 0x14004b868
mov rcx, r8
mov edx, reloc.WS2_32.dll_recv
nop
movzx eax, byte [rbp + rcx + 0x80]
xor byte [rbp + rcx + 0x20], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14004b850
jmp 0x14004b87a
movdqa xmm0, xmmword [rbp + 0x20]
pxor xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp + 0x20], xmm0
mov ecx, r8d
test ebx, ebx
jle 0x14004b976
mov r10, qword [rsp + 0x190]
cmp ebx, 8
jb 0x14004b931
mov r9, rbx
lea rax, [rbp + 0x20]
and r9, 0xfffffffffffffff8
mov rdx, r10
sub rdx, rax
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax]
xorps xmm0, xmm0
lea rax, [rbp + 0x20]
add rax, r8
add ecx, 8
add r8, 8
movd xmm2, dword [rax + rdx]
movd xmm1, dword [rax]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rax + 4]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rax + rdx + 4]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp r8, r9
jl 0x14004b8b0
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd r8d, xmm3
cmp ecx, ebx
jge 0x14004b967
movsxd rax, ecx
lea rdx, [rbp + 0x20]
add rdx, rax
lea rax, [rbp + 0x20]
sub r10, rax
sub ebx, ecx
mov r9d, ebx
nop word [rax + rax]
movzx ecx, byte [rdx + r10]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
xor ecx, eax
or r8d, ecx
sub r9, 1
jne 0x14004b950
test r8d, r8d
je 0x14004b976
mov eax, 0xffffff4c
jmp 0x14004bab3
mov r14d, reloc.WS2_32.dll_ntohs
test r12d, r12d
je 0x14004ba6b
mov r13, rsi
lea rax, [rbp + 0x60]
sub r13, rdi
lea rbx, [rdi + 0xf]
mov r15, r13
sub r15, rax
nop dword [rax]
dec r12d
mov rax, r14
add byte [rbp + rax + 0x40], 1
jne 0x14004b9b6
dec rax
cmp rax, 0xc
jge 0x14004b9a6
mov rcx, qword [rbp + 8]
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0x40]
call fcn.140042f40
mov rax, rdi
lea rcx, [rbp + 0x60]
or rax, rsi
or rax, rcx
test al, 7
jne 0x14004b9f1
mov rax, qword [rbp + 0x60]
xor rax, qword [rsi]
mov qword [rdi], rax
mov rax, qword [rbp + 0x68]
xor rax, qword [rbx + r13 - 7]
mov qword [rbx - 7], rax
jmp 0x14004ba52
lea rax, [rbp + 0x6f]
cmp rdi, rax
ja 0x14004ba03
lea rax, [rbp + 0x60]
cmp rbx, rax
jae 0x14004ba11
lea rax, [rbx + r13]
cmp rdi, rax
ja 0x14004ba45
cmp rbx, rsi
jb 0x14004ba45
lea rax, [rbp + 0x60]
mov r8d, reloc.WS2_32.dll_recv
nop dword [rax + rax]
lea rcx, [r15 + rbx]
movzx edx, byte [rcx + rax - 0xf]
lea r9, [rbp + 0x6f]
xor dl, byte [rax]
lea rax, [rax + 1]
mov rcx, rbx
sub rcx, r9
mov byte [rcx + rax - 1], dl
sub r8, 1
jne 0x14004ba20
jmp 0x14004ba52
movdqu xmm0, xmmword [rsi]
pxor xmm0, xmmword [rbp + 0x60]
movdqu xmmword [rdi], xmm0
add rdi, 0x10
add rbx, 0x10
add rsi, 0x10
test r12d, r12d
jne 0x14004b9a0
mov r15, qword [rbp + 8]
mov ebx, dword [rbp]
test ebx, ebx
je 0x14004bab1
add byte [rbp + r14 + 0x40], 1
jne 0x14004ba83
dec r14
cmp r14, 0xc
jge 0x14004ba72
lea r8, [rbp + 0x60]
mov rcx, r15
lea rdx, [rbp + 0x40]
call fcn.140042f40
mov r8d, ebx
lea rcx, [rbp + 0x60]
mov rdx, rsi
call fcn.140042d70
mov r8, rbx
lea rdx, [rbp + 0x60]
mov rcx, rdi
call fcn.1400b14c0
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400b06c0
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret