joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451a30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0
mov ebx, ecx
push 0x78
mov edi, edx
push ebx
mov dword [ebp - 4], edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x79
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
movsx eax, word [edi + 0x12]
cmp esi, eax
jne 0x451aa8
push 2
push 0x80
call fcn.0046def4
mov edi, eax
mov eax, dword [ebp - 4]
add esp, 8
movsx edx, word [eax + esi*2]
mov ecx, edi
call fcn.00451970
push edi
lea ecx, [esi + 0x6e]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.0046d737
mov edi, dword [ebp - 4]
add esp, 4
push 1
lea eax, [esi + 0x6e]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 8
jl 0x451a62
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4581f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 1
cmp dword [esi + 0x1f6], 0
lea eax, [ebp - 1]
mov ebx, edx
push eax
push ebx
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4582cd
cmp byte [ebp - 1], 0
push edi
je 0x4582bf
mov esi, dword [esi + 0x1f6]
mov edi, dword [0x4b49cc]
cmp edi, esi
je 0x4582a6
test esi, esi
jne 0x458245
xor ecx, ecx
jmp 0x45824b
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4b49d0], ecx
je 0x45826f
mov dword [0x4b49d4], 0
test ecx, ecx
je 0x458269
mov eax, dword [ecx + 0x7c]
mov dword [0x4b49d4], eax
mov dword [0x4b49d0], ecx
mov dword [0x4b49cc], esi
test esi, esi
je 0x45828c
mov eax, dword [esi + 0x1d0]
mov dword [0x4b49ac], eax
mov eax, dword [esi + 0x1d4]
jmp 0x458298
mov dword [0x4b49ac], 0
xor eax, eax
push eax
mov dword [0x4b49a4], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, ebx
call fcn.00448350
mov ecx, esi
mov edi, eax
call fcn.00402a00
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4582e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x10]
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458369
cmp byte [ebp - 1], 0
je 0x458364
push dword [ebx + 0x1fe]
mov edx, dword [ebx + 0x44]
push edi
mov ecx, ebx
call fcn.00457740
mov ecx, dword [ebx + 0x1f6]
add esp, 8
test ecx, ecx
je 0x458369
call fcn.00402a00
mov ecx, dword [ebx + 0x1f6]
xor edx, edx
mov esi, eax
call fcn.00405b10
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.00449f40
mov ecx, esi
mov edi, eax
call fcn.00402a00
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462f10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x462f58
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00472452
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d696
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046d696
mov esp, ebp
pop ebp
ret

Function at 0x4692a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x46933e
mov edi, dword [ebp + 8]
test edi, edi
je 0x46933e
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x46933e
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x46933e
push esi
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x46932d
cmp dword [esi], 0x4550
jne 0x46932d
mov eax, dword [esi + 0x80]
test eax, eax
je 0x469337
lea esi, [eax + edi]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x46931e
add eax, edi
push ebx
push eax
call fcn.00470e11
add esp, 8
test eax, eax
je 0x46931e
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x469304
xor eax, eax
cmp dword [esi + 0xc], eax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
pop edi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4696e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3a58]
push edi
test eax, eax
je 0x469759
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469759
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469759
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x469741
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469741
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469741
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x54]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18
Function at 0x469760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3a58]
push edi
test eax, eax
je 0x4697d9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x4697d9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4697d9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4697c1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4697c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4697c1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x58]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x4697e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3a58]
push edi
test eax, eax
je 0x469859
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469859
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469859
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x469841
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469841
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469841
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x4c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x469860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3a58]
push edi
test eax, eax
je 0x4698d9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x4698d9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4698d9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4698c1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4698c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4698c1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18
Function at 0x469b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3a58]
push edi
test eax, eax
je 0x469bc4
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469bc4
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469bc4
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x469bb5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469bb5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469bb5
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x469bbe
push dword [ebp + 0x10]
mov eax, dword [edi + 0x3c]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x469bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3a58]
push edi
test eax, eax
je 0x469c34
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469c34
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469c34
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x469c25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469c25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469c25
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x469c2e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x40]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x478207
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004773ad
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x47823f
xor eax, eax
jmp 0x47826b
cmp esi, dword [ebp - 4]
je 0x478268
cmp dword [ebp + 0xc], 0
je 0x478268
push dword [edi + 0x9c]
call fcn.00477e15
push dword [edi + 0x9c]
mov esi, eax
call fcn.00476f8f
pop ecx
pop ecx
cmp esi, eax
je 0x47823b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x47f078
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00478977
mov dword [ebp - 0x14], eax
cmp dword [0x4b4800], edi
jne 0x47f169
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x47f0f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47f249
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x47f249
push 0x492480
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47f249
push eax
call ebx
push 0x49248c
push esi
mov dword [0x4b4800], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4b4804], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4b4808], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b4810], eax
test eax, eax
je 0x47f166
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b480c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47f18e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47f181
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x47f1a3
push 4
pop eax
jmp 0x47f24b
cmp dword [ebp - 0x14], edi
je 0x47f1a3
push dword [0x4b4800]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x47f188
mov eax, dword [0x4b480c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x47f201
cmp dword [0x4b4810], esi
je 0x47f201
push eax
call ebx
push dword [0x4b4810]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x47f201
test eax, eax
je 0x47f201
call ecx
test eax, eax
je 0x47f1f6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x47f1f6
test byte [ebp - 8], 1
jne 0x47f201
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x47f231
mov eax, dword [0x4b4804]
cmp eax, esi
je 0x47f22e
push eax
call ebx
test eax, eax
je 0x47f22e
call eax
mov edi, eax
test edi, edi
je 0x47f22e
mov eax, dword [0x4b4808]
cmp eax, esi
je 0x47f22e
push eax
call ebx
test eax, eax
je 0x47f22e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4b4800]
call ebx
test eax, eax
je 0x47f249
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x47f24b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d696
leave
ret