joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400748d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x140074a24
cmp r9, 4
jb 0x14007491a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140074900
xor r11d, r11d
test r9, r9
je 0x140074a24
cmp r9, 0x40
jb 0x140074a03
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14007494c
cmp rdx, r8
jae 0x140074a03
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x140074961
cmp rdx, r10
jae 0x140074a03
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp], rdi
mov rdi, r9
and rdi, 0xffffffffffffffc0
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rdi
jb 0x140074990
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
cmp r11, r9
jae 0x140074a24
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x140074a10
add rsp, 8
ret

Function at 0x140074a30
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r9, rdx
test r8, r8
je 0x140074b41
cmp r8, 4
jb 0x140074a73
mov rdx, r8
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r9]
add r9, 4
xor dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140074a60
xor r10d, r10d
test r8, r8
je 0x140074b41
cmp r8, 0x40
jb 0x140074b25
lea rdx, [rcx - 1]
lea rax, [r9 - 1]
add rdx, r8
add rax, r8
cmp rcx, rax
ja 0x140074aa5
cmp rdx, r9
jae 0x140074b25
mov r11, r8
mov qword [rsp], rbx
and r11, 0xffffffffffffffc0
mov rdx, r9
lea rax, [rcx + 0x10]
sub rdx, rcx
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rdx + rax - 0x30]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rdx + rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r10, r11
jb 0x140074ac0
mov rbx, qword [rsp]
cmp r10, r8
jae 0x140074b41
sub r9, rcx
lea rdx, [r10 + rcx]
sub r8, r10
nop
movzx eax, byte [rdx + r9]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x140074b30
add rsp, 8
ret
Function at 0x14007f7d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14d, r8d
mov r13, rdx
mov qword [rsp + 0x28], rdx
mov rbx, rcx
add rcx, 8
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rcx, rax
mov qword [rsp + 0x30], rax
mov rax, qword [rax]
call qword [rax + 0x48]
mov r15d, eax
test eax, eax
je 0x14007f9b5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rsi, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
mov edi, eax
add edi, edi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x40]
add eax, edi
mov r12d, eax
mov rbp, qword [rbx + 0x28]
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x20], rdi
xor esi, esi
cmp rdi, r12
je 0x14007f8ce
test eax, eax
jne 0x14007f883
mov r13d, esi
jmp 0x14007f88e
mov rcx, r12
call fcn.140073270
mov r13, rax
mov r8, rdi
cmp r12, rdi
cmovb r8, r12
test rbp, rbp
je 0x14007f8c6
test r13, r13
je 0x14007f8b2
test r8, r8
je 0x14007f8b2
mov rdx, rbp
mov rcx, r13
call fcn.1400a7d40
mov rdi, rbp
xor eax, eax
mov rcx, qword [rsp + 0x20]
rep stosb byte [rdi], al
mov rcx, rbp
call fcn.1400732e0
mov rbp, r13
mov r13, qword [rsp + 0x28]
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x20], r12
mov qword [rbx + 0x18], 0xffffffffffffffff
cmp r14d, r15d
ja 0x14007f902
test rbp, rbp
je 0x14007f92c
test r13, r13
je 0x14007f92c
test r14d, r14d
je 0x14007f92c
mov r8, r14
mov rdx, r13
mov rcx, rbp
call fcn.1400a7d40
jmp 0x14007f92c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, qword [rax]
mov r9, r14
mov r8, r13
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call qword [rdi + 0x60]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r14d, eax
mov r8d, r15d
sub r8d, r14d
mov ecx, r14d
add rcx, qword [rbx + 0x28]
xor edx, edx
call fcn.1400a83f0
test r15d, r15d
je 0x14007f98a
mov rdi, rsi
mov rbp, r15
nop dword [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov edx, eax
mov rcx, qword [rbx + 0x28]
add rdx, rcx
movzx eax, byte [rdi + rcx]
xor al, 0x5c
mov byte [rsi + rdx], al
mov rax, qword [rbx + 0x28]
xor byte [rdi + rax], 0x36
lea rdi, [rdi + 1]
lea rsi, [rsi + 1]
sub rbp, 1
jne 0x14007f950
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400a5460
mov rbx, qword [rsp + 0x108]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea rcx, [rsp + 0x38]
call fcn.140006160
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400515e0
lea rdx, [0x140127268]
lea rcx, [rsp + 0x60]
call fcn.1400a7b10
int3
Function at 0x14009c7d4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14008ac86
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14008ac69
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14008ac54

Function at 0x1400cb4fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400cb328

Function at 0x1400d41f4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400d3f1a
call fcn.1400b4834
mov dword [rax], 0x16
call fcn.1400b46e4
jmp 0x1400d4065
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400d4065
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400d4065
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400d3f49
lock or dword [rcx + 0x14], 0x10
jmp 0x1400d4065
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400d3f5d
call fcn.1400d3e78
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1400d3f6d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1400d3f70
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1400d0894
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1400dc39c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400d4053
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400d4001
mov rcx, rbx
call fcn.1400d0894
cmp eax, 0xffffffff
je 0x1400d3fec
mov rcx, rbx
call fcn.1400d0894
cmp eax, 0xfffffffe
je 0x1400d3fec
mov rcx, rbx
call fcn.1400d0894
movsxd rdi, eax
lea r14, [0x140132290]
mov rcx, rbx
sar rdi, 6
call fcn.1400d0894
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400d3ff3
lea rdx, [0x14012a470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400d4001
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400d4025
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400d4025
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400d4025
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1400d4043
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1400d404e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1400d406a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400d3ee4