Function at 0x140039970
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400b9e00]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x59], rcx
mov qword [rbp - 0x21], rdx
mov qword [rbp - 0x19], r8
xor ebx, ebx
call fcn.14003d350
mov r15, rax
test rax, rax
jne 0x140039a0f
mov dword [rbp - 0x59], 0xe1e0fee4
mov word [rbp - 0x55], 0x100
nop word [rax + rax]
lea eax, [rbx - 0x76]
xor byte [rbp + rbx - 0x59], al
inc rbx
cmp rbx, 4
jb 0x1400399d0
mov byte [rbp - 0x54], 0
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x55]
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.14000c0c0
nop
mov rcx, rsi
call fcn.140017280
nop
mov rcx, rdi
call fcn.140017280
jmp 0x140039c9d
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
movdqa xmm1, xmmword [0x140094c70]
movdqu xmmword [rbp - 1], xmm1
mov byte [rbp - 0x11], 0
movups xmmword [rbp + 0xf], xmm0
movdqu xmmword [rbp + 0x1f], xmm1
mov byte [rbp + 0xf], 0
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140039a41
mov r8, qword [rdi]
mov edx, 0x2712
mov rcx, r15
call fcn.14003fb50
mov edx, 0x51
lea r8d, [rdx - 0x50]
mov rcx, r15
call fcn.14003fb50
mov dword [rbp - 0x59], 0xecf5eee1
mov dword [rbp - 0x55], 0xbff8fbfb
mov dword [rbp - 0x51], 0xfafae5
mov byte [rbp - 0x4d], 1
lea r8, [rbp - 0x59]
mov edx, 0x27c1
mov rcx, r15
call fcn.14003fb50
mov edx, 0x40
lea r8d, [rdx - 0x3f]
mov rcx, r15
call fcn.14003fb50
mov r8, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140039aa7
mov r8, qword [rsi]
mov edx, 0x271f
mov rcx, r15
call fcn.14003fb50
lea r8, [0x14003be20]
mov edx, 0x4e2b
mov rcx, r15
call fcn.14003fb50
lea r8, [rbp - 0x11]
mov edx, 0x2711
mov rcx, r15
call fcn.14003fb50
lea r8, [0x140034470]
mov edx, 0x4e6f
mov rcx, r15
call fcn.14003fb50
lea r8, [rbp + 0xf]
mov edx, 0x272d
mov rcx, r15
call fcn.14003fb50
mov rcx, r15
call fcn.14003d410
test eax, eax
je 0x140039b4f
mov ecx, eax
call fcn.14003ca60
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x29], rbx
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140039b30
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.14000cc40
lea rcx, [rbp - 0x41]
call fcn.140033790
movups xmm0, xmmword [rbp - 0x11]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp - 1]
movups xmmword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x140094c70]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140039baf
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039baa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039baa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008aef4
movdqa xmm0, xmmword [0x140094c70]
movdqu xmmword [rbp + 0x1f], xmm0
mov byte [rbp + 0xf], 0
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140039bfe
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039bf9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039bf9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008aef4
movdqa xmm0, xmmword [0x140094c70]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140039c49
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140039c44
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039cc3
mov rcx, r8
call fcn.14008aef4
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140039c8e
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140039c89
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039cca
mov rcx, r8
call fcn.14008aef4
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rax, r14
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14008b8c0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
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]
int3