Function at 0x140049a90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1590]
mov eax, 0x1690
call fcn.1400bdd80
sub rsp, rax
mov rax, qword [0x140124d18]
xor rax, rsp
mov qword [rbp + 0x1588], rax
mov qword [rbp - 0x18], r9
mov qword [rbp - 0x28], r8
mov rsi, rdx
mov r15, rcx
mov r12, qword [rbp + 0x15e0]
mov qword [rbp + 0x78], r12
xor r13d, r13d
mov edi, r13d
mov dword [rsp + 0x58], r13d
mov qword [rbp - 0x50], rdx
mov dword [rsp + 0x48], r13d
mov qword [rbp - 0x48], r13
xor r8d, r8d
lea rcx, [rbp + 0xc0]
call fcn.14006c040
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
test rsi, rsi
je 0x140049c52
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov qword [rbp - 0x68], r13
or edi, 1
mov dword [rsp + 0x58], edi
mov rbx, qword [r15 + 0x40]
test rbx, rbx
je 0x140049b83
xor ecx, ecx
call fcn.1400cbe94
test rbx, rbx
jle 0x140049b75
mov rcx, rbx
call fcn.14002e5c0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rbx
jmp 0x140049b8c
mov rax, r13
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rbx
jmp 0x140049b8c
mov rbx, qword [rbp - 0x80]
mov rax, qword [rsp + 0x78]
mov dword [rbp - 0x60], 0
lea r8, [rbp - 0x60]
mov rdx, rbx
mov rcx, rax
call fcn.140038520
mov rdx, qword [r15 + 0x40]
add rdx, 0x81
shr rdx, 7
lea rcx, [rbp - 0x78]
call fcn.1400852a0
mov r9, qword [rsp + 0x68]
cmp r9, qword [rsp + 0x70]
je 0x140049c0b
mov rax, qword [rsp + 0x78]
mov qword [r9], rax
mov rax, qword [rbp - 0x80]
mov qword [r9 + 8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov rdx, qword [rbp - 0x68]
mov qword [rbp - 0x68], r13
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x70], r13
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x78], r13
mov qword [r9 + 0x10], rax
mov qword [r9 + 0x18], rcx
mov qword [r9 + 0x20], rdx
add qword [rsp + 0x68], 0x28
jmp 0x140049c1d
lea r8, [rsp + 0x78]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.14001f8c0
and edi, 0xfffffffe
mov dword [rsp + 0x58], edi
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140049c3e
call fcn.140091210
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r13
mov rcx, qword [rsp + 0x78]
call fcn.1400cbe94
sub rsi, 1
jne 0x140049b31
mov rax, qword [rsp + 0x68]
mov rdi, qword [rax - 0x10]
sub rdi, qword [rax - 0x18]
inc rdi
mov eax, 0x50
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
add rax, 8
cmovb rax, rcx
mov rcx, rax
call fcn.1400bdd60
lea rcx, [0x14006e6f0]
test rax, rax
je 0x140049cb8
mov qword [rax], rdi
lea rbx, [rax + 8]
mov qword [rsp + 0x20], rcx
lea r9, [0x14006c5f0]
mov r8, rdi
mov edx, 0x50
mov rcx, rbx
call fcn.1400bdc20
xor edi, edi
jmp 0x140049cbc
xor edi, edi
mov ebx, edi
mov qword [rbp - 0x40], rbx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax - 0x10]
sub rcx, qword [rax - 0x18]
lea r13, [rcx + rcx*4]
shl r13, 4
add r13, rbx
movabs rax, 0x5555555555555555
mov qword [rbp + 0x1578], rax
mov edx, 0x2a
mov qword [rbp + 0x1f8], rdx
lea ecx, [rdx - 0x29]
movabs r8, 0x5851f42d4c957f2d
mov rax, rdx
shr rax, 0x3e
xor rdx, rax
imul rdx, r8
add rdx, rcx
mov qword [rbp + rcx*8 + 0x1f8], rdx
inc rcx
cmp rcx, 0x138
jb 0x140049d02
mov dword [rbp + 0x1f0], 0x138
mov qword [rbp - 0x20], rdi
mov qword [rsp + 0x50], rdi
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
cmp qword [rbp + 0x15e8], 0
jbe 0x14004a0bb
mov rbx, 0xffffffffffffffff
nop dword [rax]
lea rax, [rbp + 0x1f0]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 0x40
mov qword [rbp], rbx
mov rdx, qword [r12 + 8]
mov rcx, qword [r12]
lea r8, [rbp - 0x10]
call fcn.140022910
mov r10, qword [r12 + 8]
mov r9, qword [r12]
mov rcx, r10
sub rcx, r9
sar rcx, 3
mov r8, qword [rbp + 0x15e8]
mov rax, r8
mov rdx, qword [rsp + 0x50]
sub rax, rdx
cmp rax, rcx
jae 0x140049dc4
sub r8, rdx
lea rax, [r9 + r8*8]
cmp rax, r10
je 0x140049dc4
mov qword [r12 + 8], rax
mov qword [rbp - 0x58], rdi
cmp qword [rbp - 0x50], 0
jbe 0x140049f0b
nop dword [rax]
nop word [rax + rax]
mov qword [rbp + 8], r12
lea rax, [rbp - 0x50]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], r15
lea rax, [rsp + 0x60]
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x15f0]
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0x15e8]
mov qword [rbp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rbp + 0x40], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x48], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rbp + 0x58], rax
lea rax, [rbp - 0x48]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], r13
lea r9, [rbp - 0x58]
lea r8, [rbp + 8]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xc0]
call fcn.140037780
nop
cmp rsi, qword [rsp + 0x40]
je 0x140049e97
mov qword [rsi], rdi
cmp rsi, rax
je 0x140049e88
mov rcx, qword [rax]
mov qword [rsi], rcx
mov qword [rax], rdi
movzx eax, byte [rax + 8]
mov byte [rsi + 8], al
mov byte [rsi + 8], 1
add rsi, 0x10
mov qword [rsp + 0x38], rsi
jmp 0x140049eac
mov r8, rax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140020370
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140049eec
mov eax, ebx
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140049ee7
mov r8, qword [rcx + 0xe0]
test r8, r8
je 0x140049edd
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x140049ee7
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rsi, qword [rsp + 0x38]
mov rax, qword [rbp - 0x58]
inc rax
mov qword [rbp - 0x58], rax
cmp rax, qword [rbp - 0x50]
jb 0x140049de0
mov r14, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
cmp r14, rsi
je 0x14004a0a2
nop dword [rax]
nop dword [rax + rax]
mov rbx, rdi
mov qword [rbp - 0x38], rbx
lea rax, [rbp - 0x38]
cmp rax, r14
je 0x140049f3a
mov rbx, qword [r14]
mov qword [rbp - 0x38], rbx
mov qword [r14], rdi
mov byte [rbp - 0x30], 1
test rbx, rbx
je 0x14004a216
cmp byte [rbx + 0xd0], 0
jne 0x14004a216
mov rax, qword [rbx]
mov dl, 1
mov rcx, rbx
call qword [rax + 0x10]
mov rsi, qword [rax]
mov rdi, qword [rax + 8]
movss xmm0, dword [rax + 0x10]
movss dword [rbp + 0xa0], xmm0
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140049faa
mov rcx, qword [rbp - 0x38]
mov r8, qword [rcx + 0xe0]
test r8, r8
je 0x140049f9f
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x140049faa
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rbp - 0x48]
add rcx, rdi
mov qword [rbp - 0x48], rcx
movss xmm0, dword [rbp + 0xa0]
movss xmm2, dword [rsp + 0x48]
subss xmm0, xmm2
xorps xmm1, xmm1
test rdi, rdi
js 0x140049fd6
cvtsi2ss xmm1, rdi
jmp 0x140049feb
mov rax, rdi
shr rax, 1
and edi, 1
or rax, rdi
cvtsi2ss xmm1, rax
addss xmm1, xmm1
mulss xmm0, xmm1
xorps xmm1, xmm1
test rcx, rcx
js 0x140049ffe
cvtsi2ss xmm1, rcx
jmp 0x14004a013
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
addss xmm2, xmm0
movss dword [rsp + 0x48], xmm2
mov rdx, qword [rsp + 0x50]
add rdx, rsi
mov qword [rsp + 0x50], rdx
add r14, 0x10
mov rsi, qword [rsp + 0x38]
cmp r14, rsi
mov edi, 0
jne 0x140049f20
mov r14, qword [rsp + 0x30]
lea rbx, [rdi - 1]
cmp r14, rsi
je 0x14004a0a2
mov rcx, qword [r14]
test rcx, rcx
je 0x14004a08f
mov eax, ebx
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004a08a
mov r8, qword [rcx + 0xe0]
test r8, r8
je 0x14004a080
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x14004a08a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rsi, qword [rsp + 0x38]
add r14, 0x10
cmp r14, rsi
jne 0x14004a053
mov r14, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
mov rsi, r14
mov qword [rsp + 0x38], r14
cmp rdx, qword [rbp + 0x15e8]
jb 0x140049d60
mov rbx, qword [rbp - 0x40]
mov r15, qword [rbp + 0x15e8]
test rbx, rbx
je 0x14004a0f9
lea r9, [0x14006e6f0]
mov r8, qword [rbx - 8]
mov edx, 0x50
mov rcx, rbx
call fcn.1400bdc90
mov rax, qword [rbx - 8]
lea rdx, [rax + rax*4]
shl rdx, 4
add rdx, 8
lea rcx, [rbx - 8]
call fcn.1400bdd68
nop
mov rcx, qword [rsp + 0x60]
xor r13d, r13d
test rcx, rcx
je 0x14004a15a
mov rdi, qword [rsp + 0x68]
cmp rcx, rdi
je 0x14004a147
lea rbx, [rcx + 0x10]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004a12c
call fcn.140091210
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx - 0x10]
call fcn.1400cbe94
add rbx, 0x28
lea rax, [rbx - 0x10]
cmp rax, rdi
jne 0x14004a114
mov rcx, qword [rsp + 0x60]
call fcn.140091210
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
test r14, r14
je 0x14004a1ba
cmp r14, rsi
je 0x14004a1b1
mov rcx, qword [r14]
test rcx, rcx
je 0x14004a1a3
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004a19e
mov r8, qword [rcx + 0xe0]
test r8, r8
je 0x14004a194
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x14004a19e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rsi, qword [rsp + 0x38]
add r14, 0x10
cmp r14, rsi
jne 0x14004a164
mov r14, qword [rsp + 0x30]
mov rcx, r14
call fcn.140091210
nop
lea rcx, [rbp + 0xc0]
call fcn.14006e3f0
nop
mov rcx, qword [r12]
test rcx, rcx
je 0x14004a1e3
call fcn.140091210
mov qword [r12], r13
mov qword [r12 + 8], r13
mov qword [r12 + 0x10], r13
mov rax, r15
mov rcx, qword [rbp + 0x1588]
xor rcx, rsp
call fcn.1400bd960
lea r11, [rsp + 0x1690]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov edx, 4
lea rcx, [rbp + 0xa8]
call fcn.140080bd0
mov rcx, rax
call fcn.1400bcb14
int3