joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53e107
Capabilities:
Encode data using xor

Disassembly:
mov ah, 6
fnstenv [0x32a4849b]
inc ecx
mov esi, 0x60568236
invalid

Function at 0x54d21c
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x6f3ab454
inc esp
push 0xb8a4a8d2
cld
test byte [edi - 0x230bf2c], 0x54
inc edx
add al, 0x71
fdiv qword [eax + 0x64]
push eax
test byte [eax], 0x40
invalid

Function at 0x5cd1de
Capabilities:
Check for software breakpoints

Disassembly:
push ds
push esi
in eax, 0xe0
inc ebx
mov esp, 0x602d85f3
stosb byte es:[edi], al
js 0x5cd1f1
inc esi
jno 0x5cd1b9
pop ebp
imul eax, dword [ecx + 0x5099146], 0xa334fc29
add eax, 0xa334fc29
sub esp, edi
xor al, 0xa3
enter 0xffffffffffffd536, 0xffffffffffffff86
sub bl, bh
or dword [ecx], eax
xchg ecx, eax
jno 0x5cd21a
jl 0x5cd242
invalid
mov dword [edi], edi
mov ebp, dword [ebx - 0x7c]
jecxz 0x5cd1f2
mov esi, cs
ljmp 0x97bb
cmpsb byte [esi], byte es:[edi]
dec esi
add al, 0x2d
sub eax, 0xf66e5d06
jne 0x5cd1ad
push es
pop ebp
outsb dx, byte [esi]
div byte [ebp - 0x4b]
out 0xfb, eax
cmp eax, 0x2181c93b
sub eax, 0x2189b422
aaa
leave
or eax, 0x96788e51
js 0x5cd1a2
push 0xb8cea69f
jae 0x5cd1ba
pop eax
push 0xf8c0d6ae
mov edi, 0x428d272
cmp ah, byte [ecx]
outsb dx, byte [esi]
dec ebx
jb 0x5cd1ee
sub byte [edx + edi], al
and dword [esi + 0x4b], ebp
add ecx, dword [edx + 0x5bd828f2]
push eax
pop edi
lcall 0x3cb7, 0xcba939de
or eax, 0x6f3446b6
leave
scasd eax, dword es:[edi]
cmp eax, 0xff99a5d5
das
cwde
in al, 0x26
rcr esp, cl
invalid
fmul qword [edi]
not dword [eax + edi*8]
xchg byte [ebp - 0x7d], dl
jb 0x5cd273
push ss
pop ebx
jbe 0x5cd20a
clc
mov al, 0x79
int1
xor al, 0x62
mov edi, 0x62e0cea
out 0x74, al
imul edx, dword cs:[edx], 0xffffffc6
int 0xe3
cmp al, 0xec
mov al, 0xee
invalid
outsb dx, byte [esi]
jno 0x5cd2c1
fcomp qword [ebx - 0x67]
inc ebp
xchg edi, eax
cmp al, al
sbb byte [ebp - 0x1c96e4f4], bh
fcom qword [eax + ebx*2 - 0x6ee4df14]
mov edi, 0x95ea7a8f
cmp al, 0x55
cmp al, 0xcc
out 0xeb, eax
js 0x5cd2a1
add al, 0x7f
push ds
sbb dword [esi + 0x30], edi
fidivr word [ebx - 0x5a]
scasb al, byte es:[edi]
invalid
insd dword es:[edi], dx
invalid
Function at 0x629f6c
Capabilities:
Encode data using xor

