joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eedb0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x10265618]
sub esp, 0x114
test eax, eax
jne 0x100eeefd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x102653b0
mov dword [0x10265618], 1
mov dword [0x102653b0], 0x114
call esi
mov edx, dword [0x102653c0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10240db8], eax
je 0x100eeed8
push ebx
push 0x102654c8
mov dword [0x102654c8], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10241ca4
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 [0x1026560c], eax
call edi
mov dword [0x10265610], eax
mov eax, dword [0x1026560c]
test eax, eax
push 0x102655e8
je 0x100eee54
call eax
jmp 0x100eee5a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x102654cc]
cmp eax, 6
jae 0x100eee72
cmp eax, 5
jne 0x100eee86
cmp dword [0x102654d0], 2
jb 0x100eee86
cmp word [0x102655e8], 9
jne 0x100eee86
mov dword [0x102653a4], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100eeea4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x10265614], edx
jmp 0x100eeeaa
mov edx, dword [0x10265614]
test edx, edx
je 0x100eeed8
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 0x100eeed8
mov ecx, dword [esp + 0x14]
mov dword [0x102653bc], ecx
push 0x102653b8
push 0x102653b4
call fcn.100ef2a0
add esp, 8
call fcn.100eef10
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100f0130
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10206ed8
push 0x101bb1a0
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 [0x1026561c]
xor ebx, ebx
cmp eax, ebx
jne 0x100f0290
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 0x100f028b
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 0x10240a70
lea edx, [ebp - 0x42c]
push edx
call fcn.10096293
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.1006151c
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f028b
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 0x100f0282
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10241e98
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f0282
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026561c], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f0282
push esi
call fcn.1006154b
add esp, 4
mov eax, dword [0x1026561c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, dword [0x10265890]
test eax, eax
jne 0x100f08de
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x10265630
mov dword [0x10265890], 1
mov dword [0x10265630], 0x114
call esi
mov edx, dword [0x10265640]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10242010], eax
je 0x100f08d2
push 0x10265748
mov dword [0x10265748], 0x11c
call esi
push 0x10241ca4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x1026588c], eax
push 0x10265868
je 0x100f08a0
call eax
jmp 0x100f08a6
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1026574c]
cmp eax, 6
jae 0x100f08be
cmp eax, 5
jne 0x100f08d2
cmp dword [0x10265750], 2
jb 0x100f08d2
cmp word [0x10265868], 9
jne 0x100f08d2
mov dword [0x10265624], 1
call fcn.100f08f0
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x100f0f30
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10206ee8
push 0x101bb1a0
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 [0x10265894]
xor ebx, ebx
cmp eax, ebx
jne 0x100f1090
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 0x100f108b
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 0x10240a70
lea edx, [ebp - 0x42c]
push edx
call fcn.10096293
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.1006151c
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f108b
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 0x100f1082
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10241e98
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f1082
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x10265894], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f1082
push esi
call fcn.1006154b
add esp, 4
mov eax, dword [0x10265894]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f3640
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 [0x102658e0], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x102658e8], eax
cmp ebx, 0xffffffff
je 0x100f3839
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x100f3839
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.10142460
add esp, 0xc
test eax, eax
je 0x100f380e
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 0x100f36d1
cmp edi, ebp
je 0x100f37b9
cmp eax, ebp
mov ebx, 0x1000
jne 0x100f36e0
cmp edi, ebx
jae 0x100f36e0
mov ebx, edi
push ebx
call fcn.1006151c
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.10140b40
add esp, 0x18
test eax, eax
je 0x100f3756
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x100f3731
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x100f3793
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.10140c40
add esp, 0x14
test eax, eax
je 0x100f376c
cmp dword [esp + 0x14], ebp
je 0x100f36eb
jmp 0x100f3793
mov dword [0x102658e0], 0xd
mov dword [0x102658e4], 0x54c
jmp 0x100f3780
mov dword [0x102658e0], 0xe
mov dword [0x102658e4], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102658e8], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.1006154b
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x100f3802
cmp dword [esp + 0x18], ebp
jne 0x100f3802
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x100f3802
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.101406c0
add esp, 0xc
test eax, eax
je 0x100f3802
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.10140700
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x102658e0], 0x25
mov dword [0x102658e4], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x102658e8], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x102658e0], 1
mov dword [0x102658e4], 0x51d
call edi
pop edi
pop esi
mov dword [0x102658e8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x100f4a20
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.100f5540
add esp, 0x2c
test eax, eax
je 0x100f4b08
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x100f4a94
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.101201b0
mov edx, dword [0x10266118]
mov ecx, dword [0x1026611c]
add esp, 8
mov dword [0x102658e0], edx
mov edx, dword [0x10266120]
mov dword [0x102658e4], ecx
mov dword [0x102658e8], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x100f4ace
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.10106440
mov ecx, dword [0x10265988]
mov edx, dword [0x1026598c]
add esp, 8
mov dword [0x102658e0], ecx
mov ecx, dword [0x10265990]
mov dword [0x102658e4], edx
mov dword [0x102658e8], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x100f4b0e
call fcn.1013c670
mov ecx, dword [0x10266728]
mov edx, dword [0x1026672c]
add esp, 8
mov dword [0x102658e0], ecx
mov ecx, dword [0x10266730]
mov dword [0x102658e4], edx
mov dword [0x102658e8], 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 0x100f4f90
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x10265994]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100f4fb2
mov eax, dword [0x10266124]
test eax, eax
jne 0x100f4fb2
mov eax, dword [0x10266734]
test eax, eax
je 0x100f4fb6
test ebx, ebx
je 0x100f4ff0
mov eax, dword [0x1024212c]
or esi, 0xffffffff
cmp eax, esi
jne 0x100f4ff0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x1024212c], eax
je 0x100f4ff0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100f4ff0
mov eax, dword [0x1024212c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1024212c], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.10106e40
add esp, 0xc
test eax, eax
je 0x100f5033
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.10123730
add esp, 0x10
test eax, eax
je 0x100f5033
push ebx
push esi
push edi
call fcn.10132a70
add esp, 0xc
test eax, eax
je 0x100f5033
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100f9ff0
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 0x100fa15b
cmp esi, 0xffffffff
je 0x100fa15b
cmp dword [0x102658f0], ebp
je 0x100fa15b
mov ecx, dword [0x102658f8]
cmp ecx, ebp
je 0x100fa15b
mov eax, dword [0x102658f4]
cmp eax, ebp
jge 0x100fa039
neg eax
cmp ecx, eax
ja 0x100fa15b
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.1006151c
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x100fa150
mov ecx, dword [0x102658f8]
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 [0x102658f8]
mov edi, dword [0x102658f4]
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 0x100fa142
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x100fa0d5
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.10140b40
add esp, 0x18
jmp 0x100fa0e7
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 0x100fa142
mov ebx, dword [0x1026589c]
xor edx, edx
test ebx, ebx
jle 0x100fa142
mov ebp, dword [0x10265898]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x100fa128
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100fa13a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x100fa142
jmp 0x100fa10e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1006154b
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 0x101043c0
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.10102920
push eax
call fcn.101442b0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x10104425
mov dword [0x10265988], 0xc
mov dword [0x1026598c], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10265990], 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.1006151c
mov esi, eax
add esp, 4
test esi, esi
jne 0x10104489
mov dword [0x10265988], 0x21
mov dword [0x1026598c], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10265990], 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 0x10104573
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 0x1010450a
test eax, eax
jne 0x1010450a
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.10140c40
add esp, 0x14
test eax, eax
je 0x10104589
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.10141740
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x101045a8
mov dword [0x10265988], 0x11
mov dword [0x1026598c], 0x14cb
jmp 0x1010459d
mov dword [0x10265988], 0xe
mov dword [0x1026598c], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10265990], eax
push esi
call fcn.1006154b
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x10106440
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x10265988], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10265990], 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.10102bb0
add esp, 8
test eax, eax
jne 0x101064a3
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 0x101064b4
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x10107440
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x10265988], ebp
call ebx
mov dword [0x10265990], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x1010757c
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.1010e330
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x101074e5
test edi, edi
jne 0x101074e5
test ebp, ebp
jne 0x101074e5
test ebx, ebx
jne 0x101074e5
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x101074e5
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x10107571
cmp eax, 3
jne 0x10107571
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.101416f0
add esp, 0xc
test eax, eax
je 0x1010756d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x10107515
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x10107520
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x1010752c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x1010754b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x1010755d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x1010756d
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x1010760d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x1010760d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10107628
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10107606
mov dword [0x10265988], 0xd
mov dword [0x1026598c], 0x29f7
call ebx
mov dword [0x10265990], eax
jmp 0x1010762a
mov edi, 1
jmp 0x1010762a
mov dword [0x10265988], 1
mov dword [0x1026598c], 0x29ea
call ebx
mov dword [0x10265990], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x1010748e
mov dword [0x10265988], 0xf
mov dword [0x1026598c], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x10265990], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x10115bd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
push esi
push edi
xor edx, edx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
mov esi, dword [esp + 0x44]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, edx
mov dword [esp + 8], edx
stosb byte es:[edi], al
je 0x10115c07
mov ecx, 0xc
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
jmp 0x10115ccb
mov esi, dword [esp + 0x40]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x4c]
push 1
push eax
push edx
push esi
mov dword [esp + 0x5c], edx
call ebp
push 0
push 0
push 0
push esi
mov ebx, eax
call ebp
cmp esi, 0xffffffff
je 0x10115c99
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x10115c99
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10115cb8
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x48]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x14]
push edi
push edx
push 0x30
push eax
push esi
mov dword [esp + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10115c92
mov dword [0x10265988], 0xd
mov dword [0x1026598c], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10265990], eax
jmp 0x10115cba
mov edi, 1
jmp 0x10115cba
mov dword [0x10265988], 1
mov dword [0x1026598c], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10265990], eax
xor edi, edi
lea ecx, [esp + 0x4c]
push 0
push ecx
push ebx
push esi
call ebp
pop ebp
pop ebx
test edi, edi
je 0x10115cda
test byte [esp + 0x30], 0x20
je 0x10115cda
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret