joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4891fb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b4180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00480d00
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00480d00
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x489272
cmp word [ecx], dx
je 0x489272
mov eax, dword [0x49cdcc]
push edi
dec eax
push eax
push 0x49ccb8
call fcn.0048919a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4892e5
cmp word [eax], dx
je 0x4892e5
mov eax, dword [edi]
test eax, eax
je 0x489296
cmp word [eax], dx
je 0x489296
lea eax, [ebp - 0x10]
push eax
call fcn.00488b7d
jmp 0x48929f
lea eax, [ebp - 0x10]
push eax
call fcn.00488c18
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x48930f
mov eax, dword [0x49ccb4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x49c9a8
call fcn.0048919a
add esp, 0xc
test al, al
je 0x48930f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4892da
cmp word [eax], di
je 0x4892da
lea eax, [ebp - 0x10]
push eax
call fcn.00488b7d
pop ecx
jmp 0x489311
lea eax, [ebp - 0x10]
push eax
call fcn.00488c18
jmp 0x4892d7
mov eax, dword [edi]
test eax, eax
je 0x4892fc
cmp word [eax], dx
je 0x4892fc
lea eax, [ebp - 0x10]
push eax
call fcn.00488b32
pop ecx
jmp 0x48930f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4893da
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0048901f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4893da
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4893da
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4893da
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x489367
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00482d60
test ebx, ebx
je 0x4893d5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00482d60
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4893da
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4893da
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0048cdbd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4893dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b73a
leave
ret
Function at 0x48e6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48e70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48e70d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret