Function at 0x14007e8b0
Capabilities:
Authenticate hmac
Encode data using xor
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140d81080]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov rsi, rcx
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14007e8f9
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
call fcn.14017e188
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rbp - 0x58]
call fcn.14007e640
nop
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rcx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x48]
lea rdi, [rcx + rax*2]
mov rbx, rdi
mov rdx, rdi
call fcn.14007e7a0
cmp rax, rdi
je 0x14007e98b
nop word [rax + rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14007e95f
cmp cx, 0x2f
jne 0x14007e968
add rax, 2
cmp rax, rdi
jne 0x14007e950
cmp rax, rdi
je 0x14007e98b
nop dword [rax]
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14007e98b
cmp cx, 0x2f
je 0x14007e98b
mov rbx, rdx
cmp rax, rdx
jne 0x14007e970
sub rdi, rbx
sar rdi, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14006dfc0
nop
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
call fcn.14017e188
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.14007f4c0
nop
lea rcx, [rsp + 0x60]
call fcn.14006c930
nop
lea rcx, [rbp - 0x58]
call fcn.14006c930
movups xmm0, xmmword [0x140d5ee28]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [0x140d5ee38]
movups xmmword [rbp - 0x70], xmm1
movzx eax, word [0x140d5ee48]
mov word [rbp - 0x60], ax
movzx eax, byte [0x140d5ee4a]
mov byte [rbp - 0x5e], al
mov r8d, r14d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14007eb67
movdqa xmm4, xmmword [0x140d62520]
movdqa xmm3, xmmword [0x140d62f60]
movdqa xmm5, xmmword [0x140d62570]
movdqa xmm0, xmmword [0x140d62a90]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rbp - 0x7c]
movdqa xmm6, xmmword [0x140d625b0]
mov edx, dword [rsp + 0x40]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x20
jl 0x14007ea80
cmp r8d, 0x23
jge 0x14007ebb0
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x23
jl 0x14007eb80
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14007ebd0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400643b0
nop
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova r9, qword [rsp + 0x40]
mov rcx, rbx
nop dword [rax]
inc rcx
cmp byte [r9 + rcx], 0
jne 0x14007ec00
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
mov rdx, qword [rbp + 8]
sub rax, rdx
cmp rax, rcx
jb 0x14007f005
lea rax, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rax, qword [rbp - 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 8]
movzx edx, byte [rbp - 0x30]
lea rcx, [rbp + 0x38]
call fcn.14007f7d0
nop
lea rcx, [rsp + 0x40]
call fcn.1400641b0
mov eax, dword [0x140d5ee4c]
mov dword [rsp + 0x40], eax
movzx eax, byte [0x140d5ee50]
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
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rsp + 0x40]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x14007eca4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400643b0
nop
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova r9, qword [rsp + 0x60]
nop
inc rbx
cmp byte [r9 + rbx], 0
jne 0x14007ecd0
mov rcx, qword [rsi + 0x10]
sub rdi, rcx
cmp rdi, rbx
jb 0x14007f00b
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14007ecf7
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r8, rsi
movzx edx, byte [rbp - 0x30]
lea rcx, [rbp + 0x18]
call fcn.14007f7d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400641b0
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
add r8, rdx
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x78]
call fcn.14007d050
nop
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0xf
cmova rdx, qword [rbp + 0x18]
mov r8, qword [rbp + 0x28]
add r8, rdx
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0xf
cmova rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x58]
call fcn.14007d050
nop
lea rdx, [rbp + 0x78]
cmp qword [rbp + 0x90], 7
cmova rdx, qword [rbp + 0x78]
lea r8, [rbp - 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14007ede4
mov eax, dword [rbp + 0x68]
add eax, eax
lea rcx, [rbp + 0x58]
cmp qword [rbp + 0x70], 7
cmova rcx, qword [rbp + 0x58]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, [0x140d5eee0]
xor edx, edx
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x38]
test eax, eax
je 0x14007ee46
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea rcx, [rbp + 0x58]
call fcn.14006c930
nop
lea rcx, [rbp + 0x78]
call fcn.14006c930
nop
lea rcx, [rbp + 0x18]
call fcn.1400641b0
nop
lea rcx, [rbp + 0x38]
call fcn.1400641b0
nop
lea rcx, [rbp - 8]
call fcn.1400641b0
movzx eax, bl
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.14017e360
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov dword [rsp + 0x28], 4
lea rax, [0x140d5ee54]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [0x140d5eef8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x38]
test eax, eax
jne 0x14007edde
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140d5ec48]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x14007ede4
lea rdx, [0x140d5ef08]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, [0x140d5ef20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea r9, [rbp - 0x30]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call rbx
test eax, eax
js 0x14007ede4
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
add r8, rdx
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.14007d050
nop
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x18]
sub rax, rcx
cmp rax, 0x34
jb 0x14007efff
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rax, qword [rbp - 0x28]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_60
lea r9, [0x140d5ef30]
lea rcx, [rsp + 0x60]
call fcn.14007d210
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x14007ef95
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007ef90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007ef90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017e5c0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x18], xmm1
movdqa xmm0, xmmword [0x140d62460]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
lea rcx, [rsp + 0x60]
call fcn.14006c930
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
lea rcx, [rbp + 0x98]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x98]
call rdi
mov ebx, eax
shr ebx, 0x1f
xor bl, 1
lea rcx, [rbp - 0x28]
call fcn.14006c930
jmp 0x14007ede6
call fcn.140044ab0
nop
call fcn.140044ab0
nop
call fcn.140044ab0
int3