Function at 0x140041400
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov rax, qword [0x1400f5980]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov ebp, 0xffffff53
test rcx, rcx
je 0x1400416b2
mov rbx, rdx
test rdx, rdx
je 0x1400416b2
mov edi, r8d
test r8d, r8d
je 0x1400416a4
cmp edi, 0x10000
ja 0x1400416b2
mov rsi, rcx
mov ebp, 0xffffff39
cmp byte [rcx + 0x18], 1
jne 0x1400416b2
mov rcx, qword [rsi + 0x10]
mov rdx, rbx
mov r8d, edi
call fcn.1400416d0
mov ebp, eax
cmp eax, 2
jne 0x140041692
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [0x1400d6800]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x80
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x20], 0x30
lea r9, str.c63w
mov ecx, 1
xor edx, edx
xor r8d, r8d
call fcn.140042180
test eax, eax
jne 0x14004169b
pxor xmm0, xmm0
mov eax, recv
lea rcx, [0x1400d6820]
pxor xmm2, xmm2
pxor xmm1, xmm1
nop dword [rax + rax]
movdqa xmm3, xmmword [rax + rcx - 0xc]
mov edx, dword [rax + rcx - 8]
pxor xmm3, xmmword [rsp + rax + 0x54]
xor edx, dword [rsp + rax + 0x58]
movd xmm4, edx
punpcklbw xmm3, xmm0
punpcklwd xmm3, xmm0
por xmm3, xmm2
punpcklbw xmm4, xmm0
punpcklwd xmm4, xmm0
por xmm4, xmm1
mov edx, dword [rax + rcx - 4]
mov r8d, dword [rax + rcx]
xor edx, dword [rsp + rax + 0x5c]
movd xmm2, edx
xor r8d, dword [rsp + rax + 0x60]
movd xmm1, r8d
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
por xmm2, xmm3
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm1, xmm4
add rax, 0x10
cmp rax, 0x8c
jne 0x1400414f0
por xmm1, xmm2
pxor xmm0, xmm0
pcmpeqd xmm0, xmm1
movmskps eax, xmm0
xor eax, 0xf
jne 0x14004169b
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov r8d, 0x24
call fcn.140042110
mov ebp, 1
test eax, eax
jne 0x1400415d2
lea rcx, [rsp + 0x60]
mov edx, 0x24
call fcn.140040e00
mov ebp, eax
test eax, eax
jne 0x1400415d2
lea rdx, [rsp + 0x64]
mov rcx, qword [rsi + 0x10]
mov r8d, 0x20
call fcn.140040c00
mov ebp, eax
test eax, eax
jne 0x1400415d2
mov rcx, qword [rsi + 0x10]
mov rdx, rbx
mov r8d, edi
call fcn.1400416d0
mov ebp, eax
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x61], 0
mov byte [rsp + 0x62], 0
mov byte [rsp + 0x63], 0
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0
mov byte [rsp + 0x6b], 0
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 0
mov byte [rsp + 0x6e], 0
mov byte [rsp + 0x6f], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 0
mov byte [rsp + 0x76], 0
mov byte [rsp + 0x77], 0
mov byte [rsp + 0x78], 0
mov byte [rsp + 0x79], 0
mov byte [rsp + 0x7a], 0
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x7c], 0
mov byte [rsp + 0x7d], 0
mov byte [rsp + 0x7e], 0
mov byte [rsp + 0x7f], 0
mov byte [rsp + 0x80], 0
mov byte [rsp + 0x81], 0
mov byte [rsp + 0x82], 0
mov byte [rsp + 0x83], 0
test ebp, ebp
je 0x1400416b2
cmp ebp, 3
jne 0x1400416a8
mov ebp, 0xffffff2f
mov al, 3
jmp 0x1400416af
xor ebp, ebp
jmp 0x1400416b2
mov ebp, 0xffffff39
mov al, 2
mov byte [rsi + 0x18], al
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14009adb0
mov eax, ebp
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
ret