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

Disassembly:
mov eax, dword [0x1025f500]
sub esp, 0x114
test eax, eax
jne 0x100eb40d
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 0x100eb3e8
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 0x100eb364
call eax
jmp 0x100eb36a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1025f3b4]
cmp eax, 6
jae 0x100eb382
cmp eax, 5
jne 0x100eb396
cmp dword [0x1025f3b8], 2
jb 0x100eb396
cmp word [0x1025f4d0], 9
jne 0x100eb396
mov dword [0x1025f28c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100eb3b4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x1025f4fc], edx
jmp 0x100eb3ba
mov edx, dword [0x1025f4fc]
test edx, edx
je 0x100eb3e8
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 0x100eb3e8
mov ecx, dword [esp + 0x14]
mov dword [0x1025f2a4], ecx
push 0x1025f2a0
push 0x1025f29c
call fcn.100eb7b0
add esp, 8
call fcn.100eb420
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100ec640
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 0x100ec7a0
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 0x100ec79b
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.10094933
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.1005fbb2
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100ec79b
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 0x100ec792
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 0x100ec792
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 0x100ec792
push esi
call fcn.1005fbe1
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 0x100ecd30
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x1025f778]
test eax, eax
jne 0x100ecdee
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 0x100ecde2
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 0x100ecdb0
call eax
jmp 0x100ecdb6
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1025f634]
cmp eax, 6
jae 0x100ecdce
cmp eax, 5
jne 0x100ecde2
cmp dword [0x1025f638], 2
jb 0x100ecde2
cmp word [0x1025f750], 9
jne 0x100ecde2
mov dword [0x1025f50c], 1
call fcn.100ece00
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x100ed440
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 0x100ed5a0
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 0x100ed59b
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.10094933
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.1005fbb2
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100ed59b
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 0x100ed592
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 0x100ed592
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 0x100ed592
push esi
call fcn.1005fbe1
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 0x100efb40
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 0x100efd39
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x100efd39
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 0x100efd0e
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 0x100efbd1
cmp edi, ebp
je 0x100efcb9
cmp eax, ebp
mov ebx, 0x1000
jne 0x100efbe0
cmp edi, ebx
jae 0x100efbe0
mov ebx, edi
push ebx
call fcn.1005fbb2
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 0x100efc56
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x100efc31
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x100efc93
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 0x100efc6c
cmp dword [esp + 0x14], ebp
je 0x100efbeb
jmp 0x100efc93
mov dword [0x1025f7c8], 0xd
mov dword [0x1025f7cc], 0x54c
jmp 0x100efc80
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.1005fbe1
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x100efd02
cmp dword [esp + 0x18], ebp
jne 0x100efd02
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x100efd02
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 0x100efd02
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 0x100f0f20
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.100f1a30
add esp, 0x2c
test eax, eax
je 0x100f1008
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x100f0f94
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 0x100f0fce
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.101028d0
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 0x100f100e
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 0x100f1490
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 0x100f14b2
mov eax, dword [0x1026000c]
test eax, eax
jne 0x100f14b2
mov eax, dword [0x10260614]
test eax, eax
je 0x100f14b6
test ebx, ebx
je 0x100f14f0
mov eax, dword [0x1023c12c]
or esi, 0xffffffff
cmp eax, esi
jne 0x100f14f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x1023c12c], eax
je 0x100f14f0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100f14f0
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.101032d0
add esp, 0xc
test eax, eax
je 0x100f1533
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.1011fa50
add esp, 0x10
test eax, eax
je 0x100f1533
push ebx
push esi
push edi
call fcn.1012ebe0
add esp, 0xc
test eax, eax
je 0x100f1533
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100f64b0
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 0x100f661b
cmp esi, 0xffffffff
je 0x100f661b
cmp dword [0x1025f7d8], ebp
je 0x100f661b
mov ecx, dword [0x1025f7e0]
cmp ecx, ebp
je 0x100f661b
mov eax, dword [0x1025f7dc]
cmp eax, ebp
jge 0x100f64f9
neg eax
cmp ecx, eax
ja 0x100f661b
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.1005fbb2
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x100f6610
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 0x100f6602
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x100f6595
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 0x100f65a7
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 0x100f6602
mov ebx, dword [0x1025f784]
xor edx, edx
test ebx, ebx
jle 0x100f6602
mov ebp, dword [0x1025f780]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x100f65e8
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100f65fa
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x100f6602
jmp 0x100f65ce
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1005fbe1
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 0x10100860
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.100fedc0
push eax
call fcn.10140250
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x101008c5
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.1005fbb2
mov esi, eax
add esp, 4
test esi, esi
jne 0x10100929
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 0x10100a13
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 0x101009aa
test eax, eax
jne 0x101009aa
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 0x10100a29
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 0x10100a48
mov dword [0x1025f870], 0x11
mov dword [0x1025f874], 0x14cb
jmp 0x10100a3d
mov dword [0x1025f870], 0xe
mov dword [0x1025f874], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1025f878], eax
push esi
call fcn.1005fbe1
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x101028d0
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.100ff050
add esp, 8
test eax, eax
jne 0x10102933
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 0x10102944
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x101038d0
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 0x10103a0c
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.1010a800
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 0x10103975
test edi, edi
jne 0x10103975
test ebp, ebp
jne 0x10103975
test ebx, ebx
jne 0x10103975
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x10103975
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x10103a01
cmp eax, 3
jne 0x10103a01
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 0x101039fd
mov eax, dword [esp + 0x40]
test esi, esi
je 0x101039a5
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x101039b0
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x101039bc
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x101039db
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 0x101039ed
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x101039fd
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 0x10103a9d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x10103a9d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10103ab8
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 0x10103a96
mov dword [0x1025f870], 0xd
mov dword [0x1025f874], 0x29f7
call ebx
mov dword [0x1025f878], eax
jmp 0x10103aba
mov edi, 1
jmp 0x10103aba
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 0x1010391e
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 0x10111ee0
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 0x10111f17
mov ecx, 0xc
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
jmp 0x10111fdb
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 0x10111fa9
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x10111fa9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10111fc8
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 0x10111fa2
mov dword [0x1025f870], 0xd
mov dword [0x1025f874], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1025f878], eax
jmp 0x10111fca
mov edi, 1
jmp 0x10111fca
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 0x10111fea
test byte [esp + 0x30], 0x20
je 0x10111fea
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret