joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d48d8
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push eax
pop ebx
sub edx, edx
push ebp
push 0x4d4a45
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x31], 1
mov eax, dword [ebx + 0x44]
add eax, 0x18
mov edx, dword [0x4eb788]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x44]
add eax, 0x1c
mov edx, dword [0x4ebbc4]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x44]
mov byte [eax + 8], 1
mov byte [eax + 0x20], 9
mov dword [eax + 0x28], 8
mov dword [eax + 0x2c], 8
mov dword [eax + 0x34], 3
mov byte [eax + 9], 0
sub edx, edx
mov dword [eax + 0x30], edx
mov byte [eax + 0xa], 0
mov byte [eax + 0x21], 2
mov eax, dword [ebx + 0x34]
mov byte [eax + 4], 1
mov dword [eax + 0x38], 6
mov eax, dword [ebx + 0x3c]
add eax, 4
mov edx, dword [0x4ebc8c]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x3c]
add eax, 8
mov edx, dword [0x4eb9dc]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x3c]
add eax, 0xc
mov edx, dword [0x4eb8e4]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x3c]
add eax, 0x10
mov edx, dword [0x4ebd38]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x38]
add eax, 0x20
mov edx, dword [0x4ebe60]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x38]
add eax, 4
mov edx, dword [0x4eb8a0]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x38]
add eax, 8
mov edx, dword [0x4eb7e8]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x38]
add eax, 0xc
mov edx, dword [0x4eb97c]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x38]
add eax, 0x1c
mov edx, dword [0x4eb9b4]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x38]
add eax, 0x24
mov edx, dword [0x4eb9e8]
mov edx, dword [edx]
call fcn.00404c9c
mov eax, dword [ebx + 0x38]
add eax, 0x28
mov edx, dword [0x4eb9a4]
mov edx, dword [edx]
call fcn.00404c9c
mov dword [ebx + 0x54], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x50], eax
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d4a4f
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4e5230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
push ebx
pop eax
call fcn.0048236c
sub edx, edx
push ebp
push 0x4e52a2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x70]
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x14]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x1c]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax + 0x30], dl
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e52ac
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4ee456d5
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xd22856
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401a6a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401aa9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401aa9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401aa9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401aa9
cmp dword [ecx + 0x74], 0xe
jbe 0x401aa9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ab80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40abad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40abad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x424cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x424cdf
pop dword [ebp - 0x48]
mov eax, 0xd9ec7e96
add eax, 0x2655ce49
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x53764056
add dword [ebp - 0x58], 0xfadc04f5
mov dword [ebp - 0x54], 0x4c48aa18
sub dword [ebp - 0x54], 0x1a155dd3
mov dword [ebp - 0x50], 0xfe7754a2
add dword [ebp - 0x50], 0x4dd4ef8c
mov dword [ebp - 0x4c], 0x630a9e55
add dword [ebp - 0x4c], 0x9cf561ab
lea eax, [ebp - 0x58]
push eax
mov eax, 0xb1a2d189
add eax, 0x4ea0cf27
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x9ae88ae1
add dword [ebp - 0x58], 0xd989de75
mov dword [ebp - 0x54], 0x1d2e6bf2
add dword [ebp - 0x54], 0x243df583
mov dword [ebp - 0x50], 0x5d41327a
sub dword [ebp - 0x50], 0xf9d1c60e
mov dword [ebp - 0x4c], 0xcfe11712
sub dword [ebp - 0x4c], 0xcfe11712
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x60f386a
sub eax, 0x5cb9832
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x400cc
push 0
call eax
mov ecx, 0x4f4b
mov edx, eax
mov ebx, 0x457a00
add ebx, dword [ebp - 0x48]
mov esi, 0xda3ee16
add esi, 0x744102bc
sub dword [ebp - 0x2c], 0x7bb5da44
mov edi, dword [ebx]
sub dword [ebp - 8], ecx
xor edi, esi
mov dword [ebp - 0x34], 0x78e04336
mov dword [edx], edi
mov dword [ebp - 0x40], 0x91c66978
add edx, 0xae9e266d
sub edx, 0xae9e2669
add ebx, 4
loop 0x424df5
add eax, 0x3b7250a9
sub eax, 0x3b7120aa
mov ebx, eax
add eax, 5
mov ecx, 0xc88a5201
sub ecx, 0xc84a5201
add ecx, dword [ebp - 0x48]
call ebx
leave
ret