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

Disassembly:
mov eax, dword [0x1025f500]
sub esp, 0x114
test eax, eax
jne 0x100eb42d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x1025f298
mov dword [0x1025f500], 1
mov dword [0x1025f298], 0x114
call esi
mov edx, dword [0x1025f2a8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x1023adb8], eax
je 0x100eb408
push ebx
push 0x1025f3b0
mov dword [0x1025f3b0], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1023bca4
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 [0x1025f4f4], eax
call edi
mov dword [0x1025f4f8], eax
mov eax, dword [0x1025f4f4]
test eax, eax
push 0x1025f4d0
je 0x100eb384
call eax
jmp 0x100eb38a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1025f3b4]
cmp eax, 6
jae 0x100eb3a2
cmp eax, 5
jne 0x100eb3b6
cmp dword [0x1025f3b8], 2
jb 0x100eb3b6
cmp word [0x1025f4d0], 9
jne 0x100eb3b6
mov dword [0x1025f28c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100eb3d4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x1025f4fc], edx
jmp 0x100eb3da
mov edx, dword [0x1025f4fc]
test edx, edx
je 0x100eb408
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 0x100eb408
mov ecx, dword [esp + 0x14]
mov dword [0x1025f2a4], ecx
push 0x1025f2a0
push 0x1025f29c
call fcn.100eb7d0
add esp, 8
call fcn.100eb440
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100ec670
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102013b8
push 0x101b5b70
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 [0x1025f504]
xor ebx, ebx
cmp eax, ebx
jne 0x100ec7d0
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 0x100ec7cb
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 0x1023aa70
lea edx, [ebp - 0x42c]
push edx
call fcn.10094983
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.1005fc04
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100ec7cb
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 0x100ec7c2
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x1023be98
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100ec7c2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1025f504], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100ec7c2
push esi
call fcn.1005fc33
add esp, 4
mov eax, dword [0x1025f504]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, dword [0x1025f778]
test eax, eax
jne 0x100ece1e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x1025f518
mov dword [0x1025f778], 1
mov dword [0x1025f518], 0x114
call esi
mov edx, dword [0x1025f528]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x1023c010], eax
je 0x100ece12
push 0x1025f630
mov dword [0x1025f630], 0x11c
call esi
push 0x1023bca4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x1025f774], eax
push 0x1025f750
je 0x100ecde0
call eax
jmp 0x100ecde6
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1025f634]
cmp eax, 6
jae 0x100ecdfe
cmp eax, 5
jne 0x100ece12
cmp dword [0x1025f638], 2
jb 0x100ece12
cmp word [0x1025f750], 9
jne 0x100ece12
mov dword [0x1025f50c], 1
call fcn.100ece30
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x100ed470
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102013c8
push 0x101b5b70
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 [0x1025f77c]
xor ebx, ebx
cmp eax, ebx
jne 0x100ed5d0
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 0x100ed5cb
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 0x1023aa70
lea edx, [ebp - 0x42c]
push edx
call fcn.10094983
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.1005fc04
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100ed5cb
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 0x100ed5c2
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x1023be98
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100ed5c2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1025f77c], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100ed5c2
push esi
call fcn.1005fc33
add esp, 4
mov eax, dword [0x1025f77c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100efb80
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 [0x1025f7c8], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x1025f7d0], eax
cmp ebx, 0xffffffff
je 0x100efd79
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x100efd79
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.1013e400
add esp, 0xc
test eax, eax
je 0x100efd4e
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 0x100efc11
cmp edi, ebp
je 0x100efcf9
cmp eax, ebp
mov ebx, 0x1000
jne 0x100efc20
cmp edi, ebx
jae 0x100efc20
mov ebx, edi
push ebx
call fcn.1005fc04
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.1013cb10
add esp, 0x18
test eax, eax
je 0x100efc96
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x100efc71
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x100efcd3
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.1013cc10
add esp, 0x14
test eax, eax
je 0x100efcac
cmp dword [esp + 0x14], ebp
je 0x100efc2b
jmp 0x100efcd3
mov dword [0x1025f7c8], 0xd
mov dword [0x1025f7cc], 0x54c
jmp 0x100efcc0
mov dword [0x1025f7c8], 0xe
mov dword [0x1025f7cc], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1025f7d0], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.1005fc33
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x100efd42
cmp dword [esp + 0x18], ebp
jne 0x100efd42
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x100efd42
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.1013c690
add esp, 0xc
test eax, eax
je 0x100efd42
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.1013c6d0
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1025f7c8], 0x25
mov dword [0x1025f7cc], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1025f7d0], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1025f7c8], 1
mov dword [0x1025f7cc], 0x51d
call edi
pop edi
pop esi
mov dword [0x1025f7d0], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x100f0f60
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.100f1a70
add esp, 0x2c
test eax, eax
je 0x100f1048
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x100f0fd4
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.1011c490
mov edx, dword [0x10260000]
mov ecx, dword [0x10260004]
add esp, 8
mov dword [0x1025f7c8], edx
mov edx, dword [0x10260008]
mov dword [0x1025f7cc], ecx
mov dword [0x1025f7d0], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x100f100e
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.10102910
mov ecx, dword [0x1025f870]
mov edx, dword [0x1025f874]
add esp, 8
mov dword [0x1025f7c8], ecx
mov ecx, dword [0x1025f878]
mov dword [0x1025f7cc], edx
mov dword [0x1025f7d0], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x100f104e
call fcn.10138640
mov ecx, dword [0x10260608]
mov edx, dword [0x1026060c]
add esp, 8
mov dword [0x1025f7c8], ecx
mov ecx, dword [0x10260610]
mov dword [0x1025f7cc], edx
mov dword [0x1025f7d0], 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 0x100f14d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x1025f87c]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100f14f2
mov eax, dword [0x1026000c]
test eax, eax
jne 0x100f14f2
mov eax, dword [0x10260614]
test eax, eax
je 0x100f14f6
test ebx, ebx
je 0x100f1530
mov eax, dword [0x1023c12c]
or esi, 0xffffffff
cmp eax, esi
jne 0x100f1530
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x1023c12c], eax
je 0x100f1530
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100f1530
mov eax, dword [0x1023c12c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1023c12c], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.10103310
add esp, 0xc
test eax, eax
je 0x100f1573
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.1011fa50
add esp, 0x10
test eax, eax
je 0x100f1573
push ebx
push esi
push edi
call fcn.1012ebe0
add esp, 0xc
test eax, eax
je 0x100f1573
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100f64f0
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 0x100f665b
cmp esi, 0xffffffff
je 0x100f665b
cmp dword [0x1025f7d8], ebp
je 0x100f665b
mov ecx, dword [0x1025f7e0]
cmp ecx, ebp
je 0x100f665b
mov eax, dword [0x1025f7dc]
cmp eax, ebp
jge 0x100f6539
neg eax
cmp ecx, eax
ja 0x100f665b
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.1005fc04
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x100f6650
mov ecx, dword [0x1025f7e0]
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 [0x1025f7e0]
mov edi, dword [0x1025f7dc]
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 0x100f6642
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x100f65d5
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.1013cb10
add esp, 0x18
jmp 0x100f65e7
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 0x100f6642
mov ebx, dword [0x1025f784]
xor edx, edx
test ebx, ebx
jle 0x100f6642
mov ebp, dword [0x1025f780]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x100f6628
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100f663a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x100f6642
jmp 0x100f660e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1005fc33
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 0x101008a0
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.100fee00
push eax
call fcn.10140250
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x10100905
mov dword [0x1025f870], 0xc
mov dword [0x1025f874], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1025f878], 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.1005fc04
mov esi, eax
add esp, 4
test esi, esi
jne 0x10100969
mov dword [0x1025f870], 0x21
mov dword [0x1025f874], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1025f878], 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 0x10100a53
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 0x101009ea
test eax, eax
jne 0x101009ea
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.1013cc10
add esp, 0x14
test eax, eax
je 0x10100a69
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.1013d710
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x10100a88
mov dword [0x1025f870], 0x11
mov dword [0x1025f874], 0x14cb
jmp 0x10100a7d
mov dword [0x1025f870], 0xe
mov dword [0x1025f874], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1025f878], eax
push esi
call fcn.1005fc33
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x10102910
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x1025f870], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1025f878], 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.100ff090
add esp, 8
test eax, eax
jne 0x10102973
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 0x10102984
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x10103910
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 [0x1025f870], ebp
call ebx
mov dword [0x1025f878], 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 0x10103a4c
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.1010a820
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 0x101039b5
test edi, edi
jne 0x101039b5
test ebp, ebp
jne 0x101039b5
test ebx, ebx
jne 0x101039b5
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x101039b5
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x10103a41
cmp eax, 3
jne 0x10103a41
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.1013d6c0
add esp, 0xc
test eax, eax
je 0x10103a3d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x101039e5
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x101039f0
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x101039fc
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x10103a1b
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 0x10103a2d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x10103a3d
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 0x10103add
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x10103add
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10103af8
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 0x10103ad6
mov dword [0x1025f870], 0xd
mov dword [0x1025f874], 0x29f7
call ebx
mov dword [0x1025f878], eax
jmp 0x10103afa
mov edi, 1
jmp 0x10103afa
mov dword [0x1025f870], 1
mov dword [0x1025f874], 0x29ea
call ebx
mov dword [0x1025f878], 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 0x1010395e
mov dword [0x1025f870], 0xf
mov dword [0x1025f874], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x1025f878], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x10111f00
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 0x10111f37
mov ecx, 0xc
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
jmp 0x10111ffb
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 0x10111fc9
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x10111fc9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10111fe8
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 0x10111fc2
mov dword [0x1025f870], 0xd
mov dword [0x1025f874], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1025f878], eax
jmp 0x10111fea
mov edi, 1
jmp 0x10111fea
mov dword [0x1025f870], 1
mov dword [0x1025f874], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1025f878], 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 0x1011200a
test byte [esp + 0x30], 0x20
je 0x1011200a
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret