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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1401d00c0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rbp - 0x30], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x30]
call fcn.140016bd0
mov qword [rbp - 0x40], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x40]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140093443
mov qword [rbp - 0x30], r13
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
lea r8, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140093443
mov dword [rbp - 0x20], 1
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x14], 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x20]
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140093443
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.140015290
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140092fa4
mov rbx, qword [rbx]
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.14001e610
nop
mov dword [rbp - 0x3c], r13d
mov eax, r13d
mov dword [rbp - 0x40], eax
lea r14, [0x1401d0158]
mov qword [rbp - 0x38], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r13w
mov dword [rbp - 0x30], 5
cmp qword [rsp + 0x40], rax
je 0x14009308d
mov word [rsp + 0x20], r13w
mov r9d, 0x104
movzx r8d, byte [rbp - 0x50]
mov edx, r9d
lea rcx, [rsp + 0x50]
call fcn.140017410
nop dword [rax + rax]
mov edi, dword [rsp + 0x60]
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rcx, qword [rsp + 0x30]
mov edx, edi
call fcn.14015e228
mov rbx, rax
mov qword [rbp - 0x40], rax
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140013790
cmp ebx, edi
jae 0x140093030
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x20], eax
mov qword [rbp - 0x18], r14
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp - 0x40], xmm0
movd eax, xmm0
mov r12d, 3
mov dword [rbp - 0x30], r12d
test eax, eax
jne 0x14009347c
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.140073100
mov rbx, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 4
jb 0x140093148
lea rax, [r8 + 4]
mov qword [rbx + 0x10], rax
mov rdi, rbx
cmp rcx, 0xf
jbe 0x1400930dc
mov rdi, qword [rbx]
lea rax, [0x1401a8b78]
lea r14, [0x1401a8b74]
cmp rax, rdi
jbe 0x14009310a
lea rax, [rdi + r8]
cmp r14, rax
ja 0x14009310a
cmp rdi, r14
ja 0x140093102
mov r15, r13
jmp 0x140093110
mov r15, rdi
sub r15, r14
jmp 0x140093110
mov r15d, 4
inc r8
lea rcx, [rdi + 4]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, r15
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 4
sub r8, r15
lea rdx, [r14 + 4]
add rdx, r15
lea rcx, [rdi + r15]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140093175
mov qword [rsp + 0x28], 4
lea r14, [0x1401a8b74]
mov qword [rsp + 0x20], r14
xor r9d, r9d
movzx r8d, byte [rbp - 0x50]
mov edx, 4
mov rcx, rbx
call fcn.1400726a0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
or r12d, 8
mov dword [rbp - 0x30], r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, Ordinal_35
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp - 0x20]
call fcn.1400033c0
nop
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400931df
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x20]
call fcn.140015400
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
lea r8, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x140093216
mov bl, 1
jmp 0x14009330f
mov byte [rbp - 0x4f], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x4f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140093250
mov bl, 1
jmp 0x14009330f
mov byte [rbp - 0x4e], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x4e]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x14009328a
mov bl, 1
jmp 0x14009330f
mov byte [rbp - 0x50], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400932c1
mov bl, 1
jmp 0x14009330f
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
mov eax, dword [rbp - 0x80]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400932ff
mov bl, 1
jmp 0x14009330f
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp - 0x20]
call fcn.140015300
nop
lea rcx, [rsp + 0x70]
call fcn.140015300
nop
lea rcx, [rbp - 0x70]
call fcn.140015300
nop
lea rcx, [rsp + 0x50]
call fcn.140015290
nop
lea rcx, [rsp + 0x30]
call fcn.140015290
test bl, bl
jne 0x14009344d
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov r8d, gethostname
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp]
call fcn.1400033c0
nop
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14009337f
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp]
call fcn.140015400
mov edx, reloc.WS2_32.dll_recv
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14054e468], eax
jle 0x1400933ec
lea rcx, [0x14054e468]
call fcn.14015cb48
cmp dword [0x14054e468], 0xffffffff
jne 0x1400933ec
lea rcx, [0x14018eec0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtLoadDriver
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14054e460], rax
lea rcx, [0x14054e468]
call fcn.14015cadc
cmp qword [0x14054e460], 0
je 0x140093433
lea rdx, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rdx, qword [rbp]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov rax, qword [0x14054e460]
lea rcx, [rbp - 0x40]
call rax
test eax, eax
sete bl
jmp 0x140093435
xor bl, bl
lea rcx, [rbp]
call fcn.140015300
movzx eax, bl
jmp 0x14009344f
lea rcx, [rsp + 0x30]
call fcn.140015290
xor al, al
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14015ca80
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x40]
lea rcx, str.absolute
call fcn.140003a70
int3