Function at 0x140001310
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140037040]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rsi, qword [0x140037c30]
xor ebx, ebx
cmp qword [0x140037970], rbx
jne 0x140001687
movzx ecx, word [0x140031550]
movzx eax, byte [0x140031552]
movsd xmm0, qword [str.B_Y_v_vO]
xor al, 0x3f
movsd qword [rsp + 0x20], xmm0
xor byte [rsp + 0x21], 0x36
xor byte [rsp + 0x22], 0x37
xor byte [rsp + 0x23], 0x38
xor byte [rsp + 0x24], 0x39
xor byte [rsp + 0x25], 0x3a
xor byte [rsp + 0x26], 0x3b
xor byte [rsp + 0x27], 0x3c
mov word [rsp + 0x28], cx
xor cl, 0x3d
xor byte [rsp + 0x29], 0x3e
mov byte [rsp + 0x28], cl
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], 0x77
mov byte [rsp + 0x2a], al
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9, rax
test rax, rax
jne 0x14000149b
movzx ecx, word [0x140031540]
movzx eax, byte [0x140031542]
movsd xmm0, qword [str._ERJ_n_b]
xor al, 0x3f
movsd qword [rsp + 0x30], xmm0
xor byte [rsp + 0x31], 0x36
xor byte [rsp + 0x32], 0x37
xor byte [rsp + 0x33], 0x38
xor byte [rsp + 0x34], 0x39
xor byte [rsp + 0x35], 0x3a
xor byte [rsp + 0x36], 0x3b
xor byte [rsp + 0x37], 0x3c
mov word [rsp + 0x38], cx
xor cl, 0x3d
xor byte [rsp + 0x39], 0x3e
mov byte [rsp + 0x38], cl
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x30], 0x75
mov byte [rsp + 0x3a], al
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
movzx ecx, word [0x140031550]
movzx eax, byte [0x140031552]
movsd xmm0, qword [str.B_Y_v_vO]
xor al, 0x3f
movsd qword [rsp + 0x40], xmm0
xor byte [rsp + 0x41], 0x36
xor byte [rsp + 0x42], 0x37
xor byte [rsp + 0x43], 0x38
xor byte [rsp + 0x44], 0x39
xor byte [rsp + 0x45], 0x3a
xor byte [rsp + 0x46], 0x3b
xor byte [rsp + 0x47], 0x3c
mov word [rsp + 0x48], cx
xor cl, 0x3d
xor byte [rsp + 0x49], 0x3e
mov byte [rsp + 0x48], cl
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x40], 0x77
mov byte [rsp + 0x4a], al
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9, rax
test rax, rax
je 0x140001680
cmp dword [reloc.d2d1.dll_Ordinal_1], 2
mov ecx, ebx
movups xmm0, xmmword [0x1400315a0]
movzx eax, word [0x1400315d0]
movups xmm1, xmmword [0x1400315b0]
mov word [rbp - 0x80], ax
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x1400315c0]
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
jl 0x140001624
movdqa xmm0, xmmword [str.5555555555555555]
lea rdx, [rsp + 0x54]
movdqa xmm5, xmmword [0x140032a30]
movdqa xmm4, xmmword [0x140032c10]
movdqa xmmword [rbp - 0x70], xmm0
mov r8d, dword [rbp - 0x70]
movaps xmmword [rsp + 0x210], xmm6
movdqa xmm6, xmmword [0x140032a60]
nop
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140032a80]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140032a80]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x30
jl 0x140001510
movaps xmm6, xmmword [rsp + 0x210]
cmp ecx, 0x32
jge 0x14000165f
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop
mov eax, 0x8d3dcb09
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, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0x32
jl 0x140001630
lea rdx, [rsp + 0x50]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140037970], rax
test rax, rax
jne 0x140001687
mov qword [0x140037970], rbx
xor al, al
jmp 0x140001710
mov qword [rsp + 0x230], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x158
mov edi, eax
call sub.VCRUNTIME140.dll_memset
test edi, edi
je 0x1400016b1
mov dword [rbp - 0x48], edi
jmp 0x1400016b6
mov eax, dword [rsi]
mov dword [rbp - 0x48], eax
mov rax, qword [0x140037970]
mov rdi, qword [rsp + 0x230]
test rax, rax
je 0x140001702
mov ecx, 1
mov dword [rbp - 0x5c], 4
mov word [rbp - 0x5e], cx
lea rcx, [rbp - 0x60]
call rax
movzx ecx, word [rbp - 0x5e]
test rax, rax
jne 0x1400016ef
cmp cx, 1
je 0x140001702
cmp byte [rbp - 0x60], bl
je 0x140001702
test cx, cx
sete al
test al, al
je 0x140001702
mov rbx, qword [rbp - 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rbx, rax
sete al
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14002fa10
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret