joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4045f9
Capabilities:
Encrypt data using chaskey

Disassembly:
rol eax, 0xe
dec eax
sub edi, dword [0x42a9fa]
xor edx, 0x1392f636
not esi
inc edi
xor esi, eax
xor edx, esp
neg eax
mov dword [0x42a626], esi
neg eax
xor edx, esp
xor esi, eax
dec edi
not esi
xor edx, 0x1392f636
inc eax
ror eax, 0xe
sub dword [edi], 0x8c6a5821
rol eax, 0x16
mov dword [0x42a8b3], 0x1d8468a0
dec ecx
sub edi, dword [0x42aa84]
xchg esi, eax
rol eax, 8
neg esi
inc eax
sub edi, dword [0x42adcc]
inc esi
not esi
inc eax
and dword [0x42a620], 0x3c6e2bc
sub ecx, dword [0x42ac3e]
sub edi, dword [0x42aa22]
ror edx, 0x12
neg eax
add esi, esp
sub edx, dword [0x42adc9]
add edi, edx
xor esi, eax
xor esi, eax
sub edi, edx
sub esi, esp
neg eax
rol edx, 0x12
dec eax
not esi
dec esi
dec eax
neg esi
ror eax, 8
xchg esi, eax
inc ecx
ror eax, 0x16
sub dword [edi], 0x8c6a5821
xor esi, eax
xchg eax, eax
add eax, 0x3cc440
xor edx, dword [0x42af90]
and dword [0x42a52c], 0x572d6fc
add ebx, dword [0x42abd8]
or dword [0x42a75b], 0x1c77ebad
xor esi, eax
inc esi
xor esi, eax
rol esi, 0xc
or dword [0x42a37c], ecx
neg eax
xchg edi, esi
neg esi
neg esi
xchg edi, esi
neg eax
and dword [0x42a77a], ebx
ror esi, 0xc
xor esi, eax
dec esi
xor esi, eax
mov dword [0x42a549], 0x1f3097d0
sub eax, 0x3cc440
xchg eax, eax
xor esi, eax
xor dword [edi], 0x8c6a5821
xor esi, eax
add ecx, dword [0x42abe8]
sub dword [0x42a620], 0x375d94e0
not edx
rol eax, 7
dec edx
ror eax, 6
or dword [0x42a580], ebx
xor ecx, ebx
xor edx, eax
ror eax, 7
mov dword [0x42a3b4], 0x8b4f3e4
xor dword [0x42a6d8], ebx
xor edx, esi
dec edx
rol edx, 0xa
xor esi, 0x27fa7563
neg esi
xor edx, eax
xor edx, eax
neg esi
xor esi, 0x27fa7563
ror edx, 0xa
inc edx
xor edx, esi
or dword [0x42a9aa], ecx
mov dword [0x42a7f5], 0x54f6dec
rol eax, 7
xor edx, eax
xor ecx, ebx
rol eax, 6
inc edx
ror eax, 7
not edx
xor esi, eax
add dword [edi], 0x8c6a5821
and dword [0x42a663], 0xcf76c80
xor esi, eax
sub edi, dword [0x42ac62]
xor ecx, ebp
xchg edx, eax
xor ecx, dword [0x42acaa]
sub edi, esp
add edi, ecx
neg esi
inc ebx
dec ebx
neg esi
sub edi, ecx
add edi, esp
xchg edx, eax
xor ecx, ebp
xor esi, eax
xor dword [0x42a865], 0xca25238
add dword [edi], 0x8c6a5821
sub ecx, esp
dec eax
add dword [0x42a3a4], esi
add esi, edi
inc eax
xor edx, ebp
mov dword [0x42a93f], ebx
xor esi, eax
add ebx, dword [0x42acec]
mov dword [0x42a8f6], 0x120b4d36
xor edx, dword [0x42aa40]
rol esi, 0x10
dec eax
add ecx, edi
xor eax, 0x14394c0
inc eax
dec eax
xor eax, 0x14394c0
sub ecx, edi
inc eax
ror esi, 0x10
or dword [0x42a908], 0x27cf228
xor esi, eax
xor edx, ebp
dec eax
sub esi, edi
inc eax
add ecx, esp
not dword [edi]
add edi, esp
dec esi
add ebx, eax
neg ecx
inc edx
xor ecx, esp
add edi, esi
xor edx, esp
xor dword [0x42a49f], edx
add eax, 0x484e923
neg eax
xchg esi, eax
not eax
invalid
das
and dword [eax + 0x6a], ebx

Function at 0x404610
Capabilities:
Encrypt data using chaskey

Disassembly:
mov ecx, es
rcr byte [edi], 0x2b
fadd st(1)
ret 0xf70c
Function at 0x405b99
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405bea
xor eax, eax
jmp 0x405c11
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405c11
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405be6
call esi
pop esi
leave
ret 4

Function at 0x405c4b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426750], 0x44
push eax
xor eax, eax
push 0x426750
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405c8a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405c8e
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405d2c
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406133
mov edi, eax
cmp edi, 0xffffffff
je 0x405d6d
test byte [esp + 0x10], 1
push esi
je 0x405d4f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405d55
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405d5e
xor eax, eax
inc eax
jmp 0x405d6f
test byte [esp + 0x10], 4
jne 0x405d6d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x405d74
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
invalid

Function at 0x40603f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f50
push esi
call fcn.00406668
push esi
call fcn.00405fe2
mov edi, eax
test edi, edi
jne 0x406060
xor eax, eax
jmp 0x4060b8
push edi
call fcn.004068ef
test byte [0x42a278], 0x80
je 0x40607d
mov ax, word [edi]
test ax, ax
je 0x40605c
cmp ax, 0x5c
je 0x40605c
sub edi, esi
sar edi, 1
jmp 0x406097
call fcn.0040699e
test eax, eax
je 0x406091
test byte [eax], 0x10
je 0x40605c
push esi
call fcn.00405f83
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x406083
call fcn.00405f37
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4
Function at 0x4062ae
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x426de8], 0x55004e
mov dword [0x426dec], 0x4c
mov edi, 0x400
mov ebp, 0x426de8
je 0x406304
push 1
push 0
push esi
call fcn.00406158
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406423
cmp eax, edi
jg 0x406423
mov esi, 0x4275e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406423
cmp eax, edi
jg 0x406423
push esi
push ebp
push str._ls_ls_r_n
push 0x4269e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a270]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004066a5
push 4
push 0xc0000000
push esi
call fcn.00406158
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406423
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40641c
push edi
push esi
push ebp
call fcn.004061db
test eax, eax
je 0x40641c
push str._Rename__r_n
push esi
call fcn.004060bd
test eax, eax
jne 0x4063ba
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4063ef
add eax, 0xa
push 0x40a5b0
push eax
call fcn.004060bd
mov ebp, eax
test ebp, ebp
je 0x4063eb
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4063dc
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4063d6
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4063f1
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269e8
push eax
call fcn.00406113
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040620a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx

Function at 0x406428
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40644b
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062ae
pop ecx
pop ecx
inc dword [0x42a2f0]
ret 8