Disassembly:
pop es
mov dl, 0x82
mov eax, dword [0x70ded799]
invalid
push edi
shr byte [ecx], cl
xlatb
xchg ecx, eax
xlatb
mov al, 0x1e
and dword [eax - 0x76], ecx
adc al, 0xa0
adc dword [eax], esi
xchg esp, eax
daa
invalid
loope 0x629f14
add bh, byte [eax]
popal
xchg ebp, eax
mov dword [0xf725e57b], eax
mov eax, dword [0x94575500]
pop ecx
and edx, dword [ecx + 0x4599e1e0]
inc ecx
xor dh, ah
jb 0x629f67
test byte [esi - 0x52], cl
and esp, ebx
mov ecx, 0x2b0f3bf0
xchg ebx, eax
add byte [edx + 0x40], 0xb4
js 0x629ef3
inc edx
inc eax
mov ah, 0x78
mov byte [esi + edx*2 - 0x66a39690], al
push esi
jo 0x629fd8
pop esp
cdq
test byte [esi + 0x70], dl
imul ebx, dword [ecx + ebx*4 - 0x7d], 0x881527de
push esi
jo 0x629fd8
pop esp
cdq
sbb esi, 0x27
adc eax, 0xc1b18088
push esp
dec esp
cmc
jecxz 0x629f66
xor byte [ecx - 0xab3ab3f], 0xe3
call 0x1479f4c3
xor ch, byte [eax + 0x2496ed88]
pop esi
inc ecx
push ebp
pop ss
adc al, 0x32
test al, 0x88
in eax, dx
xchg esi, eax
and al, 0x5e
bound ebp, qword [ecx + 0x2af5a09d]
adc al, 0x7e
movsd dword es:[edi], dword [esi]
loope 0x629f76
shr dword [0xdd406d0b], 0xd
les ebx, [ebp - 0x5d382cb3]
push ecx
adc dword [ebp + 0x35b81846], esp
pop eax
loop 0x629fb0
xor byte [edi + eax*8 + 0x40], dh
invalid
xchg edi, eax
jns 0x629f3e
out 0x95, eax
lodsb al, byte [esi]
adc eax, 0x3358e4e9
stc
invalid
push 0x72c528d2
xor eax, 0x8ac899a2
or byte [edi + 0x34], bl
and eax, 0xe50cd3d
push cs
loopne 0x629f7d
xor eax, 0x9f1508e2
xchg esp, ebp
xor eax, 0xbef6e73f
pushal
loope 0x629fe9
dec esi
inc ecx
jmp 0xdb17c00a

Function at 0x64e319
Capabilities:
Encode data using xor

