Function at 0x1400b99f0
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xa8
mov edi, dword [0x14024b4c8]
mov qword [rax + 8], rbx
mov qword [rax - 0x18], r14
movsxd rax, dword [0x1401b5e98]
cmp eax, 0x7b
ja 0x1400b9a32
lea rbx, [0x14024bc10]
mov rbx, qword [rbx + rax*8]
test rbx, rbx
jne 0x1400b9a84
movzx ecx, word [0x14017cae8]
lea rbx, [rbp - 0x29]
movsd xmm0, qword [str.cTVWA]
movzx eax, byte [0x14017caea]
movsd qword [rbp - 0x29], xmm0
xor byte [rbp - 0x28], 0x31
xor byte [rbp - 0x27], 0x32
xor byte [rbp - 0x26], 0x33
xor byte [rbp - 0x25], 0x34
xor byte [rbp - 0x24], 0x35
xor byte [rbp - 0x23], 0x36
xor byte [rbp - 0x22], 0x37
mov word [rbp - 0x21], cx
xor cl, 0x38
xor byte [rbp - 0x20], 0x39
xor al, 0x3a
mov byte [rbp - 0x29], 0x53
mov byte [rbp - 0x1f], al
mov byte [rbp - 0x21], cl
mov r10d, dword [0x14018c018]
mov r11d, 5
lea r14d, [r11 + 0x1a]
cmp edi, 1
jne 0x1400b9c88
cmp byte [0x14017ca61], 0
movups xmm0, xmmword [str._CW_G]
movzx eax, word [0x14017ca60]
mov word [rbp + 7], ax
movups xmmword [rbp - 9], xmm0
je 0x1400b9c84
xor r8d, r8d
cmp r10d, 2
jl 0x1400b9c43
movdqa xmm0, xmmword [str.0000000000000000]
lea rcx, [rbp - 5]
movdqa xmm5, xmmword [0x140180110]
movdqa xmm4, xmmword [0x140180330]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm7
movdqa xmm7, xmmword [0x140180130]
movdqa xmmword [rbp - 0x19], xmm0
mov edx, dword [rbp - 0x19]
movaps xmmword [rsp + 0x70], xmm8
movd xmm6, r11d
movd xmm8, r14d
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 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 r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401801d0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401801d0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x1400b9b20
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
cmp r8d, 0x12
jge 0x1400b9c84
movsxd rax, r8d
lea r9, [rbp - 9]
add r9, rax
nop dword [rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0x12
jl 0x1400b9c50
lea rbx, [rbp - 9]
cmp byte [0x14017cd23], 0
mov eax, dword [str.qX_3]
mov dword [rbp + 0x77], eax
je 0x1400b9d74
cmp r10d, 2
jl 0x1400b9d31
movdqa xmm3, xmmword [0x140180110]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140180330]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140180330]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
movd xmm0, r11d
psrad xmm2, xmm0
movd xmm0, r14d
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x140180130]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401801d0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.0000000000000000]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rbp + 0x77], xmm2
jmp 0x1400b9d74
lea r9, [rbp + 0x77]
xor r8d, r8d
nop dword [rax + rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 4
jl 0x1400b9d40
lea rcx, [rbp + 0x77]
call fcn.1400a7020
movss xmm1, dword [0x140180014]
xorps xmm0, xmm0
call fcn.14008a3b0
mov rcx, rbx
mov dword [rbp + 0x6f], 0x42f00000
lea rdx, [rbp + 0x6f]
mov dword [rbp + 0x73], 0x41c80000
call fcn.1400a7960
mov r14, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xc0]
test al, al
je 0x1400b9de0
test edi, edi
jne 0x1400b9de0
mov qword [rsp + 0x28], 0
lea r8, [0x1400b9390]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0xa8
pop rdi
pop rbp
ret