Function at 0x140002140
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
mov qword [rbp - 0x30], rcx
xor edi, edi
mov eax, dword [0x14006b9bc]
mov dword [rbp - 0x38], eax
movzx eax, byte [0x14006b9c0]
mov byte [rbp - 0x38], 0x54
xor byte [rbp - 0x37], 0x3a
xor byte [rbp - 0x36], 0x3b
xor byte [rbp - 0x35], 0x3c
xor al, 0x3d
mov byte [rbp - 0x34], al
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
test rax, rax
jne 0x1400022d0
mov rax, qword [0x14006bdd8]
mov qword [rbp - 0x30], rax
cmp byte [0x14006bddf], dil
je 0x1400022cc
cmp dword [0x1400801d8], 2
jl 0x140002297
movdqa xmm4, xmmword [0x14006c260]
movdqa xmm2, xmmword [0x14006c200]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14006c220]
psubd xmm2, xmm0
andps xmm2, xmmword [0x14006c230]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14006c250]
movd xmm0, dword [rbp - 0x30]
xorps xmm2, xmm0
movd dword [rbp - 0x30], xmm2
movdqa xmm2, xmmword [0x14006c210]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14006c220]
psubd xmm2, xmm0
andps xmm2, xmmword [0x14006c230]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14006c250]
movd xmm0, dword [rbp - 0x2c]
xorps xmm2, xmm0
movd dword [rbp - 0x2c], xmm2
jmp 0x1400022cc
lea r8, [rbp - 0x30]
mov ecx, edi
nop dword [rax]
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 8
jl 0x1400022a0
lea rdx, [rbp - 0x30]
mov eax, dword [str.eTNTP_]
mov dword [rbp - 0x40], eax
movzx ecx, word [0x14006bee0]
mov word [rbp - 0x3c], cx
movzx eax, byte [0x14006bee2]
mov byte [rbp - 0x40], 0x5c
xor byte [rbp - 0x3f], 0x3a
xor byte [rbp - 0x3e], 0x3b
xor byte [rbp - 0x3d], 0x3c
xor cl, 0x3d
mov byte [rbp - 0x3c], cl
xor byte [rbp - 0x3b], 0x3e
xor al, 0x3f
mov byte [rbp - 0x3a], al
lea rcx, [rbp - 0x20]
call fcn.14000d140
nop
lea rcx, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rcx + r8], 0
jne 0x140002320
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.14000d720
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14000239f
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000239a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000239a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005d62c
mov rax, rbx
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret