joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0b1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45c7c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405a79
and dword [ebp - 0x14], 0
cmp dword [0x46aaac], 0
mov dword [ebp - 0x18], eax
jne 0x40f164
push 0x4036d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f20c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4036c8
push ebx
call edi
test eax, eax
je 0x40f20c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4036b8
push ebx
mov dword [0x46aaac], eax
call edi
push eax
call esi
push 0x4036a4
push ebx
mov dword [0x46aab0], eax
call edi
push eax
call esi
push 0x403688
push ebx
mov dword [0x46aab4], eax
call edi
push eax
call esi
mov dword [0x46aabc], eax
test eax, eax
je 0x40f164
push 0x403670
push ebx
call edi
push eax
call esi
mov dword [0x46aab8], eax
mov eax, dword [0x46aab8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f1bd
cmp dword [0x46aabc], ecx
je 0x40f1bd
push eax
call esi
push dword [0x46aabc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f1bd
test ebx, ebx
je 0x40f1bd
call edi
test eax, eax
je 0x40f1b4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f1b4
test byte [ebp - 8], 1
jne 0x40f1bd
or dword [ebp + 0x10], 0x200000
jmp 0x40f1f0
mov eax, dword [0x46aab0]
cmp eax, dword [ebp - 0x18]
je 0x40f1f0
push eax
call esi
test eax, eax
je 0x40f1f0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f1f0
mov eax, dword [0x46aab4]
cmp eax, dword [ebp - 0x18]
je 0x40f1f0
push eax
call esi
test eax, eax
je 0x40f1f0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46aaac]
call esi
test eax, eax
je 0x40f20c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f20e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040706b
leave
ret
Function at 0x401000
Capabilities:
Create thread
Persist via run registry key

Disassembly:
sub esp, 0x594
push ebx
push esi
lea eax, [esp + 0x40c]
push edi
push eax
push 0x202
call fcn.00402226
push 0x104
push 0x4095a4
push 0
call dword [0x407058]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x4095a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4086e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
push 0
push 0xf003f
push 0
push 0
and ecx, 3
push 0
push 0x4086b4
rep movsb byte es:[edi], byte [esi]
push closesocket
call dword [section..rdata]
lea ecx, [esp + 0x10]
push ecx
call dword [0x40705c]
inc eax
lea edx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push edx
push 1
push 0
push 0x4086a8
push eax
call dword [0x407004]
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x407008]
call fcn.00401eb0
push eax
call fcn.00401c40
mov edi, dword [0x407064]
add esp, 4
mov esi, 0x64
push 0
push 0
push 0
push 0x401870
push 0
push 0
call fcn.00402292
add esp, 0x18
push 0xd
call edi
dec esi
jne 0x401103
push 0xffffffffffffffff
call edi
call fcn.00402220
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x594
ret 0x10
Function at 0x414a2f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004148a5

Function at 0x419060
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418bb3

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7591278d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1375e8d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x405650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x42d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x405675
xor eax, eax
jmp 0x4056d1
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4056a2
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x4056a2
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x405758
cmp dword [edi + 0x4c], 0
je 0x4056cb
mov ecx, edi
call fcn.004052ce
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4056e1
push dword [edi + 0x4c]
push ebx
call fcn.00404a80
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x4056d0
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004066fc
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x41f160]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x40572b
sub eax, 1
je 0x40572b
dec eax
sub eax, 1
jne 0x4056cb
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4056bd
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x405748
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0040c838
add esp, 0x10
cmp esi, eax
jne 0x4056cb
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x4056cb
mov ax, bx
jmp 0x4056d0

Function at 0x407440
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40747f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40747f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40747f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40747f
cmp dword [ecx + 0x74], 0xe
jbe 0x40747f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412450
Capabilities:
Read file on windows

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

Function at 0x41245b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041228b

Function at 0x41d7d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d7fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d7fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x53586243
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x6aa1507a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219