Function at 0x14004f870
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
movups xmm0, xmmword [str.r_bocXSWNIgzRPK3]
mov r15, qword [0x1413f3ba0]
xor edi, edi
cmp byte [0x140102acd], dil
mov r12d, dword [0x140110090]
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm10
mov eax, dword [0x140102ac8]
movdqa xmm10, xmmword [0x140103fc0]
mov dword [rbp - 0x28], eax
movzx eax, word [0x140102acc]
movups xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x24], ax
movsd xmm0, qword [0x140102ac0]
movsd qword [rbp - 0x30], xmm0
je 0x14004fa6f
mov ecx, edi
cmp r12d, 2
jl 0x14004fa30
movdqa xmm0, xmmword [0x140103ff0]
lea rdx, [rbp - 0x3c]
movdqa xmm4, xmmword [0x140103f80]
movdqa xmm3, xmmword [0x140104340]
movdqa xmm5, xmmword [0x140103fb0]
movdqa xmmword [rbp - 0x20], xmm0
mov r8d, dword [rbp - 0x20]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x14004f940
cmp ecx, 0x1e
jge 0x14004fa6f
movsxd rax, ecx
lea r8, [rbp - 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x1e
jl 0x14004fa40
movss xmm2, dword [0x140103da8]
lea rdx, [rbp - 0x40]
mov rcx, qword [r15 + 0xa0]
call fcn.140028810
mov r13, qword [r15 + 0xa0]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x5c], rax
mov rax, qword [0x1413f3ba0]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x38], edi
mov byte [rsp + 0x3c], 1
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x54], rdi
mov qword [rsp + 0x5c], rdi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rsp + 0x7c], edi
mov dword [rbp - 0x80], 0x3f800000
mov qword [rbp - 0x50], rdi
mov byte [rsp + 0x78], 1
mov byte [rsp + 0x50], 1
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
test rax, rax
je 0x14004fb08
inc dword [rax + 0x3c8]
mov ecx, 0x6106c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
lea rbx, [0x1400c7ab0]
lea rax, [0x1400c7aa0]
mov qword [0x141429d88], r14
mov rcx, rbx
mov qword [0x141429b78], rax
mov qword [0x141429d90], r14
lea rsi, [r14 + 0x6106c]
mov qword [0x141429d80], rsi
call fcn.14002bd20
cmp rax, rbx
je 0x14004fb74
cmp qword [0x141429d90], rsi
ja 0x14004fb6d
mov rcx, rax
mov rbx, rax
call fcn.14002bd20
cmp rax, rbx
jne 0x14004fb54
lea rbx, [0x1400c7ab0]
movups xmm0, xmmword [rsp + 0x30]
lea rax, [0x140103bc8]
movups xmm2, xmmword [rsp + 0x40]
lea rdx, [rsp + 0x30]
movups xmm4, xmmword [rsp + 0x60]
mov rcx, r13
movups xmm3, xmmword [rsp + 0x50]
movups xmm5, xmmword [rsp + 0x70]
movups xmm6, xmmword [rbp - 0x80]
movups xmm7, xmmword [rbp - 0x70]
movups xmm8, xmmword [rbp - 0x60]
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x60], xmm4
mov byte [rbp - 4], 1
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0x6106c
movups xmmword [rsp + 0x50], xmm3
movups xmmword [rsp + 0x70], xmm5
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm7
movups xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm1
mov dword [rsp + 0x44], 0x41600000
mov qword [rsp + 0x68], rax
call fcn.140028590
mov rax, qword [0x1413f3ba0]
mov r13, qword [r15 + 0xa0]
test rax, rax
je 0x14004fc1d
inc dword [rax + 0x3c8]
mov ecx, 0x6106c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov rcx, rbx
lea rax, [0x1400c7aa0]
mov qword [0x141429d88], r14
mov qword [0x141429b78], rax
mov qword [0x141429d90], r14
lea rsi, [r14 + 0x6106c]
mov qword [0x141429d80], rsi
call fcn.14002bd20
cmp rax, rbx
je 0x14004fc7b
cmp qword [0x141429d90], rsi
ja 0x14004fc7b
mov rcx, rax
mov rbx, rax
call fcn.14002bd20
cmp rax, rbx
jne 0x14004fc62
xorps xmm0, xmm0
mov qword [rsp + 0x5c], rdi
movups xmmword [rbp - 0x7c], xmm0
mov qword [rsp + 0x30], rdi
xor eax, eax
movups xmmword [rbp - 0x6c], xmm0
lea rdx, [rsp + 0x30]
mov qword [rbp - 0x5c], rax
movups xmm7, xmmword [rbp - 0x70]
lea rax, [0x140103bc8]
movups xmm8, xmmword [rbp - 0x60]
mov rcx, r13
mov dword [rsp + 0x38], edi
mov byte [rsp + 0x3c], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x10], xmm0
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
movups xmm2, xmmword [rsp + 0x40]
mov qword [rsp + 0x68], rdi
movups xmm4, xmmword [rsp + 0x60]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x54], rdi
movups xmm3, xmmword [rsp + 0x50]
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 0x7f7fffff
mov byte [rsp + 0x78], dil
mov dword [rsp + 0x7c], edi
movups xmm5, xmmword [rsp + 0x70]
mov dword [rbp - 0x80], 0x3f800000
movups xmm6, xmmword [rbp - 0x80]
mov qword [rbp - 0x50], rdi
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x60], xmm4
mov byte [rbp - 4], 1
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0x6106c
movups xmmword [rsp + 0x50], xmm3
movups xmmword [rsp + 0x70], xmm5
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm7
movups xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm1
mov dword [rsp + 0x44], 0x41980000
mov qword [rsp + 0x68], rax
call fcn.140028590
movss xmm3, dword [0x140103dc8]
lea rax, [0x140100e84]
mov rcx, qword [r15 + 0xa0]
lea rdx, [0x14009ac30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.140028ca0
movss xmm3, dword [0x140103db0]
lea rdx, [0x1413e4be0]
mov rcx, qword [r15 + 0xa0]
mov r8d, 0xe43c
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.140028b40
cmp byte [0x140102acd], dil
movups xmm0, xmmword [str.r_bocXSWNIgzRPK3]
mov qword [0x1413f3da8], rax
mov eax, dword [0x140102ac8]
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x28], eax
movsd xmm0, qword [0x140102ac0]
movzx eax, word [0x140102acc]
movsd qword [rbp - 0x30], xmm0
mov word [rbp - 0x24], ax
je 0x14004ff70
cmp r12d, 2
jl 0x14004ff30
movdqa xmm0, xmmword [0x140103ff0]
lea rcx, [rbp - 0x3c]
movdqa xmm4, xmmword [0x140103f80]
movdqa xmm3, xmmword [0x140104340]
movdqa xmm5, xmmword [0x140103fb0]
movdqa xmmword [rbp - 0x20], xmm0
mov edx, dword [rbp - 0x20]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add edi, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
mov eax, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x18
jl 0x14004fe40
cmp eax, 0x1e
jge 0x14004ff70
movsxd rax, edi
lea r8, [rbp - 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, dil
inc edi
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp edi, 0x1e
jl 0x14004ff40
movss xmm2, dword [0x140103da8]
lea rdx, [rbp - 0x40]
mov rcx, qword [r15 + 0xa0]
call fcn.140028810
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm10, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret