joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422910
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a3c
call fcn.0042a870
mov eax, dword [0x465944]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0
push 2
mov dword [ebp - 0x1a34], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422af4
push edi
push 0x228
lea eax, [ebp - 0x1a2c]
push 0
push eax
call fcn.0042c930
add esp, 0xc
mov dword [ebp - 0x1a30], 0x22c
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x422af0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1a3c], eax
cmp eax, dword [ebp - 0x1a28]
je 0x422ad5
push dword [ebp - 0x1a34]
lea eax, [ebp - 0x1a0c]
push eax
call fcn.0042f6f8
add esp, 8
test eax, eax
jne 0x422ad5
push 0x800
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0042c930
add esp, 0xc
push dword [ebp - 0x1a28]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x422a8f
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0042c930
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x422a84
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.0042c930
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.0042cbeb
add esp, 0x14
test eax, eax
je 0x422a69
push 0x400
lea eax, [ebp - 0x1804]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
lea eax, [ebp - 0x1804]
jbe 0x422a6f
lea eax, [ebp - 0x804]
push 0x400
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00433b17
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x422a95
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00422e80
add esp, 8
test eax, eax
je 0x422ad5
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1a28]
mov dword [ebp - 0x1a38], ecx
cmp dword [esi + 8], eax
je 0x422ac6
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x422ad5
lea ecx, [ebp - 0x1a38]
push ecx
push eax
mov ecx, esi
call fcn.00412110
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov eax, dword [ebp - 0x1a3c]
jne 0x422991
push ebx
call edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a853
mov esp, ebp
pop ebp
ret 8
Function at 0x423280
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2218
call fcn.0042a870
mov eax, dword [0x465944]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x2210], 0
push 0
push eax
mov esi, ecx
call fcn.0042c930
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x103
push eax
push dword [0x4670d4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x2000
lea eax, [ebp - 0x220c]
push 0
push eax
call fcn.0042c930
add esp, 0xc
lea eax, [ebp - 0x2210]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x423383
cmp eax, 0x1fff
ja 0x423383
lea ecx, [ebp - 0x220c]
push ecx
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x423383
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x2214]
push eax
push 0x44ed90
lea eax, [ebp - 0x220c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x423383
mov ecx, dword [ebp - 0x2214]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push esi
call fcn.0040c330
add esp, 0x18
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a853
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0042a853
mov esp, ebp
pop ebp
ret
Function at 0x423fe0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x465944]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x424033
push esi
push 0x423ec0
push 0
push ebx
call dword [sym.imp.GDI32.dll_EnumFontFamiliesW]
jmp 0x42403c
mov eax, 0x100
or word [esi + 0xc], ax
movzx ecx, word [esi + 0xc]
movzx eax, cx
test ecx, 0x100
je 0x42405c
push 0x4525d8
lea ecx, [esi + 8]
call fcn.0040ff70
movzx eax, word [esi + 0xc]
movzx ecx, ax
test al, 0x10
je 0x424074
push str.Tahoma
lea ecx, [esi + 8]
call fcn.0040ff70
movzx ecx, word [esi + 0xc]
test cl, 1
je 0x424086
push 0x4525bc
lea ecx, [esi + 8]
call fcn.0040ff70
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi + 8]
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 4], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.0042a853
mov esp, ebp
pop ebp
ret

Function at 0x426211
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x426260
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x10]
push edi
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426260
cmp esi, dword [ebp + 0x10]
je 0x42625b
push 0x44e644
push 1
push edi
push edi
call fcn.0042586d
jmp 0x42626e
xor eax, eax
inc eax
jmp 0x426273
mov eax, 0x44e644
push eax
push eax
push edi
push edi
call fcn.004258ba
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x427460
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42748a
mov eax, 0x44e644
push eax
push eax
push 0
push 0
call fcn.004258ba
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x4281cc
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x42870d
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x428b59
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x44ca85
call fcn.0042ac0c
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.0042899d
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x428ba5
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0042abe6
ret 4
push 0x461314
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.0042b86a
int3

Function at 0x428d71
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.00428f05
mov edi, eax
test edi, edi
je 0x428dfc
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x428dac
mov esi, edi
jmp 0x428de8
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x428de1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x428dd4
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.00428ea0
jmp 0x428de8
push 0x452e10
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x428de8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.00428f05
mov edi, eax
test edi, edi
jne 0x428da1
test esi, esi
jne 0x428e11
mov ecx, dword [ebx]
add ecx, 8
call fcn.0042908e
mov esi, eax
test esi, esi
je 0x428e11
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000196a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x100fe040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
mov esi, edx
push 0x44
mov dword [ebp - 0x6c], esi
mov ebx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
pop edi
push edi
push 0
push eax
call fcn.10071590
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x28], 1
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], edi
push eax
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100019f1
push 0xffffffffffffffff
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x68]
call esi
xor eax, eax
jmp 0x10001a3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
mov esi, eax
lea eax, [ebp - 0x58]
push eax
push 0x400
push esi
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0x58]
mov ecx, str._null_
test ebx, ebx
mov eax, ecx
cmovne eax, ebx
push esi
push eax
mov eax, dword [ebp - 0x6c]
test eax, eax
cmovne ecx, eax
push ecx
push str.cimg::system___:_Command__s__module_name__s__failed_with_error__lu:__s
call fcn.1000191a
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006effe
leave
ret
Function at 0x1000329b
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
mov esi, 0x100b9a92
push edi
cmovne esi, eax
mov edi, ecx
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100032b6
sub ecx, edx
lea ebx, [ecx + 1]
test ebx, ebx
je 0x100032e1
push ebx
call fcn.1006f571
push ebx
push esi
push eax
mov dword [ebp - 4], eax
call fcn.10071010
mov esi, dword [ebp - 4]
add esp, 0x10
xor ebx, ebx
jmp 0x100032e5
xor ebx, ebx
mov esi, ebx
cmp dword [edi + 0x18], ebx
je 0x100032f6
cmp dword [edi + 0x1c], ebx
je 0x100032f6
mov ecx, edi
call fcn.100033b9
call fcn.10002a16
mov ecx, dword [ebp + 8]
cmp eax, ecx
cmovb ecx, eax
mov dword [edi + 0x18], ecx
call fcn.10002a53
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
push 3
cmovb ecx, eax
mov word [edi + 0xbc], 0x100
cmp dword [ebp + 0x14], 4
pop eax
cmovb eax, dword [ebp + 0x14]
mov dword [edi + 0x20], eax
mov al, byte [ebp + 0x18]
mov byte [edi + 0x30], al
mov eax, 0x80000000
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov al, byte [ebp + 0x1c]
mov dword [edi + 0x1c], ecx
mov ecx, edi
mov byte [edi + 0x60], al
mov dword [edi + 0x34], esi
call fcn.100029bf
cmp byte [edi + 0x30], 0
je 0x1000335b
mov ecx, edi
call fcn.10003207
push 8
call fcn.1006f571
pop ecx
mov esi, eax
push ebx
push ebx
push ebx
mov dword [esi], edi
mov eax, dword [edi + 0x34]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0xc8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x10002e4f
push ebx
push ebx
mov dword [edi + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [edi + 0xc4]
mov dword [edi + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x100033b9
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x10003471
cmp dword [esi + 0x1c], ebx
je 0x10003471
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push dword [esi + 0xc0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xdc]
call fcn.1006f00c
push dword [esi + 0x34]
call fcn.1006f00c
pop ecx
pop ecx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0x34], ebx
cmp byte [esi + 0x30], bl
je 0x1000343b
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x1000341e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0xd0], ebx
cmp word [esi + 0x124], bx
je 0x1000343b
push ebx
lea eax, [esi + 0xe0]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
and dword [esi + 0x2c], ebx
mov eax, 0x80000000
and dword [esi + 0x28], ebx
mov ecx, esi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
mov byte [esi + 0x30], bl
mov byte [esi + 0x60], 1
mov dword [esi + 0x34], ebx
call fcn.100029bf
mov eax, esi
pop esi
pop ebx
ret
pop esi
pop ebx
jmp fcn.100029bf

Function at 0x100038a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000391d
xor eax, eax
push eax
push eax
push esi
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
je 0x1000391d
sub esp, 0xc
lea ecx, [esp + 0x1c]
push ebx
call fcn.10009514
push ebx
push dword [esp + 0x28]
push esi
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1000390c
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [esp + 0x20], 0
jne 0x1000391d
push dword [esp + 0x24]
call fcn.1006f00c
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003926
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100ff8cc]
push ebx
push esi
xor ebx, ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101005e4]
push edi
cmp eax, dword [ecx + 4]
jle 0x10003992
mov esi, 0x101005e4
push esi
call fcn.1006f09b
cmp dword [0x101005e4], 0xffffffff
pop ecx
jne 0x10003992
push 0x100a4743
mov dword [0x10100458], ebx
mov dword [0x1010045c], ebx
mov dword [0x10100460], ebx
mov dword [0x10100464], ebx
mov byte [0x10100468], bl
mov dword [0x1010046c], ebx
call fcn.1006f549
pop ecx
push esi
call fcn.1006f04a
pop ecx
call fcn.10001816
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x1010046c], ebx
jne 0x10003a0d
push 1
push 1
push 1
push 0x104
mov ecx, 0x10100458
call fcn.10009c26
mov eax, dword [0x1010046c]
push ebx
push 0x26
mov byte [eax], bl
push dword [0x1010046c]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x10003a0d
push str.PROGRAMFILES
call fcn.100807a2
pop ecx
test eax, eax
je 0x100039ff
push 0x103
push eax
push dword [0x1010046c]
call fcn.10079460
add esp, 0xc
jmp 0x10003a0d
mov edi, dword [0x1010046c]
mov esi, str.C:PROGRA1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10001816
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x1010046c]
pop edi
pop esi
pop ebx
ret
Function at 0x100089c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100089e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x10009030
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x100089eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100fe040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 8], ebx
xor eax, eax
push 0x23ed
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.1002508a
mov esi, eax
mov dword [esp], 0x23ed
push edi
mov dword [ebx], esi
push esi
lea eax, [esi + 0x23ed]
mov dword [ebx + 8], eax
call fcn.10071590
lea eax, [esi + 0x23ed]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 7
jbe 0x10008a56
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
mov esi, eax
push 0x2cd94
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x23ed
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006effe
leave
ret
Function at 0x10024c84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov eax, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x10024cfd
cmp dword [ebp + 8], 0
je 0x10024cfd
test edi, edi
jne 0x10024cb3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, edx
push dword [ebp + 8]
mov esi, 0x3f00000
cmp edi, esi
cmovb esi, edi
add eax, ebx
push esi
push 1
push eax
call fcn.100800b4
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x10024ce2
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x10024cb7
test edi, edi
mov edi, dword [esp + 0x14]
je 0x10024cf9
push edi
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.1000191a
add esp, 0xc
mov eax, ebx
jmp 0x10024cac
push eax
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f1de8
mov ecx, 0x100b9a92
cmovbe eax, ecx
push eax
call fcn.10001789
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.100014fe
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fcb88
push eax
call fcn.10070ee7
int3

Function at 0x10024d3b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov eax, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x10024db4
cmp dword [ebp + 8], 0
je 0x10024db4
test edi, edi
jne 0x10024d6a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, edx
push dword [ebp + 8]
mov esi, 0x3f00000
cmp edi, esi
cmovb esi, edi
add eax, ebx
push esi
push 1
push eax
call fcn.100800b4
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x10024d99
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x10024d6e
test edi, edi
mov edi, dword [esp + 0x14]
je 0x10024db0
push edi
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.1000191a
add esp, 0xc
mov eax, ebx
jmp 0x10024d63
push eax
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f1de8
mov ecx, 0x100b9a92
cmovbe eax, ecx
push eax
call fcn.1000178f
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.100014fe
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fcb88
push eax
call fcn.10070ee7
int3
Function at 0x100253ec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10025472
cmp dword [ebp + 8], 0
je 0x10025472
test edi, edi
jne 0x10025419
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
lea eax, [ebx + ebx]
mov esi, 0x1f80000
cmp eax, 0x3f00000
lea eax, [ecx + edi*2]
cmovb esi, ebx
push esi
push 2
push eax
call fcn.100800b4
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1002544f
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1002541d
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1002546e
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.1000191a
add esp, 0xc
mov eax, esi
jmp 0x10025412
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f1de8
mov ecx, 0x100b9a92
cmovbe eax, ecx
push eax
call fcn.10001795
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.100014fe
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fcb88
push eax
call fcn.10070ee7
int3

Function at 0x100254cf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10025557
cmp dword [ebp + 8], 0
je 0x10025557
test edi, edi
jne 0x100254fc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
mov eax, ebx
mov esi, 0xfc0000
shl eax, 2
cmp eax, 0x3f00000
lea eax, [ecx + edi*4]
cmovb esi, ebx
push esi
push 4
push eax
call fcn.100800b4
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x10025534
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x10025500
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x10025553
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.1000191a
add esp, 0xc
mov eax, esi
jmp 0x100254f5
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f1de8
mov ecx, 0x100b9a92
cmovbe eax, ecx
push eax
call fcn.100017a1
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.100014fe
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fcb88
push eax
call fcn.10070ee7
int3