Function at 0x1400505d0
Capabilities:
Install driver
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14023a0c0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r14, rcx
xor r15d, r15d
mov edi, r15d
mov dword [rbp - 0x20], r15d
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x48], xmm1
mov qword [rbp + 0x58], r15
mov edx, 0x9e18
lea rcx, [rbp + 0x48]
call fcn.14004f610
mov rbx, qword [rbp + 0x48]
mov r8d, 0x9e18
lea rdx, [0x14023a220]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + 0x9e18]
mov qword [rbp + 0x50], rax
lea rdx, [rbp + 0x28]
call fcn.14004ffe0
nop
lea rcx, [rbp - 0x18]
call fcn.14004fee0
nop
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.14004fbf0
nop
lea rdx, [rbp + 0x28]
cmp qword [rbp + 0x40], 0xf
cmova rdx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x38]
mov rcx, rax
call fcn.140002840
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x18], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], r15b
or edi, 4
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x1400506f8
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400506f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400506f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
movdqa xmm0, xmmword [0x14021f990]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp]
cmp rdx, 7
jbe 0x14005074c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050747
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050747
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
movdqa xmm0, xmmword [0x14021f970]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r15w
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 0xf
cmova rdx, qword [rbp + 8]
mov esi, 1
mov dword [rsp + 0x20], esi
mov r9d, 0x40
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rbp + 0xd0]
call fcn.140040ef0
nop
mov r8, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
sub r8, rdx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0xd8]
call fcn.1400410f0
test rax, rax
jne 0x1400507ee
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xd0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
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.140051790
mov qword [rbp - 0x18], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x18]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14005083a
mov bl, 1
jmp 0x1400508a9
mov qword [rbp - 0x20], r15
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140050863
mov bl, 1
jmp 0x1400508a9
mov dword [rbp - 0x40], esi
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x3c], rax
mov dword [rbp - 0x34], 2
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14005089d
mov bl, 1
jmp 0x1400508a9
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400508ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400508e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400508e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
test bl, bl
je 0x1400508fa
mov ebx, r15d
jmp 0x140050da1
lea rax, [rbp + 8]
cmp qword [rbp + 0x20], 0xf
cmova rax, qword [rbp + 8]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x38], rax
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x70]
call fcn.14004ae40
or edi, 8
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], r15
lea rax, [0x14023a158]
mov qword [rbp - 0x10], rax
lea r8, [rbp - 0x18]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14004fd60
or edi, 0x10
mov dword [rbp - 0x20], edi
cmp dword [rbp - 0x18], 0
jne 0x140050f8e
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.14004fbf0
nop
mov r9d, 4
lea r8, [0x14021f164]
xor edx, edx
mov rcx, rax
call fcn.1400518c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or edi, 0x20
mov dword [rbp - 0x20], edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, Ordinal_35
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp - 0x40]
call fcn.140002d40
nop
lea rdx, [rbp + 0x28]
cmp qword [rbp + 0x40], 0xf
cmova rdx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x38]
lea rcx, [rbp - 0x40]
call fcn.140002840
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
lea r8, [rbp - 0x18]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x140050a69
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140050a62
inc rdx
mov rcx, qword [rbp - 0x40]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140050a5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050b85
call fcn.1400c2084
mov bl, 1
jmp 0x140050b96
mov byte [rbp - 0x50], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140050a27
mov byte [rbp - 0x4f], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x4f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140050a27
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.Start
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140050a27
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, esi
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140050a27
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140050b91
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050b8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050b8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
test ebx, ebx
setne bl
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140050bd6
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050bd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050bd1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
movdqa xmm0, xmmword [0x14021f990]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140050c2f
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050c22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050c22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
movdqa xmm0, xmmword [0x14021f990]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140050c7d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050c78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050c78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
movdqa xmm0, xmmword [0x14021f970]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140050cd5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050cd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050cd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
test bl, bl
je 0x140050ce1
mov ebx, r15d
jmp 0x140050da1
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
mov r8d, gethostname
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x60]
call fcn.140002d40
nop
lea rdx, [rbp + 0x28]
cmp qword [rbp + 0x40], 0xf
cmova rdx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x38]
lea rcx, [rbp + 0x60]
call fcn.140002840
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0xb8]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp + 0xb8]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140050da1
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050d9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050d9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
mov dword [rbp + 0x80], ebx
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x88]
call fcn.140002ff0
nop
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xd0], rax
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xcc], edx
lea rcx, [rbp + 0xd8]
call fcn.14003f8f0
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x178]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x140050e4f
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050e4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050e4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp + 8], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x140050e9e
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050e98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050e98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
nop
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140050edc
mov rdx, qword [rbp + 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050ed6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050ed6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
nop
cmp dword [rbp + 0x80], 0
jl 0x140050f19
lea rax, [rbp + 0x88]
cmp r14, rax
je 0x140050f1c
lea rdx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 0xf
cmova rdx, qword [rbp + 0x88]
mov r8, qword [rbp + 0x98]
mov rcx, r14
call fcn.14004f6a0
jmp 0x140050f1c
mov esi, r15d
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0xf
jbe 0x140050f60
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050f5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050f5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
mov eax, esi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400c1cc0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x18]
lea rcx, str.absolute
call fcn.1400388d0
int3