joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d80
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rbx, rdx
mov edi, 0x34
mov rsi, rcx
lea edx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x140001e11
nop dword [rax + rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x140001dd0
movzx ecx, word [rax]
test cx, cx
je 0x140001e11
lea rax, [rsi + 0x68]
cmp cx, 0x2e
je 0x140001e11
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140001df6
movsxd rax, edi
xor ecx, ecx
mov rdx, rsi
mov word [rsi + rax*2], cx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140001ed7
lea r8, str.___
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, r14
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001e70
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001ed7
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140003e90
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x1400048c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004912
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004912
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004912
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004912
cmp dword [rcx + 0x84], 0xe
jbe 0x140004912
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004914
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
call fcn.140001a6c
test al, al
jne 0x14000103b
mov eax, 0xc0000001
jmp 0x140001199
and qword [rbp - 0x29], 0
lea rdx, [0x140002380]
lea rcx, [rbp - 0x21]
mov qword [0x140004098], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140002350]
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x29]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x21]
mov byte [rsp + 0x28], 0
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
js 0x140001197
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
js 0x140001197
lea rax, [0x1400011c0]
mov qword [rdi + 0x68], rax
lea r9, [0x140004090]
lea rax, [0x140001400]
mov qword [rdi + 0x70], rax
lea r8, [0x140004088]
mov qword [rdi + 0x80], rax
lea rcx, [rbp + 7]
lea rax, [0x140001220]
mov qword [rdi + 0xe0], rax
movups xmm0, xmmword [0x1400023a0]
movzx eax, word [0x1400023b8]
movsd xmm1, qword [0x1400023b0]
mov rdx, qword [0x140004098]
movaps xmmword [rbp + 7], xmm0
xorps xmm0, xmm0
mov word [rbp + 0x1f], ax
xor eax, eax
movups xmmword [rbp + 0x21], xmm0
mov dword [rbp + 0x41], eax
movups xmmword [rbp + 0x31], xmm0
mov word [rbp + 0x45], ax
movsd qword [rbp + 0x17], xmm1
call fcn.1400019b4
mov rax, qword [0x140004090]
lea r8, [0x140002270]
mov r9, qword [0x140004088]
xor edx, edx
mov qword [rsp + 0x20], rax
lea edi, [rdx + 0x4d]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea r9, [0x1400023c0]
xor edx, edx
lea r8, [0x140002290]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
call fcn.1400015a8
call fcn.140001418
lea r9, [0x1400023c0]
xor edx, edx
lea r8, [0x1400023d0]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001b10
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret