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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1007b80], ebx
push esi
push edi
jne 0x1003a26
push 0x1001568
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003a61
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100155c
push edi
call esi
test eax, eax
mov dword [0x1007b80], eax
je 0x1003a61
push 0x100154c
push edi
call esi
push 0x1001538
push edi
mov dword [0x1007b84], eax
call esi
cmp dword [0x10078d4], 2
mov dword [0x1007b88], eax
jne 0x1003a26
push 0x100151c
push edi
call esi
test eax, eax
mov dword [0x1007b90], eax
je 0x1003a26
push 0x1001504
push edi
call esi
mov dword [0x1007b8c], eax
mov eax, dword [0x1007b8c]
test eax, eax
je 0x1003a6b
call eax
test eax, eax
je 0x1003a52
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1007b90]
test eax, eax
je 0x1003a52
test byte [ebp - 8], 1
jne 0x1003a6b
cmp dword [0x10078e0], 4
jb 0x1003a65
or byte [ebp + 0x12], 0x20
jmp 0x1003a8a
xor eax, eax
jmp 0x1003a9a
or byte [ebp + 0x12], 4
jmp 0x1003a8a
mov eax, dword [0x1007b84]
test eax, eax
je 0x1003a8a
call eax
mov ebx, eax
test ebx, ebx
je 0x1003a8a
mov eax, dword [0x1007b88]
test eax, eax
je 0x1003a8a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1007b80]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005d84
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003810
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005e19
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10078d4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1005e19
cmp eax, 1
je 0x1005e31
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005e19
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1005dee
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1005e15
xor eax, eax
inc eax
jmp 0x1005e4d
cmp esi, ebx
jae 0x1005e1d
xor eax, eax
jmp 0x1005e4d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10078d4]
jmp 0x1005e33
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401170
Capabilities:
Get memory capacity
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x403004]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
mov dword [esp], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
lea eax, [ecx - 0x200]
cmp eax, 0x1f200
ja 0x4011b8
call fcn.004010e0
jmp 0x4011c9
push 0
push 0
push str.agyritor_lexicesque_colorize_amphmarriageress_missionan_smileform_gelat_lexicot_temn_fort_penit_septuagintsome_hieristic_employeeer_syringation_feelinglet_toxatory_mouth_thrixage_agyrimage_penit_language_tough_tinify_haplast_el
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0x4030f0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x7ffe53be
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
push bx
inc esp
inc esp
and al, 0xff
add al, 4
sub al, 4
inc esi
dec esi
not eax
not eax
and al, 0xff
pushf
popf
and al, 0xff
add al, 4
sub al, 4
push es
pop ds
xor eax, ecx
xor eax, ecx
add al, 0
push bx
inc esp
inc esp
push es
pop ds
not eax
not eax
add al, 0
add al, 4
sub al, 4
and al, 0xff
pushf
popf
push eax
pop eax
push bx
inc esp
inc esp
add al, 0
pushf
popf
and al, 0xff
not eax
not eax
push eax
pop eax
not eax
not eax
and al, 0xff
not eax
not eax
nop
call 0x7ffe5422
pop edx
push eax
pop eax
xor dx, dx
add al, 0
add al, 4
sub al, 4
push es
pop ds
nop
add edx, 0xd5e0
push eax
pop eax
and al, 0xff
xor ecx, ecx
push eax
pop eax
add al, 0
stc
mov cl, 0x1e
add al, 4
sub al, 4
xor byte [ecx + edx], 0x57
loop 0x7ffe5448
add al, 0
push eax
pop eax
nop
push dword fs:[0x24]
push es
pop ds
pop dword [edx + 0xa]
and al, 0xff
inc esi
dec esi
cld
mov cl, 0xff
pushf
popf
push edx
loop 0x7ffe546a
lea esp, [esp]
mov dword [edx + 0x11], 0xffffacbb
add al, 4
sub al, 4
inc esi
dec esi
mov ecx, dword [eax + 0x2c]
pushf
popf
inc esi
dec esi
pushal
inc eax
popal
mov dword [edx + 0x1b], ecx
inc esi
dec esi
mov dword [edx + 0x100], ecx
push bx
inc esp
inc esp
cld
mov dword [eax + 0x2c], esp
push es
pop ds
push 0
push es
pop ds
xor eax, ecx
xor eax, ecx
push es
pop ds
stc
push 0
and al, 0xff
push 0
pushf
popf
and bh, 0xff
push 0
push 0x30
xor eax, ecx
xor eax, ecx
nop
add al, 0
push 0x20
push 0
push eax
pop eax
cld
and al, 0xff
push 0
add edx, 0xffff7f39
add al, 4
sub al, 4
cld
push edx
push edx
not eax
not eax
clc
push 0
pushf
popf
push eax
pop eax
push es
pop ds
call dword [edx + 0x820a]
and al, 0xff
add al, 4
sub al, 4
and bh, 0xff
add esp, 0x3f8
and al, 0xff
xor eax, eax
add al, 0
push edx
cdq
pop edx
inc eax
inc esi
dec esi
not eax
not eax
ret 0xc
Function at 0x7ffe8354
Capabilities:
Encode data using xor

Disassembly:
add al, 0
lea esp, [esp]
pop eax
push eax
pop eax
push es
pop ds
add eax, 0x1d
inc esi
dec esi
not eax
not eax
cld
mov byte [eax], 5
push bx
inc esp
inc esp
add byte [0x44445366], al
push eax
pop eax
call 0x7ffe8354
clc
add eax, 5
mov ecx, eax
inc esi
dec esi
cld
call 0x7ffe8319
add byte [eax], al
add byte [eax], al
and al, 0xff
pop eax
push bx
inc esp
inc esp
cld
add eax, 0x19
xor eax, ecx
xor eax, ecx
mov byte [eax], 5
push es
pop ds
not eax
not eax
cld
call int.7ffe84d6
add al, 4
sub al, 4
push es
pop ds
add eax, 5
stc
xchg ecx, eax
sub ecx, eax
stc
add al, 0
xor byte [eax + ecx], 0x21
push eax
pop eax
loop 0x7ffe8347
push bx
inc esp
inc esp
cld
pop ecx
leave
and dword [ecx], esp
and dword [ecx], esp
jns 0x7ffe82fe
mov byte [0x21e726e1], al
loope 0x7ffe8384
out 0x21, eax
and al, 0xc9
xchg esp, eax
and dword [ecx], esp
and dword [edx + 0x64a824e1], esp
aad 0xc9
and dword [ecx], esp
and dword [ecx], esp
jns 0x7ffe8315
loope 0x7ffe839b
out 0x21, eax
and al, 0xc9
test byte [ecx], ah
and dword [ecx], esp
mov byte [0xa4a824e1], al
jne 0x7ffe835b
invalid
jns 0x7ffe83f9
leave
and dword [ecx], esp
and dword [ecx], esp
jns 0x7ffe83d6
adc ah, cl
test al, 0xa4
int 0xd0
invalid
and dword [ecx], esp
and dword [ecx - 0x19], edi
popal
and al, 0x24
leave
sbb dword [edi + 0x21], ebp
and dword [edx - 0x5b57d41f], esp
jno 0x7ffe8386
invalid
and al, 0xc9
out dx, al
invalid
fstpnce st(6), st(0)
fisubr word [edx - 0x21288a54]
fimul word [edx]
insb byte es:[edi], dx
aad 0xa8
insb byte es:[edi], dx
fnstenv [eax + 0x76]
jno 0x7ffe839d
mov cl, 0xaa
insb byte es:[edi], dx
fldcw word [edx - 0x21266264]
invalid

Function at 0x84753d
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x8472a2
or eax, eax
call fcn.00847573
sub esp, 4
mov dword [esp], eax
pop eax
xor dword [esi], ebx
sub edi, edi
sub esp, 4
mov dword [esp], eax
pop edi
inc esi
sub eax, 0xa641eff2
inc eax
push eax
pop eax
cmp esi, ecx
jne fcn.0084753d
or eax, edi
mov edi, eax
dec edi
ret
Function at 0x1000b5c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x24]
cmp eax, 0x10000001
jae 0x1000b741
mov ebx, ecx
dec eax
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov esi, 1
shl esi, cl
lea eax, [ebx + 0xc]
mov ebp, dword [ebx + 4]
mov edx, 2
shl edx, cl
mov ecx, eax
push ebp
push edx
call fcn.1000b180
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp eax, ebp
je 0x1000b737
mov dword [esp + 4], ebx
mov dword [esp], ebp
jmp 0x1000b634
mov dword [edx + ebx*4], ecx
mov dword [edx + esi*4], ecx
mov ebx, eax
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x1000b737
mov ecx, eax
mov eax, dword [eax]
mov dword [esp + 0xc], eax
movzx edx, byte [ecx + 8]
xor edx, 0x811c9dc5
imul edx, edx, 0x1000193
movzx esi, byte [ecx + 9]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ecx + 0xa]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ecx + 0xb]
xor esi, edx
imul edi, esi, 0x1000193
and edi, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
mov eax, ebx
lea ebx, [edi + edi]
lea esi, [edi*2 + 1]
mov edi, dword [edx + edi*8]
cmp edi, ebp
je 0x1000b620
mov dword [esp + 8], ebx
mov ebp, dword [edx + esi*4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp + 8]
jne 0x1000b6d0
mov edi, dword [ebp]
cmp edi, ecx
mov eax, dword [esp + 0xc]
je 0x1000b725
mov ebx, dword [ecx + 4]
mov dword [esp + 8], ebx
mov dword [ebx], eax
mov ebp, dword [eax + 4]
mov dword [ebp], edi
mov ebx, dword [edi + 4]
mov dword [ebx], ecx
mov dword [edi + 4], ebp
mov edi, dword [esp + 8]
mov dword [eax + 4], edi
mov dword [ecx + 4], ebx
jmp 0x1000b725
mov eax, dword [esp + 0xc]
nop word cs:[eax + eax]
cmp edi, ebp
je 0x1000b709
mov ebp, dword [ebp + 4]
cmp ebx, dword [ebp + 8]
jne 0x1000b6e0
mov edx, dword [ebp]
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], edx
mov ebx, dword [edx + 4]
mov dword [ebx], ecx
mov dword [edx + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
jmp 0x1000b728
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], ebp
mov ebx, dword [ebp + 4]
mov dword [ebx], ecx
mov dword [ebp + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
mov esi, dword [esp + 8]
mov dword [edx + esi*4], ecx
mov ebx, dword [esp + 4]
mov ebp, dword [esp]
cmp eax, ebp
jne 0x1000b634
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.1000d19e
int3
Function at 0x1000bec0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x24]
cmp eax, 0x10000001
jae 0x1000c022
mov ebx, ecx
dec eax
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov esi, 1
shl esi, cl
lea eax, [ebx + 0xc]
mov ebp, dword [ebx + 4]
mov edx, 2
shl edx, cl
mov ecx, eax
push ebp
push edx
call fcn.1000b180
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp eax, ebp
je 0x1000c018
mov dword [esp + 4], ebx
mov dword [esp], ebp
jmp 0x1000bf34
mov dword [edx + ebx*4], ecx
mov dword [edx + esi*4], ecx
mov ebx, eax
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x1000c018
mov ecx, eax
mov eax, dword [eax]
mov dword [esp + 0xc], eax
movzx edx, byte [ecx + 8]
xor edx, 0x11c9dc5
imul edx, edx, 0x1000193
movzx esi, byte [ecx + 9]
xor esi, edx
imul edi, esi, 0x1000193
and edi, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
mov eax, ebx
lea ebx, [edi + edi]
lea esi, [edi*2 + 1]
mov edi, dword [edx + edi*8]
cmp edi, ebp
je 0x1000bf20
mov dword [esp + 8], ebx
mov ebp, dword [edx + esi*4]
movzx ebx, word [ecx + 8]
cmp bx, word [ebp + 8]
jne 0x1000bfb0
mov edi, dword [ebp]
cmp edi, ecx
mov eax, dword [esp + 0xc]
je 0x1000c006
mov ebx, dword [ecx + 4]
mov dword [esp + 8], ebx
mov dword [ebx], eax
mov ebp, dword [eax + 4]
mov dword [ebp], edi
mov ebx, dword [edi + 4]
mov dword [ebx], ecx
mov dword [edi + 4], ebp
mov edi, dword [esp + 8]
mov dword [eax + 4], edi
mov dword [ecx + 4], ebx
jmp 0x1000c006
mov eax, dword [esp + 0xc]
nop word cs:[eax + eax]
cmp edi, ebp
je 0x1000bfea
mov ebp, dword [ebp + 4]
cmp bx, word [ebp + 8]
jne 0x1000bfc0
mov edx, dword [ebp]
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], edx
mov ebx, dword [edx + 4]
mov dword [ebx], ecx
mov dword [edx + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
jmp 0x1000c009
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], ebp
mov ebx, dword [ebp + 4]
mov dword [ebx], ecx
mov dword [ebp + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
mov esi, dword [esp + 8]
mov dword [edx + esi*4], ecx
mov ebx, dword [esp + 4]
mov ebp, dword [esp]
cmp eax, ebp
jne 0x1000bf34
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.1000d19e
int3

Function at 0x10012c29
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100191c1
push ebx
push esi
call fcn.100190ed
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10019083
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001916e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100191c0
push edi
push eax
call fcn.10016560
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001918e
call fcn.100153c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100191bf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10019083
add esp, 0x20
test eax, eax
jne 0x100191ad
push edi
call fcn.100153c0
jmp 0x100191b5
push ebx
call fcn.100153c0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001d48a
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x1001d4a4
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x1001d4bb
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1001d513
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.1001c362
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1001d513
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001d513
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001d513
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x1001d50d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x1001d50f
xor bl, bl
mov al, bl
jmp 0x1001d515
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x100204d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002ebd0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10020518
cmp byte [ebx], 0xa
jne 0x10020518
or byte [edi + eax + 0x28], 4
jmp 0x1002051d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10020620
mov cl, byte [eax]
cmp cl, 0x1a
je 0x100205fb
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x1002054c
mov eax, dword [ebp - 8]
jmp 0x1002056c
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x10020588
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x10020566
add eax, 2
mov cl, 0xa
jmp 0x10020569
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002052e
jmp 0x10020620
push 0
lea eax, [ebp - 0x10]
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 0x100205f6
cmp dword [ebp - 0x10], 0
je 0x100205f6
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x1002ebd0]
test byte [eax + edi + 0x28], 0x48
je 0x100205d5
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x100205c5
mov byte [esi], 0xa
jmp 0x1002061f
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x1002ebd0]
mov byte [eax + edi + 0x2a], cl
jmp 0x1002061f
cmp byte [ebp - 1], 0xa
jne 0x100205df
cmp esi, ebx
je 0x100205c0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10020446
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10020620
mov byte [esi], 0xd
jmp 0x1002061f
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x1002ebd0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x1002061d
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x10020620
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10020629
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x1002ebd0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1002066d
push 0xa
pop esi
cmp word [ebx], si
jne 0x1002066d
or byte [eax + edi + 0x28], 4
jmp 0x10020672
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x100207dd
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x100207b5
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x100206bf
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x100206e9
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x10020708
push 0xa
pop ebx
cmp word [edx], bx
jne 0x100206d6
push ebx
add eax, 4
pop edx
jmp 0x100206de
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x10020684
jmp 0x100207dd
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 0x100207b0
cmp dword [ebp - 0x14], 0
je 0x100207b0
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x1002ebd0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x1002078c
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x10020754
mov word [esi], ax
jmp 0x100207da
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x1002ebd0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002ebd0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002ebd0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x100207da
cmp word [ebp - 4], ax
jne 0x10020796
cmp esi, ebx
je 0x1002074c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10020446
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100207dd
push 0xd
pop eax
jmp 0x1002074c
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x1002ebd0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x100207d7
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x100207dd
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10021013
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10020f8f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10021182
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10021182
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10021137
jg 0x1002106f
test eax, eax
je 0x1002112d
push 1
push 0x1000
call fcn.10015360
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10021092
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10021124
push 0x8000
push ebx
call fcn.10020ebe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100210bb
jg 0x100210b6
cmp ecx, 0x1000
jb 0x100210bb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001bd7c
add esp, 0x10
cmp eax, 0xffffffff
je 0x10021100
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100210b6
jl 0x100210e7
test ecx, ecx
jne 0x100210a8
push dword [ebp - 0xc]
push ebx
call fcn.10020ebe
push esi
call fcn.100153c0
add esp, 0xc
xor ebx, ebx
jmp 0x10021190
cmp byte [edi + 0x24], 0
je 0x10021117
cmp dword [edi + 0x20], 5
jne 0x10021117
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10021122
mov ebx, dword [edi + 0x18]
jmp 0x10021124
xor ebx, ebx
push esi
call fcn.100153c0
pop ecx
jmp 0x10021190
test ecx, ecx
jg 0x100210f9
jl 0x10021137
test eax, eax
jae 0x100210f9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10020446
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10021157
cmp byte [edi + 0x1c], 0
je 0x100210f9
jmp 0x10021188
push ebx
call fcn.1001c362
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100210f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10021190
cmp byte [edi + 0x1c], 0
je 0x1002118d
mov ebx, dword [edi + 0x18]
jmp 0x10021190
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10020446
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10022770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002279d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002279d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret