joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001050
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13f8
call fcn.1400078e0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401700a8]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x20], 0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140001f20
nop
call fcn.1400026b4
nop
cmp qword [rsp + 0x38], 0x10
jb 0x1400010b4
mov rcx, qword [rsp + 0x20]
call fcn.140002d78
call fcn.1400026b4
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov r8d, 1
mov edx, r8d
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, r8d
mov dword [rsp + rdx*4 + 0x54], eax
inc r8d
inc rdx
cmp rdx, 0x270
jl 0x1400010e0
mov dword [rsp + 0x50], 0x270
lea rcx, [rsp + 0x50]
call fcn.140002560
mov r11d, dword [rsp + 0x50]
mov ecx, dword [rsp + r11*4 + 0x54]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13d4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
movsd xmm1, qword [0x14016d620]
subsd xmm1, qword [0x14016d780]
addsd xmm1, qword [0x14016d628]
divsd xmm0, xmm1
mulsd xmm0, qword [0x14016d778]
subsd xmm0, qword [0x14016d658]
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140002830
add rsp, 0x13f8
ret

Function at 0x1400011a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13f8
call fcn.1400078e0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401700a8]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x20], 0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140001f20
nop
call fcn.1400026b4
nop
cmp qword [rsp + 0x38], 0x10
jb 0x140001204
mov rcx, qword [rsp + 0x20]
call fcn.140002d78
call fcn.1400026b4
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov r8d, 1
mov edx, r8d
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, r8d
mov dword [rsp + rdx*4 + 0x54], eax
inc r8d
inc rdx
cmp rdx, 0x270
jl 0x140001230
mov dword [rsp + 0x50], 0x270
lea rcx, [rsp + 0x50]
call fcn.140002560
mov r11d, dword [rsp + 0x50]
mov ecx, dword [rsp + r11*4 + 0x54]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13d4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
movsd xmm1, qword [0x14016d620]
xorpd xmm2, xmm2
subsd xmm1, xmm2
addsd xmm1, qword [0x14016d628]
divsd xmm0, xmm1
movsd xmm1, qword [0x14016d748]
subsd xmm1, xmm2
mulsd xmm0, xmm1
addsd xmm0, xmm2
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140002830
add rsp, 0x13f8
ret
Function at 0x140001af0
Capabilities:
Allocate or change rwx memory
Link function at runtime on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r8, rdx
mov r13, rcx
mov esi, dword [rdx + 0x90]
add rsi, rcx
mov eax, 1
mov ecx, 0xc
cmp dword [rdx + 0xe8], 0
cmovne eax, ecx
mov edx, dword [rdx + rax*8 + 0x8c]
mov ecx, dword [r8 + rax*8 + 0x88]
add rcx, r13
lea r9, [rsp + 0x60]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
movabs r14, 0x8000000000000000
nop word [rax + rax]
mov eax, dword [rsi + 0xc]
test eax, eax
je 0x140001bd3
lea rcx, [r13 + rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
mov edi, dword [rsi + 0x10]
add rdi, r13
mov qword [rsp + 0x28], rdi
mov eax, dword [rsi]
test eax, eax
lea rbx, [r13 + rax]
jne 0x140001b8e
mov rbx, rdi
mov qword [rsp + 0x20], rbx
mov rax, qword [rbx]
test rax, rax
je 0x140001bc8
mov rcx, r12
test r14, rax
movzx edx, ax
jne 0x140001bab
lea rdx, [rax + r13 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
add rdi, 8
mov qword [rsp + 0x28], rdi
add rbx, 8
mov qword [rsp + 0x20], rbx
jmp 0x140001b93
add rsi, 0x14
mov qword [rsp + 0x30], rsi
jmp 0x140001b60
jmp 0x140001bd5
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x140001bf0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x160
mov rax, qword [0x1401700a8]
xor rax, rsp
mov qword [rsp + 0x110], rax
movaps xmmword [r11 - 0x28], xmm6
xorps xmm6, xmm6
movaps xmmword [r11 - 0x38], xmm7
movss xmm7, dword [0x14016d78c]
movaps xmmword [r11 - 0x48], xmm8
movss xmm8, dword [0x14016d788]
mov ecx, 0x3e8
addss xmm6, xmm7
call qword [sym.imp.KERNEL32.dll_Sleep]
comiss xmm8, xmm6
ja 0x140001c30
call fcn.140001050
call fcn.1400011a0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov rbp, rax
movaps xmm8, xmmword [rsp + 0x120]
movaps xmm7, xmmword [rsp + 0x130]
movaps xmm6, xmmword [rsp + 0x140]
test rax, rax
jne 0x140001c85
lea eax, [rbp + 1]
jmp 0x140001e91
xor edx, edx
mov r8d, 0x7c00000
mov rcx, rax
mov qword [rsp + 0x178], rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x140001cb7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [rsi + 1]
jmp 0x140001e89
mov qword [rsp + 0x170], rbx
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x158], r12
mov qword [rsp + 0x150], r13
xor r13d, r13d
mov edi, r13d
nop dword [rax]
call fcn.140002d4c
and eax, 0x80000001
jge 0x140001cf3
dec eax
or eax, 0xfffffffe
inc eax
mov byte [rdi + rsi], al
inc rdi
cmp rdi, 0x7c00000
jl 0x140001ce0
mov dword [rsp + 0x20], 0x74178101
mov r8d, dword [rsp + 0x20]
mov ecx, r8d
lea edx, [r8 - 0x58744564]
and ecx, 7
imul r8d, r8d, 0x3396025
imul edx, edx, 0x58744566
xor edx, 0xaf173dfb
mov edi, edx
shl edx, 6
shr edi, cl
lea rcx, [rsp + 0x21]
or edi, edx
xor edx, edx
add edi, r8d
lea r8d, [rdx + 0x7f]
xor edi, 0x2330f85
mov byte [rsp + 0x20], dil
call fcn.140006b70
mov ecx, 0x15d530
call fcn.140002814
lea rdx, [0x14000d980]
mov r8d, 0x15d530
mov rcx, rax
call fcn.140002a00
mov ecx, 0x408
call fcn.140002e3c
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
mov r12, rax
xor eax, eax
mov edx, r13d
repne scasb al, byte [rdi]
mov qword [r12], r13
lea rax, [r12 + 8]
not rcx
lea rbx, [rcx - 1]
nop word [rax + rax]
mov dword [rax], edx
inc edx
add rax, 4
cmp edx, 0x100
jl 0x140001db0
mov r8d, r13d
mov r10d, r13d
mov r9, r13
nop dword [rax]
mov edi, dword [r12 + r9*4 + 8]
mov eax, r8d
inc r8d
cdq
idiv ebx
mov eax, r10d
movsxd rcx, edx
cdq
idiv ebx
movzx eax, byte [rsp + rcx + 0x20]
add al, dl
add al, r10b
add al, dil
cmp r8d, ebx
movzx r10d, al
cmovge r8d, r13d
inc r9
mov eax, dword [r12 + r10*4 + 8]
mov dword [r12 + r9*4 + 4], eax
mov dword [r12 + r10*4 + 8], edi
cmp r9, 0x100
jl 0x140001dd0
lea rdx, [0x14000d980]
mov rcx, r12
call fcn.1400012f0
lea rcx, [0x14004ed40]
call fcn.140001810
mov rcx, rax
mov rbx, rax
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
mov rdx, rdi
call fcn.140001af0
mov edi, dword [rdi + 0x28]
mov r8, rsi
xor edx, edx
mov rcx, rbp
add rdi, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
call rdi
mov r13, qword [rsp + 0x150]
mov r12, qword [rsp + 0x158]
mov rdi, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140002830
add rsp, 0x160
pop rbp
ret
Function at 0x140002560
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea r10, [rcx + 0x638]
mov r11d, 0x68
nop dword [rax]
mov r8d, dword [r10 - 0x630]
mov r9d, dword [r10 - 0x62c]
mov edx, dword [r10 - 0x634]
xor edx, r8d
btr edx, 0x1f
xor edx, dword [r10 - 0x634]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
mov edx, r9d
xor ecx, dword [r10]
xor edx, r8d
btr edx, 0x1f
mov dword [r10 + 0x38c], ecx
xor edx, r8d
mov r8d, dword [r10 - 0x628]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 4]
xor ecx, edx
mov edx, r8d
xor edx, r9d
mov dword [r10 + 0x390], ecx
btr edx, 0x1f
xor edx, r9d
mov r9d, dword [r10 - 0x624]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 8]
xor ecx, edx
mov edx, r9d
xor edx, r8d
mov dword [r10 + 0x394], ecx
btr edx, 0x1f
xor edx, r8d
mov r8d, dword [r10 - 0x620]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0xc]
xor ecx, edx
mov edx, r8d
xor edx, r9d
mov dword [r10 + 0x398], ecx
btr edx, 0x1f
xor edx, r9d
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x10]
xor ecx, edx
mov edx, dword [r10 - 0x61c]
xor edx, r8d
mov dword [r10 + 0x39c], ecx
btr edx, 0x1f
xor edx, r8d
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x14]
shr edx, 1
xor ecx, edx
add r10, 0x18
dec r11
mov dword [r10 + 0x388], ecx
jne 0x140002570
repz ret
Function at 0x1400032d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1401700a8]
jne 0x14000284a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002846
repz ret
ror rcx, 0x10
jmp 0x140003230
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140171600]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1401716f8]
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 0x1400032b5
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, [0x140171600]
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 0x1400032d7
mov rax, qword [rsp + 0x88]
mov qword [0x1401716f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140171698], rax
mov rax, qword [0x1401716f8]
mov qword [0x140171570], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140171680], rax
mov dword [0x140171560], 0xc0000409
mov dword [0x140171564], 1
mov rax, qword [0x1401700a8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401700b0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1401715f8], eax
mov ecx, 1
call fcn.1400051e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14016b3c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1401715f8], 0
jne 0x14000335e
mov ecx, 1
call fcn.1400051e0
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 0x140003f70
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003de0
Function at 0x140006738
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 [0x1401700a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140003598
xor ebx, ebx
cmp qword [0x1401726a0], rbx
mov rdi, rax
jne 0x14000684b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140006922
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006922
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1401726a0], 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 [0x1401726a8], 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 [0x1401726b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1401726c0], rax
test rax, rax
je 0x140006842
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 [0x1401726b8], rax
jmp 0x140006852
mov rax, qword [0x1401726b8]
jmp 0x140006859
mov rax, qword [0x1401726b8]
mov r11, qword [0x1401726c0]
cmp rax, rdi
je 0x1400068c0
cmp r11, rdi
je 0x1400068c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1401726c0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400068c0
test rax, rax
je 0x1400068c0
call rsi
test rax, rax
je 0x1400068ba
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 0x1400068ba
test byte [rsp + 0x40], 1
jne 0x1400068c0
bts ebp, 0x15
jmp 0x140006900
mov rcx, qword [0x1401726a8]
cmp rcx, rdi
je 0x140006900
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006900
call rax
mov rbx, rax
test rax, rax
je 0x140006900
mov rcx, qword [0x1401726b0]
cmp rcx, rdi
je 0x140006900
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006900
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1401726a0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006922
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140006924
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002830
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18006aab0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r8d, ecx
mov r9d, ecx
xor ecx, ecx
and r8d, 0xe0000000
cmp r8d, 0xe0000000
mov eax, 0x40
cmovne eax, ecx
mov edx, eax
bts edx, 7
cmp r8d, 0xa0000000
cmovne edx, eax
mov eax, edx
or eax, 0x20
cmp r8d, 0x60000000
cmovne eax, edx
mov ecx, eax
or ecx, 0x10
cmp r8d, 0x20000000
cmovne ecx, eax
mov eax, ecx
or eax, 4
cmp r8d, 0xc0000000
cmovne eax, ecx
mov ecx, eax
or ecx, 8
cmp r8d, 0x80000000
cmovne ecx, eax
mov eax, ecx
or eax, 2
cmp r8d, 0x40000000
cmovne eax, ecx
mov ecx, eax
or ecx, 1
test r8d, r8d
cmovne ecx, eax
mov eax, ecx
bts eax, 9
bt r9d, 0x1a
cmovae eax, ecx
ret
Function at 0x14000da34
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d780
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000da8a
mov ecx, 1
call fcn.14000d780
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
push rbp
xor dl, byte [rbp + 0x67]
fstp xword [0x17f73e2bf]
or dword [rbp + 0x10a9ba51], esp
invalid