joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48687d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4b7134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push dword [0x4bef7c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d7ba
mov eax, dword [eax + 4]
test eax, eax
je 0x41d7ba
mov esi, dword [eax]
test esi, esi
je 0x41d7ba
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0x1b
jb 0x41d7b1
mov byte [esi + 0x6c], al
jmp 0x41d7ca
push esi
call fcn.0044acf0
add esp, 4
push 0x6d
call fcn.0045d477
mov esi, eax
add esp, 4
mov byte [esi + 0x6c], 0x1b
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [esi], 0
mov dword [esi + 4], 0x41daf0
mov dword [esi + 8], 0
mov al, byte [edi + 1]
mov byte [ecx + 1], al
lea eax, [edi + 4]
push eax
add ecx, 4
mov byte [edi + 1], 0
call fcn.0041d910
mov eax, dword [ebx]
mov edi, dword [eax + 4]
cmp byte [edi + 0x14], 0
lea ebx, [edi + 0x14]
je 0x41d83b
push dword [0x4bef7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d83b
nop dword [eax]
cmp dword [eax], ebx
je 0x41d858
mov eax, dword [eax + 8]
test eax, eax
jne 0x41d830
lock inc dword [edi + 0x54]
cmp byte [edi + 0x30], 0
lea eax, [edi + 0x18]
mov dword [ebp - 0x14], eax
je 0x41d87e
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
jmp 0x41d882
mov eax, dword [eax + 4]
test eax, eax
je 0x41d83b
inc dword [eax + 0x14]
mov dword [esi], 0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x41d876
mov dword [ecx], esi
mov dword [eax + 0x10], esi
jmp 0x41d8b3
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
jmp 0x41d8b3
mov byte [ebp - 0x10], 0
mov dword [esi], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x41d893
mov dword [eax], esi
jmp 0x41d896
mov dword [edi + 0x58], esi
lea eax, [ebp - 0x14]
mov dword [edi + 0x5c], esi
push eax
mov ecx, edi
call fcn.00404510
cmp byte [ebp - 0x10], 0
je 0x41d8b3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.0041da80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41da80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x41da9a
add ecx, 0x10
call fcn.0040efc0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x41dade
push dword [0x4bef7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41dace
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41dace
cmp dword [ecx], 0
jne 0x41dace
mov al, byte [esi + 0x6c]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.0044acf0
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x43a820
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x4bde48], 0
jne 0x43a82e
call fcn.00452900
cmp byte [0x4bde51], 0
je 0x43a84c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00452f30
add esp, 0x10
ret
jmp fcn.00438b90

Function at 0x4771b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047702d