joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1021040
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x102cd74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x10210d1
xor esi, esi
cmp ebx, esi
je 0x10210d1
push esi
push esi
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xc
jne 0x10210d1
cmp dword [ebp + 0x10], esi
jle 0x10210cd
dec dword [ebp + 0x10]
mov esi, ebx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x10]
push eax
movsd dword es:[edi], dword [esi]
add ebx, 0x10
call fcn.01020b97
lea eax, [ebp - 0xc]
push eax
call fcn.01020b97
lea eax, [ebp - 8]
push eax
call fcn.01020b97
push 0
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10210d1
cmp dword [ebp - 0x18], 0x10
jne 0x10210d1
cmp dword [ebp + 0x10], 0
jg 0x102107e
xor eax, eax
jmp 0x10210d4
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01026cc5
leave
ret 0xc

Function at 0x10211b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
push edi
je 0x1021229
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1021229
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1021229
push 0
push 0
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esi + 8]
jne 0x1021229
mov esi, dword [esi + 0xc]
mov edi, dword [ebp + 0x14]
cmp edi, esi
jge 0x10211f6
mov esi, edi
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1021229
cmp dword [ebp + 0xc], esi
jne 0x1021229
cmp esi, edi
jae 0x1021225
sub edi, esi
push edi
lea eax, [esi + ebx]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x102122c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1021338
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
push esi
push edi
je 0x10213a0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10213a0
cmp dword [ebp + 0x10], 0
je 0x10213a0
push 0
push 0
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esi + 8]
jne 0x10213a0
mov edi, dword [esi + 0xc]
cmp dword [ebp + 0x14], edi
jge 0x1021372
mov edi, dword [ebp + 0x14]
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10213a0
cmp dword [ebp + 0xc], edi
jne 0x10213a0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.01020bbd
mov dword [esi + 4], eax
mov eax, edi
jmp 0x10213a3
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x10213ae
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
push edi
je 0x102145f
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
je 0x102145f
cmp dword [ebp + 0x10], esi
je 0x102145f
push 1
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x102145f
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x102145f
cmp dword [ebp - 4], esi
jne 0x102145f
mov eax, esi
and eax, 0x80000003
jns 0x102141b
dec eax
or eax, 0xfffffffc
inc eax
je 0x1021446
push 4
pop esi
sub esi, eax
xor eax, eax
push eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x102145f
cmp dword [ebp - 4], esi
jne 0x102145f
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
push esi
push dword [ebp + 0x10]
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
call fcn.01020bbd
mov dword [edi + 4], eax
xor eax, eax
jmp 0x1021462
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x102149f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
push edi
mov esi, ecx
je 0x1021577
xor ebx, ebx
cmp esi, ebx
je 0x1021577
cmp dword [ebp + 0xc], ebx
je 0x1021577
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1021577
add edi, 8
cmp eax, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [edi], ebx
jle 0x1021577
mov ecx, dword [esi]
dec dword [ebp - 8]
mov eax, 0x10049d4
cmp ecx, dword [eax]
jne 0x10214f7
mov ebx, esi
mov eax, ecx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.01020b45
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
lea eax, [ecx + eax*2]
add eax, dword [esi + 0xc]
add esi, 0x10
add eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jg 0x10214e7
xor esi, esi
cmp ebx, esi
je 0x1021577
push 0xc
push dword [ebp + 0xc]
call fcn.01020bbd
add dword [ebp - 4], eax
push esi
push esi
push dword [ebx + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebx + 8]
jne 0x1021577
mov eax, 0xb1b0afba
sub eax, dword [ebp - 4]
push edi
mov dword [edi], eax
call fcn.01020b97
push esi
lea eax, [ebp + 0xc]
push eax
push 0x36
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1021577
cmp dword [ebp + 0xc], 0x36
jne 0x1021577
xor eax, eax
jmp 0x102157a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1021dd5
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
push edi
mov ebx, eax
je 0x1021f0b
cmp dword [ebp + 0xc], 0xffffffff
je 0x1021f0b
cmp dword [ebp + 0x10], 0
je 0x1021f0b
mov edi, 0x4000
push edi
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x1021f0b
mov eax, ebx
and eax, 3
mov dword [ebp - 4], eax
je 0x1021e2b
push 4
pop ecx
sub ecx, eax
mov dword [ebp - 4], ecx
mov eax, ecx
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
test ebx, ebx
jbe 0x1021eeb
jmp 0x1021e45
mov eax, dword [ebp - 4]
mov edi, 0x4000
cmp ebx, edi
ja 0x1021e7f
mov dword [ebp - 8], ebx
test eax, eax
je 0x1021e7c
lea edi, [eax + ebx]
mov dword [ebp - 0x14], 1
cmp edi, 0x4000
jbe 0x1021e7c
push esi
call dword [sym.imp.msvcrt.dll_free]
push edi
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1021f0b
mov edi, dword [ebp - 8]
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1021eff
cmp dword [ebp - 0xc], edi
jne 0x1021eff
cmp dword [ebp - 0x14], 0
je 0x1021ebf
mov eax, dword [ebp - 4]
lea ecx, [eax + ebx]
cmp ecx, 0x4000
ja 0x1021eff
push eax
lea eax, [esi + ebx]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add edi, dword [ebp - 4]
push edi
push esi
call fcn.01020bbd
add dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1021eff
cmp dword [ebp - 0xc], edi
jne 0x1021eff
sub ebx, edi
jne 0x1021e3d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
push esi
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x1021f0e
test esi, esi
je 0x1021f0b
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x102294c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x102f764]
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push dword [0x102f760]
mov ecx, 0x10049fc
call fcn.010210ea
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x1022a3c
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x102f774]
lea ebx, [ecx + eax*4]
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call fcn.01020b45
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.01020b45
mov edi, dword [edi + 8]
add edi, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
sub esi, dword [ebp + 0xc]
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x1022a3c
push 2
xor edi, edi
push edi
push edi
push dword [0x102f748]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xc]
sub eax, dword [ecx + 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call fcn.01020b97
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
cmp esi, edi
je 0x1022a41
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x1022a3c
push edi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1022a34
cmp dword [ebp - 4], esi
jne 0x1022a34
push edi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [0x102f748]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1022a34
cmp dword [ebp - 4], esi
je 0x1022a44
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x1022a4e
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1022a5a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [0x102f768]
jge 0x1022ae3
test edi, edi
jl 0x1022ae3
push dword [0x102f760]
mov eax, dword [0x102f764]
mov ecx, 0x10049fc
call fcn.010210ea
mov esi, eax
test esi, esi
je 0x1022ae3
push 2
push 0
push 0
push dword [0x102f748]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 8]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.01020b97
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x102f774]
mov dword [ecx + edi*4], eax
test esi, esi
je 0x1022adf
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [0x102f748]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1022ae3
cmp dword [ebp - 4], esi
jne 0x1022ae3
xor eax, eax
jmp 0x1022ae6
or eax, 0xffffffff
pop edi
pop esi
leave
ret 0xc
Function at 0x1024969
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x102497e
or eax, 0xffffffff
jmp 0x1024a98
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, ebx
push ebx
setne cl
push 0x80
neg eax
push 3
sbb eax, eax
push ebx
and eax, 0x40000000
push 3
add eax, 0x80000000
push eax
push dword [ebp + 8]
mov dword [0x102f880], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x102f878], eax
cmp eax, 0xffffffff
je 0x1024976
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
lea ecx, [ebp + 8]
push ecx
push 0x66
push 0x102f810
push eax
call esi
test eax, eax
je 0x1024a64
cmp dword [ebp + 8], 0x66
jne 0x1024a64
movsx edi, word [0x102f85e]
shl edi, 2
push edi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [0x102f884], eax
cmp eax, ebx
je 0x1024a64
push ebx
push ebx
push dword [0x102f872]
push dword [0x102f878]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [0x102f872]
jne 0x1024a64
push ebx
lea eax, [ebp + 8]
push eax
push 0xe
push 0x102f800
push dword [0x102f878]
call esi
test eax, eax
je 0x1024a64
cmp dword [ebp + 8], 0xe
jne 0x1024a64
push ebx
lea eax, [ebp + 8]
push eax
push edi
push dword [0x102f884]
push dword [0x102f878]
call esi
test eax, eax
je 0x1024a64
cmp dword [ebp + 8], edi
jne 0x1024a64
mov dword [0x102f87c], 1
xor eax, eax
jmp 0x1024a96
mov eax, dword [0x102f878]
cmp eax, 0xffffffff
je 0x1024a7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x102f878], 0xffffffff
mov eax, dword [0x102f884]
cmp eax, ebx
je 0x1024a93
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [0x102f884], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1024aa2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
cmp dword [0x102f880], 1
push edi
jl 0x1024b22
push ebx
push ebx
push dword [0x102f872]
push dword [0x102f878]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [0x102f872]
jne 0x1024b1d
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 4]
push eax
push 0xe
push 0x102f800
push dword [0x102f878]
call edi
test eax, eax
je 0x1024b1d
cmp dword [ebp - 4], 0xe
jne 0x1024b1d
movsx esi, word [0x102f85e]
push ebx
lea eax, [ebp - 4]
push eax
shl esi, 2
push esi
push dword [0x102f884]
push dword [0x102f878]
call edi
test eax, eax
je 0x1024b1d
cmp dword [ebp - 4], esi
je 0x1024b22
or eax, 0xffffffff
jmp 0x1024b81
mov eax, dword [0x102f878]
cmp eax, 0xffffffff
je 0x1024b3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x102f878], 0xffffffff
mov eax, dword [0x102f884]
mov esi, dword [sym.imp.msvcrt.dll_free]
cmp eax, ebx
je 0x1024b53
push eax
call esi
pop ecx
mov dword [0x102f884], ebx
mov eax, dword [0x102f888]
cmp eax, ebx
je 0x1024b66
push eax
call esi
pop ecx
mov dword [0x102f888], ebx
mov eax, dword [0x102f88c]
cmp eax, ebx
je 0x1024b79
push eax
call esi
pop ecx
mov dword [0x102f88c], ebx
mov dword [0x102f87c], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1024b8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x102cd74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
jne 0x1024bac
or eax, 0xffffffff
jmp 0x1024c1b
push esi
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x1024c1a
push edi
lea eax, [ebp - 0x70]
push eax
push 0x66
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1024c11
cmp dword [ebp - 0x70], 0x66
jne 0x1024c11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
pop ecx
mov edi, 0x1004a4c
lea esi, [ebp - 0x6c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x1024c18
mov eax, 0x40f0
cmp word [ebp - 0x22], ax
jne 0x1024c18
xor eax, eax
inc eax
jmp 0x1024c1a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01026cc5
leave
ret 4

Function at 0x1024c2f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
cmp dword [ebp + 8], esi
je 0x1024d15
cmp dword [ebp + 0xc], esi
je 0x1024d15
cmp dword [ebp + 0x10], esi
je 0x1024d15
cmp dword [ebp + 0x14], esi
je 0x1024d15
xor ecx, ecx
cmp dword [0x102f87c], esi
je 0x1024d15
cmp dword [0x102f878], 0xffffffff
je 0x1024d15
xor ebx, ebx
xor edi, edi
cmp ax, word [0x102f85e]
jge 0x1024cee
mov eax, dword [0x102f884]
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x1024ce2
cmp ecx, esi
jne 0x1024ce1
mov ecx, dword [0x102f872]
push esi
push esi
add eax, ecx
push eax
push dword [0x102f878]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1024d15
push esi
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x102f878]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1024d15
cmp dword [ebp - 4], 8
jne 0x1024d15
xor ecx, ecx
inc ecx
inc ebx
movsx eax, word [0x102f85e]
inc edi
cmp edi, eax
jl 0x1024c91
movsx eax, word [0x102f85e]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
movsx eax, word [ebp - 8]
mov dword [ecx], eax
movsx eax, word [ebp - 6]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x1024d18
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1024d24
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
movsx esi, word [0x102f85e]
add esi, esi
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [0x102f888], eax
test eax, eax
je 0x1024d89
push 0
push 0
push dword [0x102f860]
push dword [0x102f878]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [0x102f860]
jne 0x1024d89
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [0x102f888]
push dword [0x102f878]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1024d89
cmp dword [ebp - 4], esi
jne 0x1024d89
xor eax, eax
jmp 0x1024d8c
or eax, 0xffffffff
pop esi
leave
ret

Function at 0x1024d94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1024ea9
cmp dword [ebp + 0x14], edi
je 0x1024ea9
cmp dword [ebp + 0x18], edi
je 0x1024ea9
cmp dword [ebp + 0x1c], edi
je 0x1024ea9
cmp dword [0x102f87c], edi
je 0x1024ea9
mov eax, dword [0x102f884]
mov ecx, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
cmp esi, edi
jne 0x1024de7
xor eax, eax
jmp 0x1024eac
add esi, dword [0x102f872]
push edi
push edi
push esi
push dword [0x102f878]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x1024ea9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x102f878]
call edi
test eax, eax
je 0x1024ea9
cmp dword [ebp - 4], 8
jne 0x1024ea9
movsx eax, word [ebp - 8]
mov ebx, dword [ebp + 0x10]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
mov esi, eax
movsx eax, word [ebp - 6]
sar esi, 4
imul esi, eax
add esi, esi
cmp esi, ebx
jg 0x1024e4f
mov ebx, esi
test ebx, ebx
jle 0x1024e6e
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [0x102f878]
call edi
test eax, eax
je 0x1024ea9
cmp dword [ebp - 4], ebx
jne 0x1024ea9
cmp dword [0x102f888], 0
movsx eax, word [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
movsx eax, word [ebp - 6]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x1024e92
call fcn.01024d24
test eax, eax
jne 0x1024ea9
mov eax, dword [ebp + 8]
mov ecx, dword [0x102f888]
mov ax, word [ecx + eax*2]
mov ecx, dword [ebp + 0x1c]
mov word [ecx], ax
mov eax, esi
jmp 0x1024eac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1024f9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x1025117
cmp dword [ebp + 0x14], ebx
je 0x1025117
cmp dword [ebp + 0x18], ebx
je 0x1025117
push dword [ebp + 0x1c]
push dword [ebp + 8]
call fcn.01024f6c
mov esi, eax
cmp dword [0x102f99c], ebx
je 0x1025117
cmp dword [0x102f990], esi
jl 0x1025117
cmp esi, ebx
jl 0x1025117
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push 0x102f890
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or eax, 0xffffffff
mov dword [ebp - 4], edi
cmp edi, eax
je 0x102511a
mov eax, dword [0x102f994]
push ebx
lea eax, [eax + esi*4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push eax
push edi
mov dword [ebp + 0x1c], eax
call esi
cmp eax, dword [ebp + 0x1c]
jne 0x102510e
push ebx
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp + 0x1c]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x102510e
cmp dword [ebp + 8], 4
jne 0x102510e
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x102510e
add eax, dword [0x102f998]
push ebx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp + 0x1c], eax
call esi
cmp eax, dword [ebp + 0x1c]
jne 0x102510e
push ebx
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x102510e
cmp dword [ebp + 8], 8
jne 0x102510e
movsx eax, word [ebp - 0xc]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
mov esi, eax
movsx eax, word [ebp - 0xa]
sar esi, 4
imul esi, eax
mov eax, dword [ebp + 0x10]
add esi, esi
cmp esi, eax
jg 0x10250c3
mov eax, esi
push ebx
movzx eax, ax
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x102510e
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jne 0x102510e
cmp esi, dword [ebp + 0x10]
jle 0x10250ed
sub esi, dword [ebp + 0x10]
jmp 0x10250ef
xor esi, esi
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
push dword [ebp - 4]
mov dword [ecx], eax
movsx eax, word [ebp - 0xa]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x102511a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x1025285
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0xffffffff
push esi
mov esi, eax
je 0x10252d4
cmp dword [ebp + 0xc], 0
je 0x10252d4
add esi, dword [0x102f998]
push 0
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x10252d4
push 0
lea eax, [ebp - 4]
push eax
push 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10252d4
cmp dword [ebp - 4], 8
jne 0x10252d4
xor eax, eax
jmp 0x10252d7
or eax, 0xffffffff
pop esi
leave
ret 8
Function at 0x10252e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0xffffffff
push esi
mov esi, eax
je 0x1025330
cmp dword [ebp + 0xc], 0
je 0x1025330
add esi, dword [0x102f998]
push 0
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x1025330
push 0
lea eax, [ebp - 4]
push eax
push 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1025330
cmp dword [ebp - 4], 8
jne 0x1025330
xor eax, eax
jmp 0x1025333
or eax, 0xffffffff
pop esi
leave
ret 8

Function at 0x102533d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x102cd74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
jne 0x102535e
or eax, 0xffffffff
jmp 0x10253cd
push esi
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x10253cc
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
push 0x66
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
pop ebx
je 0x10253ca
cmp dword [ebp - 0x70], 0x66
jne 0x10253ca
push 7
pop ecx
mov edi, 0x1004a60
lea esi, [ebp - 0x6c]
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x10253ca
mov eax, 0xe0
xor ecx, ecx
cmp word [ebp - 0x22], ax
sete cl
mov eax, ecx
jmp 0x10253cc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01026cc5
leave
ret 4