joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006c790
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14006c88a
lea rdx, str.SetCurrentProcessExplicitAppUserModelID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e0018], rax
test rax, rax
je 0x14006c88a
lea rcx, str.PROPSYS.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14006c88a
lea rdx, str.PropVariantToString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e0020], rax
test rax, rax
je 0x14006c88a
lea rcx, str.COMBASE.DLL
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14006c885
lea rdx, str.RoGetActivationFactory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e0028], rax
test rax, rax
je 0x14006c885
lea rdx, str.WindowsCreateStringReference
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e0030], rax
test rax, rax
je 0x14006c885
lea rdx, str.WindowsGetStringRawBuffer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e0038], rax
test rax, rax
je 0x14006c885
lea rdx, str.WindowsDeleteString
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e0040], rax
mov rbx, qword [rsp + 0x20]
cmp qword [0x1400e0018], 0
je 0x14006c8c3
cmp qword [0x1400e0020], 0
je 0x14006c8c3
cmp qword [0x1400e0028], 0
je 0x14006c8c3
cmp qword [0x1400e0030], 0
je 0x14006c8c3
cmp qword [0x1400e0040], 0
je 0x14006c8c3
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x14006fe88
Capabilities:
Parse pe header

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

Function at 0x140070268
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400702a2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400702a7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400702f0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140075420]
cmp byte [rcx + rax], 0
je 0x1400702f0
dec r8
sub rdx, 1
jne 0x1400702d6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140070660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140070380
mov ebx, eax
test eax, eax
jne 0x140070690
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400706f3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400706ea
test al, 0x10
je 0x1400706ea
bt eax, 0xa
jae 0x1400706e3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140070704
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400706df
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400706df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400706ea
and dword [rsp + 0x3c], 0
jmp 0x1400706ef
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret