joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d251
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0048df09
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0048d3b1
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x48d39b
test ebx, ebx
jl 0x48d33f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd436b5
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48d360
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x48d352
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0048ed21
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0048ed21
add esp, 8
mov ebx, 0x80070057
jmp 0x48d33f
Function at 0x4a0e35
Capabilities:
Encode data using xor

Disassembly:
retf 0xf1a
cmc
pop es
jne 0x4a0dcc
insd dword es:[edi], dx
retf
xor ebp, dword [edi]
salc
inc edi
jge 0x4a0e76
xchg dword [edi + 0x495f992], esp
xchg esp, eax
xor esi, dword [edi - 0xd]
pop ecx
and byte [0xa0b55f75], dl
retf
movsb byte es:[edi], byte [esi]
adc dword [ebx + 0x87f3646], esi
xchg esp, eax
test eax, 0xdd9d0527
jo 0x4a0ea3
and ebp, ecx
dec eax
notrack call 0x70917bda
in eax, dx
aam 0x55
jae 0x4a0e29
mov ch, 0x68
push edi
lodsd eax, dword [esi]
js 0x4a0e83
shl ecx, cl
out dx, eax
or dword [esi - 0x3c], eax
pop es
cmp dl, byte [esi*2 - 0x417d24e8]
xlatb
xchg al, cl
adc al, 0x75
jne 0x4a0ebe
sbb bl, bl
cmp byte [esi + 0x5cc886d7], 0x52
fild dword [edx - 0x37792842]
pop esp
push edx
dec eax
ja 0x4a0ea5
inc esp
xor al, byte [edx + 0x22ad091b]
sbb dword [ebp - 0xb], esp
adc eax, 0x82b65ecd
mov dh, 0x82
add al, 0xa6
loopne 0x4a0ec5
cmp ecx, eax
jo 0x4a0ebb
enter 0xfffffffffffff370, 0x26
xor eax, dword [edi - 0x28]
xor eax, dword es:[edi - 0x28]
push edx
rcr dword [edi], 1
jno 0x4a0ea4
imul ebp, dword [edi + 0x41], 0x30
add al, 0x37
inc ecx
xor byte [edi + esi], al
aaa
mov byte [0xeb2cac17], bh
and dword [ecx + 0x5269ebf7], 0x8a283019
adc ax, 0x763b
xlatb
mov ebp, 0xbeb9013c
ja 0x4a0ed3
jmp 0x4a0f4b
pop ebx
mov esp, 0x286017c9
or byte [esi - 0x70], 0xef
pop ebp
jbe 0x4a0ed6
mov esi, 0x7debe85
xor bl, byte [ecx]
sbb eax, 0x92840fa3
cmp ah, al
lea eax, [edi + 0x5a9a667c]
sbb byte [0x9877a890], bh
pop es
lea eax, [esi - 0x4e]
mov al, 0x71
mov bl, byte [ebx + ebx*8 - 0x728d89c]
aad 0xe1
dec edi
xchg dword [eax - 0x4b1991b0], edx
jle 0x4a0ee0
sbb dword [edx + ebp*8 - 0x691faceb], esp
scasb al, byte es:[edi]
test eax, 0xc2d66907
pop esi
and edi, 0x3a359328
mov byte [ecx - 0x77], bh
wait
cmp al, 0xe1
xor byte [edx + 0xc], cl
jno 0x4a0f30
add bh, 0x24
mov ah, 0x16
cwde
cld
add dl, byte [ecx + 0x56e80fd7]
mov al, byte [0x7eaf6046]
mov bl, 0xe5
stosd dword es:[edi], eax
fsub st(6)
xor ecx, dword [edx - 0x6368a9f6]
lodsd eax, dword [esi]
xor eax, 0x4fa83ed0
ret
Function at 0x4a4111
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.004a4dc9
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.004a4271
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a425b
test ebx, ebx
jl 0x4a41ff
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd5a575
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a4220
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4a4212
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004a5be1
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004a5be1
add esp, 8
mov ebx, 0x80070057
jmp 0x4a41ff
Function at 0x4b9541
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c1338
cmp edx, dword [eax]
je 0x4b9563
add eax, 8
inc ecx
cmp eax, 0x4c13c8
jl 0x4b9554
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c1338]
jne 0x4b9691
mov eax, dword [0x4c5cc8]
cmp eax, 1
je 0x4b966b
test eax, eax
jne 0x4b9594
cmp dword [0x4c1264], 1
je 0x4b966b
cmp edx, 0xfc
je 0x4b9691
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b95cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b9f20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba3b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b960e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba3b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be9b4
push edi
call fcn.004bc280
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b9f20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9f30
lea eax, [ebp - 0xa0]
push 0x4be994
push eax
call fcn.004b9f30
push dword [esi + 0x4c133c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9f30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bc1f4
add esp, 0x2c
pop edi
jmp 0x4b9691
lea eax, [ebp + 8]
lea esi, [esi + 0x4c133c]
push 0
push eax
push dword [esi]
call fcn.004ba3b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x422937
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00419b87
and dword [ebp - 4], 0
cmp dword [0x42ffe0], 0
mov ebx, eax
jne 0x4229e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422a99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422a99
push eax
call fcn.00419b15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ffe0], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42ffe4], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42ffe8], eax
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42fff0], eax
test eax, eax
je 0x4229e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42ffec], eax
mov eax, dword [0x42ffec]
cmp eax, ebx
je 0x422a40
cmp dword [0x42fff0], ebx
je 0x422a40
push eax
call fcn.00419b90
push dword [0x42fff0]
mov esi, eax
call fcn.00419b90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422a40
test edi, edi
je 0x422a40
call esi
test eax, eax
je 0x422a37
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422a37
test byte [ebp - 0xc], 1
jne 0x422a40
or dword [ebp + 0x10], 0x200000
jmp 0x422a79
mov eax, dword [0x42ffe4]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422a79
mov eax, dword [0x42ffe8]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ffe0]
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422a9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx