joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4784a4
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov esi, eax
test esi, esi
je 0x478594
mov bl, 1
mov eax, esp
xor ecx, ecx
mov edx, 0x128
call fcn.0040308c
mov dword [esp], 0x128
xor edx, edx
mov eax, 2
call fcn.00477a9c
mov edi, eax
cmp edi, 0xffffffff
je 0x478594
mov edx, esp
mov eax, edi
call fcn.00477abc
test eax, eax
je 0x47858e
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebp, eax
test ebp, ebp
je 0x478530
test bl, bl
je 0x47851a
push 1
push ebp
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x47851e
xor eax, eax
jmp 0x478520
mov al, 1
mov ebx, eax
push 0xffffffffffffffff
push ebp
call sub.kernel32.dll_WaitForSingleObject
push ebp
call sub.kernel32.dll_CloseHandle_1
or eax, 0xffffffff
jmp 0x47858a
cmp esi, dword [esp + 0x18]
jne 0x478581
mov eax, dword [esp + 8]
call fcn.004784a4
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebp, eax
test ebp, ebp
je 0x478581
test bl, bl
je 0x47856b
push 1
push ebp
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x47856f
xor eax, eax
jmp 0x478571
mov al, 1
mov ebx, eax
push 0xffffffffffffffff
push ebp
call sub.kernel32.dll_WaitForSingleObject
push ebp
call sub.kernel32.dll_CloseHandle_1
mov edx, esp
mov eax, edi
call fcn.00477adc
test eax, eax
jne 0x478535
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x478674
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, edx
mov esi, eax
mov byte [ebp - 1], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, esi
call fcn.00404a3c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x478709
xor eax, eax
push ebp
push 0x478702
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.0040483c
push eax
mov eax, ebx
call fcn.00404a3c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4786eb
mov eax, ebx
call fcn.0040483c
cmp eax, dword [ebp - 0xc]
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478709
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438cb3
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
inc esi
call fcn.00438cfd
add esi, 0xf0623e
sub ebx, ebx
add esi, esi
xor dword [edx], eax
sub ebx, 0xf51d07c0
add edx, 1
mov ebx, 0x41f7e720
sub esi, ebx
mov ebx, 0x482d8cce
cmp edx, ecx
jne fcn.00438cb3
sub esp, 4
mov dword [esp], esi
pop esi
ret

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x37e62b5d
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5e8848d9
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x1ad64bd0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x17527862
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x44ffee
Capabilities:
Check for software breakpoints

Disassembly:
push eax
call 0x44fff4
pop ebx
sub ebx, 0x1a2
mov ecx, 0x13e52
sub ebx, ecx
mov esi, ebx
sub ebx, 0x3b000
mov edi, ebx
sub ebx, 0x1000
push edi
push ecx
push esi
call fcn.0044fea3
add esp, 0xc
mov ebp, dword [ebx + 0xc0]
lea ebp, [ebx + ebp]
dec ebp
mov cl, byte [ebp]
cmp cl, 0xcc
je 0x450026
sub ebp, 9
mov edx, ebx
sub edx, dword [ebx + 0x74]
add dword [ebp], edx
add ebp, 6
add dword [ebp], edx
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x1aa6a
call fcn.0044ffc4
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x4500b0
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x4500ab
pushal
test eax, 0x80000000
je 0x450095
and eax, 0x7fffffff
jmp 0x450099
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x450080
add esi, 0x14
jmp 0x450066
pop edx
mov ebp, ebx
sub ebp, dword [edx + 0x34]
mov esi, dword [edx + 0xa0]
add esi, ebx
cmp esi, ebx
je 0x4500fa
push edx
mov eax, dword [esi + 4]
or eax, eax
je 0x4500f9
mov ecx, dword [esi]
add ecx, ebx
add esi, 8
sub eax, 8
shr eax, 1
mov edx, esi
lea edi, [eax + esi]
lea esi, [eax + edi]
xor eax, eax
add al, byte [edx]
adc ah, byte [edi]
test ah, 0x30
je 0x4500f1
push eax
and ah, 0xf
add dword [ecx + eax], ebp
pop eax
inc edx
inc edi
cmp edi, esi
jb 0x4500e0
jmp 0x4500c3
pop edx
pop eax
cmp eax, 0xd0dec0de
je 0x450107
add ebx, dword [edx + 0x28]
jmp ebx
ret 0xc
Function at 0x4010f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0xc18
mov ecx, 0x655b
mov eax, 0xb
test edx, edx
je 0x401260
cmp dword [ebp + 0xc], 0
je 0x401260
cmp edx, dword [ebp + 0xc]
jae 0x401260
mov ecx, 0x4056
mov edx, 0x94
lea ecx, [ecx]
cmp eax, 0x94
cmovg eax, edx
dec ecx
jne 0x401130
mov edi, 0x295d
mov eax, 0x478bbced
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401140
mov ecx, 0x5781
mov edx, 0xed
mov eax, 8
cmp eax, 0xed
cmovg eax, edx
dec ecx
jne 0x401162
mov ecx, 0x6259
mov edx, 0x65
mov eax, 0xab
lea esp, [esp]
cmp eax, 0x65
cmovl eax, edx
dec ecx
jne 0x401180
mov ebx, 0x1e61
mov edi, edi
mov eax, 0x3e0f83e1
imul ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401190
mov ebx, 0x3cdd
mov edi, 0x2ea1
lea ecx, [ecx]
mov eax, 0x22b63cbf
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4011b0
mov edi, 0x2f31
xor esi, esi
lea ebx, [ebx]
inc esi
mov eax, 0x2aaaaaab
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, esi
sub eax, ecx
jne 0x4011eb
inc esi
cmp esi, 0x7138
jl 0x4011d0
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
sub esi, edx
mov ecx, 0x166d
mov dword [ebp + 8], 0x6f
mov eax, 0x75
lea esp, [esp]
cmp eax, 0x6f
cmovl eax, dword [ebp + 8]
dec ecx
jne 0x401210
test esi, esi
je 0x401230
mov edi, edi
mov al, byte [ecx + edx + 1]
add al, 0x6b
xor byte [ecx + edx], al
inc ecx
cmp ecx, esi
jb 0x401220
mov edi, edi
mov eax, 0x84a9f9c9
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401230
mov eax, 0xb30f6353
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401245
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 0x8ca29c05
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401260
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401275
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
add edx, 0x18
mov ecx, 0x6ebe
mov dword [ebp - 8], edx
jmp 0x402f60
mov eax, 0x78787879
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402f60
mov eax, dword [ebp + 8]
inc byte [eax + 3]
mov al, byte [eax + 3]
mov byte [ebp - 1], al
nop
inc esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
sub eax, ecx
jne 0x402fa4
inc esi
cmp esi, 0x5fd3
jl 0x402f80
lea esp, [esp]
inc edi
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, edi
sub eax, ecx
jne 0x402fce
inc edi
cmp edi, 0x51f2
jl 0x402fb0
mov ebx, 0x7697
jmp 0x402fe0
mov eax, 0x13e22cbd
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402fe0
mov ebx, 0x2c
mov ecx, 0x5319
lea ecx, [ecx]
mov eax, 0x9c09c09d
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x403000
movzx esi, byte [ebp - 1]
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 8]
movzx ecx, byte [esi + edi]
movzx eax, byte [edx + 0xf]
add esi, edi
add ecx, eax
mov byte [edx + 0xf], cl
mov eax, 0x62f3
mov edx, 0x6e
cmp ebx, edx
cmovg ebx, edx
dec eax
jne 0x403038
mov dl, byte [esi]
movzx ecx, cl
movzx eax, byte [ecx + edi]
mov byte [esi], al
mov byte [ecx + edi], dl
mov al, byte [esi]
movzx ecx, byte [ebp + 0xc]
add al, dl
movzx eax, al
movzx eax, byte [eax + edi]
pop edi
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x30016f1e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push 0x104
call fcn.30014499
mov ecx, dword [ebp + 8]
call fcn.30013ed2
mov ecx, dword [ebp + 8]
push eax
call fcn.30013f09
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x30016f89
push 0x3000575c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.30014652
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
leave
ret 4

Function at 0x30017675
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push 0x300059c0
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x3001769e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x3001769e
xor bl, bl
jmp 0x300176ab
test esi, esi
mov bl, 1
je 0x300176ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret

Function at 0x3001770a
Capabilities:
Accept command line arguments

Disassembly:
push 0x244
mov eax, 0x3001d9bb
call fcn.300090a2
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x3001776d
push 0x30005a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.30014652
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x144]
lea edi, [ebp - 0x144]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x300177a1
push dword [edi + esi*4]
lea ecx, [ebp - 0x38]
call fcn.30014ede
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.30015916
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.300141f8
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x30017774
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.3000917a
ret 4

Function at 0x30017950
Capabilities:
Allocate thread local storage

Disassembly:
push 0x21c
mov eax, 0x3001da75
call fcn.300090a2
mov esi, ecx
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
push dword [0x30022ea8]
lea ecx, [esi + 4]
push 0x18
push 0x30005a7c
push 0x50
call fcn.30015ad5
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x300179c8
push 0x30005a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.30014652
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x11c]
lea edi, [ebp - 0x11c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
mov eax, esi
call fcn.3000917a
ret
Function at 0x300179d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x30017a14
push 0x30005ab4
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.30006f6a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
leave
ret 4

Function at 0x30017a22
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x30017a66
push 0x30005ab4
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.30006f6a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
leave
ret

Function at 0x30017d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.30013ed2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x30017d8b
xor al, al
jmp 0x30017d90
shr al, 4
and al, 1
pop ebp
ret 4

Function at 0x30017d94
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push esi
push 0
call fcn.30013ed2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x30017e00
cmp esi, 0x50
je 0x30017e00
cmp esi, 0xb7
je 0x30017e00
mov ecx, dword [ebp + 8]
call fcn.30013ed2
push eax
push 0x30005b34
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.30014652
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
pop esi
leave
ret 4

Function at 0x40893e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, 0x4085d8
sub ebx, ebx
call fcn.00408964
xor dword [eax], edx
mov ecx, 0x94a116c8
add ebx, 1
inc eax
cmp eax, edi
jne fcn.0040893e
dec ecx
sub ebx, 0x417d41d0
ret