joyce8/EMBER2024-capa huggingface dataset:
Function at 0x889058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008891a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x88907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x88906a
add dl, dl
jne 0x889089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8890dc
xor eax, eax
add dl, dl
jne 0x889096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x88917d
add dl, dl
jne 0x8890a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8890b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8890bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8890c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8890d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x889075
mov eax, 1
add dl, dl
jne 0x8890ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8890f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8890e1
sub eax, ebx
mov ebx, 1
jne 0x889128
mov ecx, 1
add dl, dl
jne 0x88910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x889119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x889105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x889075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x88913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x88914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x889136
cmp eax, 0x7d00
jae 0x88916d
cmp eax, 0x500
jb 0x889168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x889075
cmp eax, 0x7f
ja 0x889170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x889075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x88919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x889075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4cf420
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68000]
push edi
jmp 0x4cf43a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cf441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf430
mov eax, 1
add ebx, ebx
jne 0x4cf453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cf464
jne 0x4cf483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf483
dec eax
add ebx, ebx
jne 0x4cf470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cf448
add ebx, ebx
jne 0x4cf47f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cf4d5
xor ecx, ecx
sub eax, 3
jb 0x4cf49b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cf50a
sar eax, 1
mov ebp, eax
jmp 0x4cf4a6
add ebx, ebx
jne 0x4cf4a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf474
inc ecx
add ebx, ebx
jne 0x4cf4b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf474
add ebx, ebx
jne 0x4cf4c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cf4b6
jne 0x4cf4d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cf4b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cf4f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cf4e6
jmp 0x4cf436
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cf4f4
add edi, ecx
jmp 0x4cf436
pop esi
mov edi, esi
mov ecx, 0x1908
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cf512
cmp byte [edi], 0x19
jne 0x4cf512
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4cf517
lea edi, [esi + 0xcc000]
mov eax, dword [edi]
or eax, eax
je 0x4cf58f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdb76c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb958]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cf544
mov ecx, edi
jns 0x4cf573
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb960]
or eax, eax
je 0x4cf589
mov dword [ebx], eax
add ebx, 4
jmp 0x4cf561
call dword [esi + 0xdb95c]
mov ebp, dword [esi + 0xdb964]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4cf5c3
sub esp, 0xffffff80
jmp 0x44e890
Function at 0x4014aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [0x43625c]
mov ebx, eax
push ebx
call fcn.004274b7
mov esi, eax
pop ecx
test esi, esi
je 0x4014f8
xor edx, edx
test ebx, ebx
jbe 0x4014f8
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4014e2
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41b1a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x41b1dc
mov eax, dword [ecx + 0x70]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x41b1ba
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc

Function at 0x428bf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
enter 0x7462, 0x4a
call dword [esp + 0x75]
xor ebx, ebx
mov bl, byte [esp + 0xc]
test edx, 0xb95703
je 0x428c19
mov cl, byte [edx]
inc edx
xor cl, bl
je 0x428c7a
dec eax
je 0x428c3f
test edx, 0xb95703
jne 0x428c07
sub eax, 4
jb 0x428c30
push esi
push edi
sti
shl ebx, 8
add ebx, edi
push edi
sti
shl ebx, 0x10
add ebx, edi
jmp 0x428c46
pop edi
inc ebx
add byte [ebx + 0xa8a0a74], cl
mov cl, byte [edx]
inc edx
xor cl, bl
je 0x428c7a
dec eax
jne 0x428c35
pop ebx
ret
sub eax, 4
jb 0x428c2f
mov ecx, dword [edx]
xor ecx, ebx
mov edi, 0x7efefeff
add edi, ecx
xor ecx, 0xffffffff
xor ecx, edi
add edx, 4
and ecx, 0x810101ff
je 0x428c41
mov ecx, dword [edx - 4]
xor cl, bl
je 0x428c8b
xor ch, bl
je 0x428c85
add byte [eax], al
jne 0x428ca2
retf
lea eax, [edx - 1]
pop ebx
ret
lea eax, [edx - 3]
pop edi
pop ebx
ret
lea eax, [edx - 4]
pop edi
pop ebx
ret
add edi, 2
push 8
push esi
call 0xe842ce80
pop ecx
mov ch, 0
add byte [edi + eax + 0x66], dh
mov esi, dword [edi]
inc edi
inc edi
jmp 0x428ca5