Function at 0x140004180
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1401b40c0]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xb0], rdx
mov qword [rbp + 0xb8], rbx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov r8b, r12b
lea rcx, [rbp + 0xd0]
call fcn.14000e2fc
nop
mov dword [rsp + 0x30], r12d
lea rax, [0x1401b4158]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xd0]
call fcn.140003028
mov r14b, al
cmp dword [rsp + 0x30], r12d
jne 0x1400044ce
lea rcx, [rbp + 0xd0]
call fcn.140008918
test r14b, r14b
jne 0x140004351
movsd xmm0, qword [str.vXV]
movsd qword [rbp + 0xc0], xmm0
mov eax, dword [0x140185f28]
mov dword [rbp + 0xc8], eax
movzx eax, word [0x140185f2c]
mov word [rbp + 0xcc], ax
mov al, byte [0x140185f2e]
mov byte [rbp + 0xce], al
mov r8d, r12d
lea r9, [rbp + 0xc0]
lea r14d, [r12 + 0xf]
mov eax, 0x1f7047dd
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
inc r9
cmp r8d, r14d
jl 0x14000426b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
lea rax, [rbp + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r12b
jne 0x1400042b3
lea rdx, [rbp + 0xc0]
mov rcx, rsi
call fcn.14000a5ec
nop
mov rdx, qword [rdi + 0x18]
mov r15d, 0x1000
cmp rdx, r14
jbe 0x140004303
mov rcx, qword [rdi]
inc rdx
cmp rdx, r15
jb 0x1400042fe
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000434a
mov rcx, r8
call fcn.140152204
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r14
mov byte [rdi], r12b
mov rdx, qword [rbx + 0x18]
cmp rdx, r14
jbe 0x140004456
inc rdx
mov rcx, qword [rbx]
cmp rdx, r15
jb 0x140004451
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14000444e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.1400069a0
nop
mov qword [rbp - 0x70], r12
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400096e0
nop
mov rdx, rbx
lea rcx, [rbp + 0xd0]
call fcn.1400072d8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140006cc8
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x18], r14
mov byte [rsi], r12b
mov dword [rsp + 0x40], 8
cmp byte [rax], 3
jne 0x140004493
mov rdx, qword [rax + 8]
mov rcx, rsi
call fcn.1400165d4
nop
mov dl, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400082b4
nop
lea rcx, [rbp - 0x60]
call fcn.1400044e8
nop
mov rdx, qword [rdi + 0x18]
mov r15d, 0x1000
cmp rdx, r14
jbe 0x14000441a
mov rcx, qword [rdi]
inc rdx
cmp rdx, r15
jb 0x140004415
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004485
mov rcx, r8
call fcn.140152204
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r14
mov byte [rdi], r12b
mov rdx, qword [rbx + 0x18]
cmp rdx, r14
jbe 0x140004456
inc rdx
mov rcx, qword [rbx]
cmp rdx, r15
jb 0x140004451
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000448c
mov rcx, r8
call fcn.140152204
mov rax, rsi
mov byte [rbx], r12b
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x10], r12
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140151f60
add rsp, 0x220
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140008724
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rcx, [rbp + 0xf0]
call fcn.1400166a4
nop
mov r8, rax
lea rcx, [rsp + 0x58]
call fcn.140016750
lea rdx, [0x1401aecd0]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0xd0]
lea rdx, [rsp + 0x30]
lea rcx, str.exists
call fcn.140002f54
int3