Disassembly:
out 0xc5, eax
out 0x95, al
sub eax, 0x7ab8f3e0
adc byte [ebp + 0x5d], ah
add ecx, dword [ebx + 0x3a]
cmp byte [edi - 0x38], 0xe6
push esi
imul esi, dword [edi + 0x69], 8
xchg ebp, eax
invalid
Function at 0xbec058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xbec1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbec07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbec06a
add dl, dl
jne 0xbec089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbec0dc
xor eax, eax
add dl, dl
jne 0xbec096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbec17d
add dl, dl
jne 0xbec0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbec0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbec0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbec0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbec0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbec075
mov eax, 1
add dl, dl
jne 0xbec0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbec0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbec0e1
sub eax, ebx
mov ebx, 1
jne 0xbec128
mov ecx, 1
add dl, dl
jne 0xbec10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbec119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbec105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbec075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbec13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbec14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbec136
cmp eax, 0x7d00
jae 0xbec16d
cmp eax, 0x500
jb 0xbec168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbec075
cmp eax, 0x7f
ja 0xbec170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbec075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbec19e
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 0xbec075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x432750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x4327fa
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x432816
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x432816
sub dx, 0x20
je 0x4327f0
sub dx, 0x80
je 0x4327f0
sub dx, 0x1f62
jb 0x432816
sub dx, 1
jbe 0x4327f0
sub dx, 6
je 0x4327f0
sub dx, 0x26
jne 0x432816
nop
jmp 0x4327f0
cmp eax, dword [ebp - 0x20]
jg 0x432798
lea esi, [esi]
jmp 0x432816
cmp dword [ebp - 0x1c], 2
jne 0x43280a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x432816
mov al, byte [ebp - 0xc]
call fcn.0040b460
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x432894
sub ax, 0x21
je 0x4328a8
sub ax, 0x17
je 0x4328b4
sub ax, 0x222
je 0x4328c0
sub ax, 0x392
je 0x4328c8
sub ax, 1
je 0x4328d0
sub ax, 0x1996
je 0x4328d8
sub ax, 1
je 0x4328e0
sub ax, 6
je 0x4328e8
sub ax, 0xb
je 0x4328f8
sub ax, 0x1b
je 0x4328f0
sub ax, 0x367
je 0x432900
jmp 0x432908
mov ax, word [ebp - 0x24]
call fcn.0040b4d0
mov byte [ebp - 0x10], al
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x2e
jmp 0x432910
mov byte [ebp - 0x10], 0x27
jmp 0x432910
mov byte [ebp - 0x10], 0x2c
jmp 0x432910
mov byte [ebp - 0x10], 0x27
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x2d
jmp 0x432910
mov byte [ebp - 0x10], 0x27
jmp 0x432910
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x421c40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421c62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421c69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421c58
mov eax, 1
add ebx, ebx
jne 0x421c7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421c70
jne 0x421c8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c70
xor ecx, ecx
sub eax, 3
jb 0x421ca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421d12
mov ebp, eax
add ebx, ebx
jne 0x421cab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421cb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421cdc
inc ecx
add ebx, ebx
jne 0x421cc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421cbd
jne 0x421cd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421cbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421cfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421ced
jmp 0x421c5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421cfc
add edi, ecx
jmp 0x421c5e
pop esi
mov edi, esi
mov ecx, 0x843
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421d1a
cmp byte [edi], 0xd
jne 0x421d1a
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 eax, ebx
loop 0x421d1f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421d97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x228e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2299c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421d4c
mov ecx, edi
jns 0x421d7b
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 + 0x229a0]
or eax, eax
je 0x421d91
mov dword [ebx], eax
add ebx, 4
jmp 0x421d69
call dword [esi + 0x229a4]
popal
jmp section.UPX0
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408937
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.00408957
and edi, eax
xor dword [esi], ebx
inc edi
inc esi
sub eax, 0xfcdbfad4
cmp esi, edx
jne fcn.00408937
add edi, edi
ret

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40e444
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
test edx, edx
je 0x40e46a
mov ecx, dword [ebp + 8]
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shl esi, 3
xor esi, edi
xor eax, esi
inc ecx
dec edx
jne 0x40e458
pop edi
pop esi
pop ebp
ret 8
Function at 0x4926fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401db6
mov eax, dword [0x692458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405eb1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492740
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49289c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406014
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6960d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403279
mov ecx, dword [esi*4 + 0x6960d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x492895
cmp eax, dword [edi + ecx + 0x24]
jne 0x492895
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492895
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403279
add esp, 0x14
test edx, edx
jl 0x492895
jg 0x49280b
test eax, eax
jb 0x492895
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x492895
jl 0x492825
cmp dword [ebp - 0x1008], eax
ja 0x492895
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492843
test ebx, ebx
je 0x49287c
cmp ecx, edi
jae 0x49287c
mov al, byte [ecx]
cmp al, 0xd
jne 0x49285d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x492869
cmp byte [ecx + 1], 0xa
jne 0x492869
inc ecx
jmp 0x492869
movzx eax, al
movsx eax, byte [eax + 0x692fc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492843
cmp edx, ebx
jne 0x492843
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49289a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x498fd1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x692458]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49901c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499493
test al, al
jne 0x499016
sub edx, 2
cmp edx, edi
jne 0x498ffc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49903e
lea eax, [edi + 2]
cmp edx, eax
je 0x49903e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00498bca
add esp, 0x10
jmp 0x499138
push esi
lea ecx, [ebp - 0x255]
call fcn.00499493
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499081
push dword [ebp - 0x25c]
jmp 0x49902e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4990be
cmp word [ebp - 0x226], 0
je 0x4990df
cmp word [ebp - 0x226], ax
jne 0x4990be
cmp word [ebp - 0x224], 0
je 0x4990df
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00498bca
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49912b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499098
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499113
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499138
push 0x4985b2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040556a
add esp, 0x10
jmp 0x499108
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x4a11fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6960d8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a123c
cmp byte [ebx], 0xa
jne 0x4a123c
or byte [eax + edi + 0x28], 4
jmp 0x4a1241
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a133f
mov al, byte [edx]
cmp al, 0x1a
je 0x4a1321
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a1270
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a1295
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a129f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a1252
jmp 0x4a133f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a131c
cmp dword [ebp - 0xc], 0
je 0x4a131c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6960d8]
test byte [eax + edi + 0x28], 0x48
je 0x4a12f6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a12e1
mov byte [esi], dl
jmp 0x4a12f2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6960d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a133f
cmp byte [ebp - 1], 0xa
jne 0x4a1305
cmp esi, ebx
jne 0x4a1305
mov byte [esi], 0xa
jmp 0x4a133e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a133f
mov byte [esi], 0xd
jmp 0x4a133e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6960d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a133b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a133f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a139b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6960d8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a13de
cmp word [esi], dx
jne 0x4a13de
or byte [edi + eax + 0x28], 4
jmp 0x4a13e3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a1536
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a1516
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a1425
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a145b
cmp eax, edx
jae 0x4a1467
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a13fd
jmp 0x4a1536
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1512
cmp dword [ebp - 0x14], 0
je 0x4a1512
mov eax, dword [ebx*4 + 0x6960d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a14ea
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a14b3
mov word [esi], cx
jmp 0x4a14e6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6960d8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6960d8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6960d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a1536
pop ebx
cmp word [ebp - 4], bx
jne 0x4a14fb
cmp esi, dword [ebp + 0xc]
jne 0x4a14fb
mov word [esi], bx
jmp 0x4a1533
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a1536
push 0xd
jmp 0x4a152f
mov ecx, dword [ebx*4 + 0x6960d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a152d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a1536
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret