Function at 0x14006c170
Capabilities:
Authenticate hmac
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1400c0040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor r15d, r15d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rbx, 0xffffffffffffffff
xorps xmm0, xmm0
test eax, eax
js 0x14006c276
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rbp - 0x30]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x14006c1f0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140007d20
nop
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rdx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x70]
cmova rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.14000feb0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x14006c296
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c26f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c26f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090ab4
jmp 0x14006c296
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
xor r8d, r8d
lea rdx, [0x1400a5dbf]
lea rcx, [rbp - 0x50]
call fcn.1400022a0
nop
mov eax, dword [str.mZCY6]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400aa054]
mov word [rsp + 0x44], ax
mov byte [rsp + 0x40], 0x5c
xor byte [rsp + 0x41], 0x32
xor byte [rsp + 0x42], 0x33
xor byte [rsp + 0x43], 0x34
xor al, 0x35
mov byte [rsp + 0x44], al
xor byte [rsp + 0x45], 0x36
lea rax, [rsp + 0x40]
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], 0
jne 0x14006c2d3
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
mov rdx, qword [rbp - 0x40]
sub rax, rdx
cmp rax, rcx
jb 0x14006cc17
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x70]
call fcn.1400103e0
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x68], rax
call fcn.140091dd4
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140019740
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.14001b2a0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x40], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x70], ecx
lea r12, str.8l_n_
mov qword [rbp - 0x68], r12
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14006c3e2
cmp eax, 1
sete sil
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14006c3f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c3ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c3ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov sil, 1
test ecx, ecx
jne 0x14006cbf9
jmp 0x14006c3a2
call fcn.140090ab4
movdqa xmm0, xmmword [0x1400af070]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14006c447
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c442
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c442
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090ab4
test sil, sil
je 0x14006c5d1
mov eax, dword [str.mZCY6]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400aa054]
mov word [rsp + 0x44], ax
mov byte [rsp + 0x40], 0x5c
xor byte [rsp + 0x41], 0x32
xor byte [rsp + 0x42], 0x33
xor byte [rsp + 0x43], 0x34
xor al, 0x35
mov byte [rsp + 0x44], al
xor byte [rsp + 0x45], 0x36
lea rax, [rsp + 0x40]
mov rcx, rbx
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14006c490
mov rax, rdi
mov rdx, qword [rbp - 0x40]
sub rax, rdx
cmp rax, rcx
jb 0x14006cc1d
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x70]
call fcn.1400103e0
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x68], rax
call fcn.140091dd4
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140019740
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.140092034
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14006cc23
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14006c57e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c579
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c579
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090ab4
movdqa xmm0, xmmword [0x1400af070]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14006c5d1
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c5cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c5cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090ab4
movsd xmm0, qword [str.mZCYjTWWR_N_]
movsd qword [rbp - 0x70], xmm0
mov eax, dword [0x1400aa2a0]
mov dword [rbp - 0x68], eax
movzx eax, word [0x1400aa2a4]
mov word [rbp - 0x64], ax
mov r14d, dword [0x1400c0090]
cmp byte [0x1400aa2a5], 0
je 0x14006c743
mov r8d, r15d
cmp r14d, 2
jl 0x14006c6fe
movdqa xmm4, xmmword [0x1400af780]
movdqa xmm2, xmmword [0x1400af0e0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400af110]
psubd xmm2, xmm0
andps xmm2, xmmword [0x1400af180]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400af200]
movd xmm0, dword [str.mZCYjTWWR_N_]
xorps xmm2, xmm0
movd dword [rbp - 0x70], xmm2
movdqa xmm2, xmmword [0x1400af100]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400af110]
psubd xmm2, xmm0
andps xmm2, xmmword [0x1400af180]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400af200]
movd xmm0, dword [rbp - 0x6c]
xorps xmm2, xmm0
movd dword [rbp - 0x6c], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x70]
add r9, rax
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x14006c710
lea rax, [rbp - 0x70]
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14006c750
mov rax, rdi
mov rdx, qword [rbp - 0x40]
sub rax, rdx
cmp rax, rcx
jb 0x14006cc39
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], rcx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x70]
call fcn.1400103e0
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x68], rax
call fcn.140091dd4
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140019740
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.14001b2a0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x40], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x70], ecx
mov qword [rbp - 0x68], r12
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14006c84d
cmp eax, 1
sete sil
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14006c85f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c85a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c85a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov sil, 1
test ecx, ecx
jne 0x14006cc08
jmp 0x14006c80d
call fcn.140090ab4
movdqa xmm0, xmmword [0x1400af070]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14006c8b2
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c8ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c8ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090ab4
test sil, sil
je 0x14006cb75
movsd xmm0, qword [str.mZCYjTWWR_N_]
movsd qword [rbp - 0x70], xmm0
mov eax, dword [0x1400aa2a0]
mov dword [rbp - 0x68], eax
movzx eax, word [0x1400aa2a4]
mov word [rbp - 0x64], ax
cmp byte [0x1400aa2a5], 0
je 0x14006ca33
mov r8d, r15d
cmp r14d, 2
jl 0x14006c9e7
movdqa xmm5, xmmword [0x1400af780]
movdqa xmm3, xmmword [0x1400af0e0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400af110]
psubd xmm3, xmm0
andps xmm3, xmmword [0x1400af180]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov eax, dword [0x1400af200]
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [str.mZCYjTWWR_N_]
xorps xmm3, xmm0
movd dword [rbp - 0x70], xmm3
movdqa xmm2, xmmword [0x1400af100]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400af110]
psubd xmm2, xmm0
andps xmm2, xmmword [0x1400af180]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x6c]
xorps xmm2, xmm1
movd dword [rbp - 0x6c], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x70]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x14006ca00
lea rax, [rbp - 0x70]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14006ca37
mov rax, qword [rbp - 0x40]
sub rdi, rax
cmp rdi, rbx
jb 0x14006cc3f
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], rbx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
call fcn.1400103e0
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x68], rax
call fcn.140091dd4
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140019740
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.140092034
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14006cbe3
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14006cb21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006cb1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006cb1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090ab4
movdqa xmm0, xmmword [0x1400af070]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14006cb75
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006cb6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006cb6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090ab4
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14006cbb3
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006cbae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006cbae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090ab4
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140090a50
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
shr rdx, 0x20
lea r8, [rsp + 0x50]
lea rcx, str.create_directory
call fcn.14001a9d0
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
call fcn.140063450
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
call fcn.140063450
nop
call fcn.1400021d0
int3
call fcn.1400021d0
nop
shr rdx, 0x20
lea r8, [rsp + 0x50]
lea rcx, str.create_directory
call fcn.14001a9d0
nop
call fcn.1400021d0
int3
call fcn.1400021d0
int3