Function at 0x140034150
Capabilities:
Delete registry key
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rbp + 0x430], rax
lea r13, str.KphBuildNumber
mov qword [rsp + 0x68], 0x1c
mov qword [rsp + 0x70], r13
xor eax, eax
mov r15d, 5
lock cmpxchg qword [0x140213dc0], r15
je 0x1400341b5
lea rcx, [0x140213dc0]
nop dword [rax]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockShared
mov rdi, qword [0x1402178b0]
lea rcx, [rbp + 0x50]
movups xmm0, xmmword [rsp + 0x68]
mov qword [rsp + 0x570], rbx
mov rax, qword [rdi + 0x10]
movups xmmword [rbp + 0x58], xmm0
call qword [case.0x140101f48.0]
mov edx, dword [rdi + 0x18]
mov r14d, eax
mov rcx, qword [rdi + 0x20]
dec edx
btr r14d, 0x1f
and edx, r14d
mov r8d, dword [rcx + rdx*4]
cmp r8d, 0xffffffff
je 0x140034242
nop dword [rax]
mov ebx, dword ds:[rdi]
add ebx, 8
imul ebx, r8d
add rbx, qword [rdi + 0x30]
cmp dword [rbx], r14d
jne 0x140034238
mov rax, qword [rdi + 8]
lea rsi, [rbx + 8]
mov rcx, rsi
lea rdx, [rbp + 0x50]
call qword [case.0x140101f48.0]
nop word [rax + rax]
test al, al
jne 0x14003438d
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x140034200
mov ebx, dword [rsp + 0x60]
xor r14d, r14d
mov esi, r14d
mov rax, r15
lock cmpxchg qword [0x140213dc0], r14
je 0x140034266
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfReleaseQueuedLockShared
mov qword ss:[rsp + 0x578], r12
test rsi, rsi
je 0x140034381
mov r12, 0xffffffffffffffff
test ebx, ebx
jne 0x1400343c0
mov r15d, dword [0x140213bbc]
lock bts qword [0x140213dc0], 0
mov qword [rsp + 0x68], 0x1c
mov qword [rsp + 0x70], r13
jae 0x1400342b5
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
mov rdi, qword [0x1402178b0]
lea rcx, [rbp + 0x80]
movups xmm0, xmmword [rsp + 0x68]
mov rax, qword [rdi + 0x10]
movups xmmword [rbp + 0x88], xmm0
call qword [case.0x140101f48.0]
mov edx, dword [rdi + 0x18]
mov r14d, eax
mov rcx, qword [rdi + 0x20]
dec edx
btr r14d, 0x1f
and edx, r14d
mov r8d, dword [rcx + rdx*4]
cmp r8d, 0xffffffff
je 0x14003433e
nop word [rax + rax]
mov ebx, dword ds:[rdi]
add ebx, 8
imul ebx, r8d
add rbx, qword [rdi + 0x30]
cmp dword [rbx], r14d
jne 0x140034334
mov rax, qword [rdi + 8]
lea rsi, [rbx + 8]
mov rcx, rsi
lea rdx, [rbp + 0x80]
call qword [case.0x140101f48.0]
nop dword [rax]
test al, al
jne 0x1400343ad
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x140034300
xor r14d, r14d
mov esi, r14d
mov rcx, r12
lock xadd qword [0x140213dc0], rcx
movzx eax, cl
and al, 6
cmp al, 2
jne 0x140034378
lea rax, [rcx - 1]
lea rdx, [rax + 4]
lock cmpxchg qword [0x140213dc0], rdx
jne 0x140034378
lea rcx, [0x140213dc0]
call fcn.140123de0
test rsi, rsi
jne 0x140034627
mov ecx, 0xc0000225
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
nop dword [rax]
test rsi, rsi
je 0x140034242
cmp dword [rsi], 1
jne 0x140034242
mov ebx, dword [rsi + 0x28]
xor r14d, r14d
jmp 0x14003424c
xor r14d, r14d
test rsi, rsi
je 0x140034344
cmp dword [rsi], 1
jne 0x140034344
mov dword [rsi + 0x28], r15d
jmp 0x140034344
cmp ebx, dword [0x140213bbc]
je 0x140034627
lea rax, str.SystemCurrentControlSetServices_
mov qword [rsp + 0x78], r14
mov qword [rbp + 0x1d8], rax
lea r8, [rbp + 0x220]
lea rax, str.KDeltrixHacker3
mov dword [rbp + 0x1c0], 1
mov qword [rbp + 0x1f8], rax
lea rcx, [rbp + 0x1c0]
lea rax, str.Parameters
mov qword [rbp + 0x1d0], 0x44
mov qword [rbp + 0x218], rax
mov r9d, 0x208
lea rax, [rbp - 0x68]
mov dword [rbp + 0x1e0], 1
mov edx, 3
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x1f0], 0x1e
mov dword [rbp + 0x200], 1
mov qword [rbp + 0x210], 0x16
call sym.ProcessHacker.exe_PhFormatToBuffer
test al, al
je 0x140034627
mov rbx, qword [rbp - 0x68]
add rbx, 0xfffffffffffffffe
mov word [rbp - 0x48], bx
call fcn.140123440
lea eax, ds:[rbx + 2]
mov word [rbp - 0x46], ax
lea rax, [rbp + 0x220]
mov qword [rbp - 0x40], rax
cmp rbx, 0xfffe
jbe 0x1400344a0
mov ebx, 0xc0000106
jmp 0x14003450f
xor r8d, r8d
lea rax, [rbp - 0x60]
lea r9, [rbp + 0x188]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x48]
lea rcx, [r8 - 3]
call fcn.140120390
test eax, eax
js 0x140034504
lea r8, [rbp + 0x188]
mov edx, 0x10000
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp - 0x60]
mov ebx, eax
test rcx, rcx
je 0x1400344ec
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
test ebx, ebx
js 0x140034504
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14003451f
call qword [sym.imp.ntdll.dll_NtDeleteKey]
cmp eax, 0xc0000034
mov ebx, eax
cmove ebx, r14d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14003451f
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140034627
mov r15d, dword [0x140213bbc]
lock bts qword [0x140213dc0], 0
mov qword [rsp + 0x68], 0x1c
mov qword [rsp + 0x70], r13
jae 0x140034555
lea rcx, [0x140213dc0]
nop
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
mov rdi, qword [0x1402178b0]
lea rcx, [rbp + 0xb0]
movups xmm0, xmmword [rsp + 0x68]
mov rax, qword [rdi + 0x10]
movups xmmword [rbp + 0xb8], xmm0
call qword [case.0x140101f48.0]
mov edx, dword [rdi + 0x18]
mov r14d, eax
mov rcx, qword [rdi + 0x20]
dec edx
btr r14d, 0x1f
and edx, r14d
mov r8d, dword [rcx + rdx*4]
cmp r8d, 0xffffffff
je 0x1400345e2
nop word [rax + rax]
mov ebx, dword ds:[rdi]
add ebx, 8
imul ebx, r8d
add rbx, qword [rdi + 0x30]
cmp dword [rbx], r14d
jne 0x1400345d8
mov rax, qword [rdi + 8]
lea rsi, [rbx + 8]
mov rcx, rsi
lea rdx, [rbp + 0xb0]
call qword [case.0x140101f48.0]
nop dword [rax]
test al, al
jne 0x1400348d5
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x1400345a0
xor r14d, r14d
mov esi, r14d
mov rcx, r12
lock xadd qword [0x140213dc0], rcx
movzx eax, cl
and al, 6
cmp al, 2
jne 0x14003461e
lea rax, ds:[rcx - 1]
lea rdx, [rax + 4]
lock cmpxchg qword [0x140213dc0], rdx
jne 0x14003461e
lea rcx, [0x140213dc0]
call fcn.140123de0
test rsi, rsi
je 0x140034381
call sym.ProcessHacker.exe_PhGetApplicationDirectory
mov rdi, rax
test rax, rax
je 0x140034cd5
mov rbx, qword ds:[rax]
mov rdx, qword [0x140213b58]
add rbx, 0x24
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
mov qword [rsp + 0x68], rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rbx + rcx], r14w
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
call fcn.140165120
mov rdx, qword [rsi + 8]
mov rcx, qword [rdi]
movups xmm0, xmmword [0x1401b98c0]
movups xmmword [rdx + rcx], xmm0
movups xmm1, xmmword [0x1401b98d0]
movups xmmword [rdx + rcx + 0x10], xmm1
mov eax, dword [0x1401b98e0]
mov dword [rdx + rcx + 0x20], eax
mov rbx, qword [rdi]
mov rdx, qword [0x140213b58]
add rbx, 0x22
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r13, rax
mov qword [rbp - 0x50], rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r14w
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
call fcn.140165120
mov rcx, qword [rdi]
mov rdx, qword [r13 + 8]
movups xmm0, xmmword [str.DeltrixHacker.sig]
movups xmmword [rdx + rcx], xmm0
movups xmm1, xmmword [0x1401b98f8]
movups xmmword [rdx + rcx + 0x10], xmm1
movzx eax, word [0x1401b9908]
mov word [rdx + rcx + 0x20], ax
lea rcx, [rdi - 0x10]
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140034723
call fcn.140106290
mov rcx, qword [rsi + 8]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
nop dword [rax]
test al, al
je 0x140034cd5
mov dword ds:[rbp - 0x70], 3
lea r9, [rbp - 0x70]
mov byte [rbp - 0x6c], 1
mov r8, qword [rsi + 8]
call fcn.140122c90
mov r15d, eax
test eax, eax
js 0x140034b75
mov rcx, qword ds:[r13 + 8]
lea rdx, [rbp - 0x38]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov r15d, eax
test eax, eax
js 0x140034a47
mov dword [rsp + 0x50], r14d
lea rax, [rbp - 0x38]
mov qword [rsp + 0x48], r14
lea r9, [rbp + 0x30]
mov dword [rsp + 0x40], 0x60
lea r8, [rbp]
mov dword [rsp + 0x38], 1
lea rcx, [rbp - 0x58]
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x120089
mov qword [rsp + 0x20], r14
mov dword [rbp], 0x30
mov qword [rbp + 8], r14
mov dword [rbp + 0x18], 0x40
mov qword [rbp + 0x10], rax
movdqu xmmword [rbp + 0x20], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
lea rcx, [rbp - 0x38]
mov r15d, eax
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test r15d, r15d
js 0x140034a47
mov rcx, qword [0x140213cd0]
mov edx, 4
mov rbx, qword [rbp - 0x58]
mov r8d, 0x400
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov r14, rax
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov dword [rsp + 0x30], 0x400
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, rbx
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov rcx, rbx
mov r15d, eax
call qword [sym.imp.ntdll.dll_NtClose]
test r15d, r15d
js 0x140034a35
mov rcx, qword [0x140213db0]
lea rax, [0x140123af0]
mov dword [rsp + 0x48], edi
xor r9d, r9d
mov qword [rbp - 0x28], rax
xor r8d, r8d
mov eax, dword [rbp - 8]
xor edx, edx
mov qword [rsp + 0x40], rdi
mov dword [rbp - 0x18], eax
lea rax, [rbp - 0x28]
mov dword [rsp + 0x38], 0x18
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov dword [rsp + 0x28], 0x99992007
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x20], r14
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov r13d, eax
test eax, eax
js 0x1400348f5
mov byte [0x1402130ef], 1
nop
jmp 0x140034a15
xor r14d, r14d
test rsi, rsi
je 0x1400345e8
cmp dword [rsi], 1
jne 0x1400345e8
mov dword ds:[rsi + 0x28], r15d
jmp 0x1400345e8
lea rax, str.EnableKphWarnings
mov qword [rbp - 0x80], 0x22
mov qword [rbp - 0x78], rax
mov ecx, 5
xor eax, eax
lock cmpxchg qword [0x140213dc0], rcx
je 0x140034926
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockShared
mov rdi, qword [0x1402178b0]
lea rcx, [rbp + 0xe0]
movups xmm0, xmmword [rbp - 0x80]
mov rax, qword [rdi + 0x10]
movups xmmword [rbp + 0xe8], xmm0
call qword [case.0x140101f48.0]
mov edx, dword [rdi + 0x18]
mov r15d, eax
mov rcx, qword [rdi + 0x20]
dec edx
btr r15d, 0x1f
and edx, r15d
mov r8d, dword [rcx + rdx*4]
cmp r8d, 0xffffffff
je 0x1400349a8
nop word [rax + rax]
mov ebx, dword [rdi]
add ebx, 8
imul ebx, r8d
add rbx, qword [rdi + 0x30]
cmp dword [rbx], r15d
jne 0x14003499e
mov rax, qword [rdi + 8]
lea rsi, [rbx + 8]
mov rcx, rsi
lea rdx, [rbp + 0xe0]
call qword [case.0x140101f48.0]
test al, al
jne 0x1400349e1
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x140034970
mov ebx, dword [rsp + 0x60]
xor ecx, ecx
mov esi, ecx
mov eax, 5
lock cmpxchg qword [0x140213dc0], rcx
je 0x1400349cc
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfReleaseQueuedLockShared
nop dword [rax]
test rsi, rsi
jne 0x1400349f2
mov ecx, 0xc0000225
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
test rsi, rsi
je 0x1400349a8
cmp dword [rsi], 1
jne 0x1400349a8
mov ebx, dword [rsi + 0x28]
xor ecx, ecx
jmp 0x1400349b0
test ebx, ebx
je 0x140034a15
test dword [0x140218960], 0x200
jne 0x140034a15
mov edx, r13d
lea rcx, str.Unable_to_verify_the_kernel_driver_signature.
call fcn.140034020
mov rcx, qword [0x140213cd0]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r13, qword ds:[rbp - 0x50]
jmp 0x140034ca3
mov rcx, qword [0x140213cd0]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rax, str.EnableKphWarnings
mov qword [rbp - 0x80], 0x22
mov qword [rbp - 0x78], rax
mov ecx, 5
xor eax, eax
lock cmpxchg qword [0x140213dc0], rcx
je 0x140034a78
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockShared
mov rdi, qword [0x1402178b0]
lea rcx, [rbp + 0x110]
movups xmm0, xmmword [rbp - 0x80]
mov rax, qword [rdi + 0x10]
movups xmmword [rbp + 0x118], xmm0
call qword [case.0x140101f48.0]
mov edx, dword [rdi + 0x18]
mov r14d, eax
mov rcx, qword [rdi + 0x20]
dec edx
btr r14d, 0x1f
and edx, r14d
mov r8d, dword [rcx + rdx*4]
cmp r8d, 0xffffffff
je 0x140034afe
nop dword [rax]
mov ebx, dword ds:[rdi]
add ebx, 8
imul ebx, r8d
add rbx, qword [rdi + 0x30]
cmp dword [rbx], r14d
jne 0x140034af4
mov rax, qword [rdi + 8]
lea rsi, [rbx + 8]
mov rcx, rsi
lea rdx, [rbp + 0x110]
call qword [case.0x140101f48.0]
nop dword [rax]
test al, al
jne 0x140034b37
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x140034ac0
mov ebx, dword [rsp + 0x60]
xor ecx, ecx
mov esi, ecx
mov eax, 5
lock cmpxchg qword [0x140213dc0], rcx
je 0x140034b22
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfReleaseQueuedLockShared
test rsi, rsi
jne 0x140034b48
mov ecx, 0xc0000225
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
test rsi, rsi
je 0x140034afe
cmp dword [rsi], 1
jne 0x140034afe
mov ebx, dword [rsi + 0x28]
xor ecx, ecx
jmp 0x140034b06
nop dword [rax + rax]
test ebx, ebx
je 0x140034ca3
test dword [0x140218960], 0x200
jne 0x140034ca3
lea rcx, str.Unable_to_load_the_kernel_driver_signature.
nop
jmp 0x140034c9b
lea rax, str.EnableKphWarnings
mov qword [rbp - 0x80], 0x22
mov qword [rbp - 0x78], rax
mov ecx, 5
xor eax, eax
lock cmpxchg qword [0x140213dc0], rcx
je 0x140034ba6
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockShared
mov rdi, qword [0x1402178b0]
lea rcx, [rbp + 0x140]
movups xmm0, xmmword [rbp - 0x80]
mov rax, qword [rdi + 0x10]
movups xmmword [rbp + 0x148], xmm0
call qword [case.0x140101f48.0]
mov edx, dword [rdi + 0x18]
mov r14d, eax
mov rcx, qword [rdi + 0x20]
dec edx
btr r14d, 0x1f
and edx, r14d
mov r8d, dword [rcx + rdx*4]
cmp r8d, 0xffffffff
je 0x140034c28
nop word [rax + rax]
mov ebx, dword [rdi]
add ebx, 8
imul ebx, r8d
add rbx, qword [rdi + 0x30]
cmp dword [rbx], r14d
jne 0x140034c1e
mov rax, qword [rdi + 8]
lea rsi, [rbx + 8]
mov rcx, rsi
lea rdx, [rbp + 0x140]
call qword [case.0x140101f48.0]
test al, al
jne 0x140034c61
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x140034bf0
mov ebx, dword [rsp + 0x60]
xor ecx, ecx
mov esi, ecx
mov eax, 5
lock cmpxchg qword [0x140213dc0], rcx
je 0x140034c4c
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfReleaseQueuedLockShared
nop dword [rax]
test rsi, rsi
jne 0x140034c72
mov ecx, 0xc0000225
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
test rsi, rsi
je 0x140034c28
cmp dword [rsi], 1
jne 0x140034c28
mov ebx, dword [rsi + 0x28]
xor ecx, ecx
jmp 0x140034c30
test ebx, ebx
je 0x140034ca3
lea rcx, [rbp + 0x170]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
je 0x140034ca3
test dword [0x140218960], 0x200
jne 0x140034ca3
lea rcx, str.Unable_to_load_the_kernel_driver.
mov edx, r15d
call fcn.140034020
mov rcx, qword [rsp + 0x68]
mov eax, r12d
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140034cbe
call fcn.140106290
lea rcx, [r13 - 0x10]
lock xadd dword [rcx + 8], r12d
cmp r12d, 1
jne 0x140034cd5
nop
call fcn.140106290
mov r12, qword [rsp + 0x578]
mov rbx, qword [rsp + 0x570]
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
nop
call fcn.140161390
mov rsi, qword [rsp + 0x580]
add rsp, 0x540
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret