joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f1ae0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101db298
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x100f1b12
call fcn.100f53f0
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x100f1b23
mov ecx, SysReAllocStringLen
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x100f1b78
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x100f1b5e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x100f1ca4
cmp dword [esp + 0x18], ebx
jne 0x100f1b78
cmp dword [esp + 0x14], ebx
je 0x100f1ca4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x100f1b89
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.100cbc80
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x100f1bcf
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x100f1bcf
call fcn.100f28a0
test eax, eax
je 0x100f1bcf
push str.Global_
lea ecx, [esp + 0x14]
call fcn.100cc900
push ebx
lea ecx, [esp + 0x14]
call fcn.100cd330
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x100f1c7e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x100f1c0b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x100f1c7e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x100f1c59
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x100f1c5c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x100f1c54
mov dword [esi + 0x10], ebx
jmp 0x100f1c5c
mov dword [esi + 0x10], ecx
jmp 0x100f1c5c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.100cc680
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.100cc680
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x100f2180
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x1026c808]
sub esp, 0x114
test eax, eax
jne 0x100f22cd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x1026c5a0
mov dword [0x1026c808], 1
mov dword [0x1026c5a0], 0x114
call esi
mov edx, dword [0x1026c5b0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10247e10], eax
je 0x100f22a8
push ebx
push 0x1026c6b8
mov dword [0x1026c6b8], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10248cfc
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x1026c7fc], eax
call edi
mov dword [0x1026c800], eax
mov eax, dword [0x1026c7fc]
test eax, eax
push 0x1026c7d8
je 0x100f2224
call eax
jmp 0x100f222a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1026c6bc]
cmp eax, 6
jae 0x100f2242
cmp eax, 5
jne 0x100f2256
cmp dword [0x1026c6c0], 2
jb 0x100f2256
cmp word [0x1026c7d8], 9
jne 0x100f2256
mov dword [0x1026c594], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100f2274
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x1026c804], edx
jmp 0x100f227a
mov edx, dword [0x1026c804]
test edx, edx
je 0x100f22a8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x100f22a8
mov ecx, dword [esp + 0x14]
mov dword [0x1026c5ac], ecx
push 0x1026c5a8
push 0x1026c5a4
call fcn.100f2670
add esp, 8
call fcn.100f22e0
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100f3500
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020e048
push 0x101c1ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x1026c80c]
xor ebx, ebx
cmp eax, ebx
jne 0x100f3660
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100f365b
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x10247ab0
lea edx, [ebp - 0x42c]
push edx
call fcn.100987f3
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.10063988
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f365b
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100f3652
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10248ef0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f3652
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026c80c], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f3652
push esi
call fcn.100639b7
add esp, 4
mov eax, dword [0x1026c80c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f3bf0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x1026ca80]
test eax, eax
jne 0x100f3cae
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x1026c820
mov dword [0x1026ca80], 1
mov dword [0x1026c820], 0x114
call esi
mov edx, dword [0x1026c830]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10249068], eax
je 0x100f3ca2
push 0x1026c938
mov dword [0x1026c938], 0x11c
call esi
push 0x10248cfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x1026ca7c], eax
push 0x1026ca58
je 0x100f3c70
call eax
jmp 0x100f3c76
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1026c93c]
cmp eax, 6
jae 0x100f3c8e
cmp eax, 5
jne 0x100f3ca2
cmp dword [0x1026c940], 2
jb 0x100f3ca2
cmp word [0x1026ca58], 9
jne 0x100f3ca2
mov dword [0x1026c814], 1
call fcn.100f3cc0
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x100f4300
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020e058
push 0x101c1ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x1026ca84]
xor ebx, ebx
cmp eax, ebx
jne 0x100f4460
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100f445b
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x10247ab0
lea edx, [ebp - 0x42c]
push edx
call fcn.100987f3
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.10063988
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f445b
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100f4452
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10248ef0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f4452
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026ca84], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f4452
push esi
call fcn.100639b7
add esp, 4
mov eax, dword [0x1026ca84]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f4970
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x100f49bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100f49bb
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.10063988
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.10063988
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x100f4a00
test esi, esi
je 0x100f4a11
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x100f4a0d
push esi
call fcn.100639b7
add esp, 4
test ebx, ebx
jne 0x100f4a20
mov edi, dword [edi]
test edi, edi
je 0x100f4a20
push edi
call fcn.100639b7
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100f9b20
Capabilities:
Get file size

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x1026cb38], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x1026cb40], eax
cmp ebx, 0xffffffff
je 0x100f9d19
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x100f9d19
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebp
push eax
push ebx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
push edi
push esi
call fcn.101489b0
add esp, 0xc
test eax, eax
je 0x100f9cee
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push ebp
push ebx
call esi
mov edx, dword [esp + 0x58]
push ebp
push ebp
push ebp
push edx
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
jne 0x100f9bb1
cmp edi, ebp
je 0x100f9c99
cmp eax, ebp
mov ebx, 0x1000
jne 0x100f9bc0
cmp edi, ebx
jae 0x100f9bc0
mov ebx, edi
push ebx
call fcn.10063988
add esp, 4
mov esi, eax
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push ecx
mov dword [esp + 0x34], ebp
call fcn.10147090
add esp, 0x18
test eax, eax
je 0x100f9c36
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x100f9c11
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x100f9c73
lea edx, [esp + 0x24]
push ebp
push edx
push eax
mov eax, dword [esp + 0x64]
push esi
push eax
mov dword [esp + 0x38], ebp
call fcn.10147190
add esp, 0x14
test eax, eax
je 0x100f9c4c
cmp dword [esp + 0x14], ebp
je 0x100f9bcb
jmp 0x100f9c73
mov dword [0x1026cb38], 0xd
mov dword [0x1026cb3c], 0x54c
jmp 0x100f9c60
mov dword [0x1026cb38], 0xe
mov dword [0x1026cb3c], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026cb40], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.100639b7
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x100f9ce2
cmp dword [esp + 0x18], ebp
jne 0x100f9ce2
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x100f9ce2
lea edx, [esp + 0x28]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
push 0x28
mov dword [esp + 0x2c], ebp
push edx
push ebx
rep stosd dword es:[edi], eax
call fcn.10146c10
add esp, 0xc
test eax, eax
je 0x100f9ce2
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.10146c50
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026cb38], 0x25
mov dword [0x1026cb3c], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026cb40], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026cb38], 1
mov dword [0x1026cb3c], 0x51d
call edi
pop edi
pop esi
mov dword [0x1026cb40], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x100faf00
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 1
mov dword [esp + 0x30], 0
call fcn.100fba20
add esp, 0x2c
test eax, eax
je 0x100fafe8
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x100faf74
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.10126670
mov edx, dword [0x1026d370]
mov ecx, dword [0x1026d374]
add esp, 8
mov dword [0x1026cb38], edx
mov edx, dword [0x1026d378]
mov dword [0x1026cb3c], ecx
mov dword [0x1026cb40], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x100fafae
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.1010c8f0
mov ecx, dword [0x1026cbe0]
mov edx, dword [0x1026cbe4]
add esp, 8
mov dword [0x1026cb38], ecx
mov ecx, dword [0x1026cbe8]
mov dword [0x1026cb3c], edx
mov dword [0x1026cb40], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x100fafee
call fcn.10142bd0
mov ecx, dword [0x1026d980]
mov edx, dword [0x1026d984]
add esp, 8
mov dword [0x1026cb38], ecx
mov ecx, dword [0x1026d988]
mov dword [0x1026cb3c], edx
mov dword [0x1026cb40], ecx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
pop ecx
ret

Function at 0x100fb470
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x1026cbec]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100fb492
mov eax, dword [0x1026d37c]
test eax, eax
jne 0x100fb492
mov eax, dword [0x1026d98c]
test eax, eax
je 0x100fb496
test ebx, ebx
je 0x100fb4d0
mov eax, dword [0x10249a78]
or esi, 0xffffffff
cmp eax, esi
jne 0x100fb4d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x10249a78], eax
je 0x100fb4d0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100fb4d0
mov eax, dword [0x10249a78]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x10249a78], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.1010d2f0
add esp, 0xc
test eax, eax
je 0x100fb513
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.10129c00
add esp, 0x10
test eax, eax
je 0x100fb513
push ebx
push esi
push edi
call fcn.10138f80
add esp, 0xc
test eax, eax
je 0x100fb513
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x101004d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
je 0x1010063b
cmp esi, 0xffffffff
je 0x1010063b
cmp dword [0x1026cb48], ebp
je 0x1010063b
mov ecx, dword [0x1026cb50]
cmp ecx, ebp
je 0x1010063b
mov eax, dword [0x1026cb4c]
cmp eax, ebp
jge 0x10100519
neg eax
cmp ecx, eax
ja 0x1010063b
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.10063988
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x10100630
mov ecx, dword [0x1026cb50]
xor eax, eax
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
mov dword [esp + 0x14], ebp
rep stosb byte es:[edi], al
mov ebx, dword [0x1026cb50]
mov edi, dword [0x1026cb4c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
xor ecx, ecx
mov dword [esp + 0x1c], eax
test edi, edi
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
push edi
push esi
call ebp
cmp eax, 0xffffffff
je 0x10100622
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x101005b5
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.10147090
add esp, 0x18
jmp 0x101005c7
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push esi
call ebp
test edi, edi
je 0x10100622
mov ebx, dword [0x1026caf4]
xor edx, edx
test ebx, ebx
jle 0x10100622
mov ebp, dword [0x1026caf0]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x10100608
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1010061a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x10100622
jmp 0x101005ee
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100639b7
add esp, 4
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x1010a880
Capabilities:
Get file size

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.10108de0
push eax
call fcn.1014a800
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1010a8e5
mov dword [0x1026cbe0], 0xc
mov dword [0x1026cbe4], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026cbe8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.10063988
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010a949
mov dword [0x1026cbe0], 0x21
mov dword [0x1026cbe4], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026cbe8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x1010aa33
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x1010a9ca
test eax, eax
jne 0x1010a9ca
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call fcn.10147190
add esp, 0x14
test eax, eax
je 0x1010aa49
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.10147c90
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x1010aa68
mov dword [0x1026cbe0], 0x11
mov dword [0x1026cbe4], 0x14cb
jmp 0x1010aa5d
mov dword [0x1026cbe0], 0xe
mov dword [0x1026cbe4], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026cbe8], eax
push esi
call fcn.100639b7
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x1010c8f0
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x1026cbe0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026cbe8], eax
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov esi, dword [esp + 0x394]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call fcn.10109070
add esp, 8
test eax, eax
jne 0x1010c953
mov ecx, dword [esp + 0x398]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
add esp, 0x388
ret
mov eax, dword [esp + 0x398]
test eax, eax
je 0x1010c964
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret