joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100032ea
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, 0x100b85e0
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 0x10003305
sub ecx, edx
lea ebx, [ecx + 1]
test ebx, ebx
je 0x10003330
push ebx
call fcn.100481a8
push ebx
push esi
push eax
mov dword [ebp - 4], eax
call fcn.10049850
mov esi, dword [ebp - 4]
add esp, 0x10
xor ebx, ebx
jmp 0x10003334
xor ebx, ebx
mov esi, ebx
cmp dword [edi + 0x18], ebx
je 0x10003345
cmp dword [edi + 0x1c], ebx
je 0x10003345
mov ecx, edi
call fcn.10003408
call fcn.10002a65
mov ecx, dword [ebp + 8]
cmp eax, ecx
cmovb ecx, eax
mov dword [edi + 0x18], ecx
call fcn.10002aa2
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.10002a0e
cmp byte [edi + 0x30], 0
je 0x100033aa
mov ecx, edi
call fcn.10003256
push 8
call fcn.100481a8
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 0x10002e9e
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 0x10003408
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x100034c0
cmp dword [esi + 0x1c], ebx
je 0x100034c0
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.10047c43
push dword [esi + 0x34]
call fcn.10047c43
pop ecx
pop ecx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0x34], ebx
cmp byte [esi + 0x30], bl
je 0x1000348a
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x1000346d
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0xd0], ebx
cmp word [esi + 0x124], bx
je 0x1000348a
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.10002a0e
mov eax, esi
pop esi
pop ebx
ret
pop esi
pop ebx
jmp fcn.10002a0e

Function at 0x100038f6
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 0x1000396c
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 0x1000396c
sub esp, 0xc
lea ecx, [esp + 0x1c]
push ebx
call fcn.100064ef
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 0x1000395b
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [esp + 0x20], 0
jne 0x1000396c
push dword [esp + 0x24]
call fcn.10047c43
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003975
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10102c74]
push ebx
push esi
xor ebx, ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10103e48]
push edi
cmp eax, dword [ecx + 8]
jle 0x100039e1
mov esi, 0x10103e48
push esi
call fcn.10047cd2
cmp dword [0x10103e48], 0xffffffff
pop ecx
jne 0x100039e1
push 0x1008793f
mov dword [0x10103de8], ebx
mov dword [0x10103dec], ebx
mov dword [0x10103df0], ebx
mov dword [0x10103df4], ebx
mov byte [0x10103df8], bl
mov dword [0x10103dfc], ebx
call fcn.10048180
pop ecx
push esi
call fcn.10047c81
pop ecx
call fcn.10001865
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x10103dfc], ebx
jne 0x10003a5c
push 1
push 1
push 1
push 0x104
mov ecx, 0x10103de8
call fcn.10006c01
mov eax, dword [0x10103dfc]
push ebx
push 0x26
mov byte [eax], bl
push dword [0x10103dfc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x10003a5c
push str.PROGRAMFILES
call fcn.10056358
pop ecx
test eax, eax
je 0x10003a4e
push 0x103
push eax
push dword [0x10103dfc]
call fcn.1004f870
add esp, 0xc
jmp 0x10003a5c
mov edi, dword [0x10103dfc]
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.10001865
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x10103dfc]
pop edi
pop esi
pop ebx
ret
Function at 0x10006010
Capabilities:
Create thread

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

Function at 0x1000603b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100ff440]
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 0x263e
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.10021500
mov esi, eax
mov dword [esp], 0x263e
push edi
mov dword [ebx], esi
push esi
lea eax, [esi + 0x263e]
mov dword [ebx + 8], eax
call fcn.100496f0
lea eax, [esi + 0x263e]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 7
jbe 0x100060a6
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 0x3431f
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x263e
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.10047c35
leave
ret
Function at 0x1001f5aa
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 0x1001f623
cmp dword [ebp + 8], 0
je 0x1001f623
test edi, edi
jne 0x1001f5d9
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.10055e1e
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x1001f608
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x1001f5dd
test edi, edi
mov edi, dword [esp + 0x14]
je 0x1001f61f
push edi
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, ebx
jmp 0x1001f5d2
push eax
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.100017d8
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3

Function at 0x1001f661
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 0x1001f6da
cmp dword [ebp + 8], 0
je 0x1001f6da
test edi, edi
jne 0x1001f690
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.10055e1e
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x1001f6bf
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x1001f694
test edi, edi
mov edi, dword [esp + 0x14]
je 0x1001f6d6
push edi
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, ebx
jmp 0x1001f689
push eax
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.100017de
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3
Function at 0x1001fb21
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 0x1001fba7
cmp dword [ebp + 8], 0
je 0x1001fba7
test edi, edi
jne 0x1001fb4e
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.10055e1e
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1001fb84
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1001fb52
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1001fba3
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, esi
jmp 0x1001fb47
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.100017e4
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3

Function at 0x1001fc04
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 0x1001fc8c
cmp dword [ebp + 8], 0
je 0x1001fc8c
test edi, edi
jne 0x1001fc31
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.10055e1e
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1001fc69
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1001fc35
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1001fc88
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, esi
jmp 0x1001fc2a
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.100017f0
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3
Function at 0x1001fce1
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 0x1001fd69
cmp dword [ebp + 8], 0
je 0x1001fd69
test edi, edi
jne 0x1001fd0e
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.10055e1e
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1001fd46
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1001fd12
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1001fd65
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, esi
jmp 0x1001fd07
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.10020418
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3

Function at 0x1001fda7
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 0x1001fe2f
cmp dword [ebp + 8], 0
je 0x1001fe2f
test edi, edi
jne 0x1001fdd4
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.10055e1e
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1001fe0c
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1001fdd8
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1001fe2b
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, esi
jmp 0x1001fdcd
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.100017f6
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3
Function at 0x1001fe6d
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 0x1001fef3
cmp dword [ebp + 8], 0
je 0x1001fef3
test edi, edi
jne 0x1001fe9a
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.10055e1e
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1001fed0
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1001fe9e
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1001feef
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, esi
jmp 0x1001fe93
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.100017ea
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3

Function at 0x1001ff31
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 0x1001ffb9
cmp dword [ebp + 8], 0
je 0x1001ffb9
test edi, edi
jne 0x1001ff5e
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, 0x7e0000
shl eax, 3
cmp eax, 0x3f00000
lea eax, [ecx + edi*8]
cmovb esi, ebx
push esi
push 8
push eax
call fcn.10055e1e
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1001ff96
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1001ff62
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1001ffb5
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, esi
jmp 0x1001ff57
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.10001808
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3
Function at 0x1002001a
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 0x100200a2
cmp dword [ebp + 8], 0
je 0x100200a2
test edi, edi
jne 0x10020047
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.10055e1e
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1002007f
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1002004b
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1002009e
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, esi
jmp 0x10020040
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.1000180e
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3

Function at 0x10020110
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 0x10020198
cmp dword [ebp + 8], 0
je 0x10020198
test edi, edi
jne 0x1002013d
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, 0x7e0000
shl eax, 3
cmp eax, 0x3f00000
lea eax, [ecx + edi*8]
cmovb esi, ebx
push esi
push 8
push eax
call fcn.10055e1e
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x10020175
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x10020141
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x10020194
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, esi
jmp 0x10020136
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.100017fc
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3
Function at 0x100201d6
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 0x1002025e
cmp dword [ebp + 8], 0
je 0x1002025e
test edi, edi
jne 0x10020203
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, 0x7e0000
shl eax, 3
cmp eax, 0x3f00000
lea eax, [ecx + edi*8]
cmovb esi, ebx
push esi
push 8
push eax
call fcn.10055e1e
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1002023b
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x10020207
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1002025a
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10001969
add esp, 0xc
mov eax, esi
jmp 0x100201fc
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x100f0920
mov ecx, 0x100b85e0
cmovbe eax, ecx
push eax
call fcn.10001802
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.1000154d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x100fc024
push eax
call fcn.10049dd0
int3

Function at 0x10025650
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
cmp eax, 0xffffffff
jne 0x10025677
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.10025d60
add esp, 8
xor eax, eax
ret
mov dword [ecx], 1
mov eax, 1
ret

Function at 0x10025a30
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x10100610], 0
jne 0x10025add
push 0x2220
push 0
push 0x10100610
call fcn.100496f0
movq xmm0, qword [section..data]
add esp, 0xc
mov eax, dword [0x100fe008]
movq qword [0x10100614], xmm0
mov dword [0x1010061c], eax
call fcn.10025fb0
test eax, eax
je 0x10025ae3
push 0x101018bc
call fcn.10025630
add esp, 4
test eax, eax
je 0x10025ae3
push 0x101018ac
call fcn.10025650
add esp, 4
test eax, eax
je 0x10025ae3
push 0x101018b4
call fcn.10025650
add esp, 4
test eax, eax
je 0x10025ae3
push 0x10102830
push 0x101018ac
call fcn.10025700
add esp, 8
call fcn.100277e0
mov dword [0x10100610], 1
call fcn.100291d0
mov dword [0x101018d8], eax
mov dword [0x101018dc], edx
call fcn.10026f20
mov eax, 1
ret
call fcn.10025b10
xor eax, eax
ret