Function at 0x140002820
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov r14, rcx
xor edx, edx
mov dword [rsp + 0x30], edx
mov qword [rbp - 0x48], rdx
mov r13, qword [rsi + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r13
cmp rax, 0x22
jb 0x140002d53
cmp qword [rsi + 0x18], 0xf
jbe 0x140002888
mov rsi, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea r15, [r13 + 0x22]
mov ebx, 0xf
lea rdi, [rbp - 0x30]
cmp r15, rbx
jbe 0x140002926
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400028e1
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14000c200
test rax, rax
je 0x140002913
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140002922
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x1400028fb
mov rdi, rdx
jmp 0x140002922
cmp rcx, 0x1000
jb 0x14000291a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002d59
jmp 0x1400028c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c200
mov rdi, rax
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], rbx
movups xmm0, xmmword [str.SystemCurrentControlSetServices_]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x14000e948]
movups xmmword [rdi + 0x10], xmm1
movzx eax, word [0x14000e958]
mov word [rdi + 0x20], ax
lea rcx, [rdi + 0x22]
mov r8, r13
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r15], 0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x140002995
xor dil, dil
movdqa xmm6, xmmword [0x14000eea0]
jmp 0x140002cc4
mov dword [rbp - 0x40], 1
mov dword [rbp - 0x3c], 3
mov dword [rbp - 0x38], 3
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov r8d, 4
lea rdx, str.Type
lea rcx, [rbp - 0x68]
call fcn.1400066a0
nop
mov ebx, 0x11
mov dword [rsp + 0x30], ebx
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rdx, qword [rbp - 0x68]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002b5e
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov r8d, 0xc
lea rdx, str.ErrorControl
lea rcx, [rsp + 0x78]
call fcn.1400066a0
nop
mov ebx, 0x13
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rdx, qword [rsp + 0x78]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002b5e
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8d, 5
lea rdx, str.Start
lea rcx, [rsp + 0x58]
call fcn.1400066a0
nop
mov ebx, 0x17
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002b5e
mov edi, dword [r14 + 0x10]
inc edi
cmp qword [r14 + 0x18], 0xf
jbe 0x140002afb
mov r14, qword [r14]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov r8d, 9
lea rdx, str.ImagePath
lea rcx, [rsp + 0x38]
call fcn.1400066a0
mov ebx, 0x1f
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rdx, qword [rsp + 0x38]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002b5e
mov dil, 1
jmp 0x140002b61
xor dil, dil
movdqa xmm6, xmmword [0x14000eea0]
test bl, 8
je 0x140002bbc
and ebx, 0xfffffff7
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140002bb1
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c244
movdqu xmmword [rsp + 0x48], xmm6
mov byte [rsp + 0x38], 0
test bl, 4
je 0x140002c17
and ebx, 0xfffffffb
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140002c0c
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c244
movdqa xmm6, xmmword [0x14000eea0]
movdqu xmmword [rsp + 0x68], xmm6
mov byte [rsp + 0x58], 0
test bl, 2
je 0x140002c70
and ebx, 0xfffffffd
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140002c66
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c244
movdqa xmm6, xmmword [0x14000eea0]
movdqu xmmword [rbp - 0x78], xmm6
mov byte [rsp + 0x78], 0
test bl, 1
je 0x140002cc4
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140002cbb
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002cae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c244
movdqa xmm6, xmmword [0x14000eea0]
movdqu xmmword [rbp - 0x58], xmm6
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140002d0a
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cfd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002cfd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c244
movdqa xmm6, xmmword [0x14000eea0]
movdqu xmmword [rbp - 0x20], xmm6
mov byte [rbp - 0x30], 0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140002d22
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000c1e0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.1400011b0
nop
call fcn.140001110
int3