joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d38b0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14010efb0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1401297f2]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x140129578]
xor r13d, r13d
lea r12, [0x140129892]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1400d3a55
cmp ebx, 0x140
jb 0x1400d39d0
cmp ebx, 0x14e
ja 0x1400d39d0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x1400d39df
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1400d3a22
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1400d3a55
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x1400d3932
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400d6af0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400d6790
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14010efb0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14012a108], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x1400d67e5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d6af0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14012a108], rax
test rax, rax
jne 0x1400d6828
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1400d67f0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400cc2a0
jmp 0x1400d694d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14012a108]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x14012a110], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14012a108]
lea rdx, str.OSMesaDestroyContext
mov qword [0x14012a118], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14012a108]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x14012a120], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14012a108]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x14012a128], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14012a108]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x14012a130], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14012a108]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x14012a138], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14012a110], 0
mov qword [0x14012a140], rax
je 0x1400d691f
cmp qword [0x14012a120], 0
je 0x1400d691f
cmp qword [0x14012a128], 0
je 0x1400d691f
cmp qword [0x14012a130], 0
je 0x1400d691f
cmp qword [0x14012a138], 0
je 0x1400d691f
test rax, rax
je 0x1400d691f
mov eax, 1
jmp 0x1400d694f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400cc2a0
mov rcx, qword [0x14012a108]
test rcx, rcx
je 0x1400d694d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14012a108], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d6af0
add rsp, 0x48
ret

Function at 0x1400d793c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d7986
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d7986
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d7986
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d7986
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d7986
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d7988
xor al, al
add rsp, 0x28
ret
Function at 0x1406cf058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406cf1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406cf089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406cf06f
add dl, dl
jne 0x1406cf096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406cf0f6
xor eax, eax
add dl, dl
jne 0x1406cf0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406cf1ad
add dl, dl
jne 0x1406cf0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cf0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cf0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cf0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406cf0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406cf07e
mov eax, 1
add dl, dl
jne 0x1406cf106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cf113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406cf0fb
sub eax, ebx
mov ebx, 1
jne 0x1406cf14c
mov ecx, 1
add dl, dl
jne 0x1406cf12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406cf13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406cf123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406cf07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406cf168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406cf175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406cf15d
cmp eax, 0x7d00
jae 0x1406cf19b
cmp eax, 0x500
jb 0x1406cf196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406cf07e
cmp eax, 0x7f
ja 0x1406cf19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406cf07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406cf1d2
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 0x1406cf07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20