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

Disassembly:
mov eax, dword [0x1026a6c8]
sub esp, 0x114
test eax, eax
jne 0x100f241d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x1026a460
mov dword [0x1026a6c8], 1
mov dword [0x1026a460], 0x114
call esi
mov edx, dword [0x1026a470]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10245df8], eax
je 0x100f23f8
push ebx
push 0x1026a578
mov dword [0x1026a578], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10246ce4
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 [0x1026a6bc], eax
call edi
mov dword [0x1026a6c0], eax
mov eax, dword [0x1026a6bc]
test eax, eax
push 0x1026a698
je 0x100f2374
call eax
jmp 0x100f237a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1026a57c]
cmp eax, 6
jae 0x100f2392
cmp eax, 5
jne 0x100f23a6
cmp dword [0x1026a580], 2
jb 0x100f23a6
cmp word [0x1026a698], 9
jne 0x100f23a6
mov dword [0x1026a454], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100f23c4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x1026a6c4], edx
jmp 0x100f23ca
mov edx, dword [0x1026a6c4]
test edx, edx
je 0x100f23f8
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 0x100f23f8
mov ecx, dword [esp + 0x14]
mov dword [0x1026a46c], ecx
push 0x1026a468
push 0x1026a464
call fcn.100f27c0
add esp, 8
call fcn.100f2430
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100f3650
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020c040
push 0x101bf770
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 [0x1026a6cc]
xor ebx, ebx
cmp eax, ebx
jne 0x100f37b0
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 0x100f37ab
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 0x10245ab0
lea edx, [ebp - 0x42c]
push edx
call fcn.10098623
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.100637b2
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f37ab
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 0x100f37a2
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10246ed8
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f37a2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026a6cc], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f37a2
push esi
call fcn.100637e1
add esp, 4
mov eax, dword [0x1026a6cc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, dword [0x1026a940]
test eax, eax
jne 0x100f3dfe
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x1026a6e0
mov dword [0x1026a940], 1
mov dword [0x1026a6e0], 0x114
call esi
mov edx, dword [0x1026a6f0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10247050], eax
je 0x100f3df2
push 0x1026a7f8
mov dword [0x1026a7f8], 0x11c
call esi
push 0x10246ce4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x1026a93c], eax
push 0x1026a918
je 0x100f3dc0
call eax
jmp 0x100f3dc6
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1026a7fc]
cmp eax, 6
jae 0x100f3dde
cmp eax, 5
jne 0x100f3df2
cmp dword [0x1026a800], 2
jb 0x100f3df2
cmp word [0x1026a918], 9
jne 0x100f3df2
mov dword [0x1026a6d4], 1
call fcn.100f3e10
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x100f4450
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020c050
push 0x101bf770
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 [0x1026a944]
xor ebx, ebx
cmp eax, ebx
jne 0x100f45b0
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 0x100f45ab
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 0x10245ab0
lea edx, [ebp - 0x42c]
push edx
call fcn.10098623
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.100637b2
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f45ab
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 0x100f45a2
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10246ed8
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f45a2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026a944], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f45a2
push esi
call fcn.100637e1
add esp, 4
mov eax, dword [0x1026a944]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f4ac0
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 0x100f4b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100f4b0b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.100637b2
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.100637b2
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x100f4b50
test esi, esi
je 0x100f4b61
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 0x100f4b5d
push esi
call fcn.100637e1
add esp, 4
test ebx, ebx
jne 0x100f4b70
mov edi, dword [edi]
test edi, edi
je 0x100f4b70
push edi
call fcn.100637e1
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100f9a70
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 [0x1026a9f8], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x1026aa00], eax
cmp ebx, 0xffffffff
je 0x100f9c69
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x100f9c69
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.10148850
add esp, 0xc
test eax, eax
je 0x100f9c3e
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 0x100f9b01
cmp edi, ebp
je 0x100f9be9
cmp eax, ebp
mov ebx, 0x1000
jne 0x100f9b10
cmp edi, ebx
jae 0x100f9b10
mov ebx, edi
push ebx
call fcn.100637b2
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.10146f30
add esp, 0x18
test eax, eax
je 0x100f9b86
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x100f9b61
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x100f9bc3
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.10147030
add esp, 0x14
test eax, eax
je 0x100f9b9c
cmp dword [esp + 0x14], ebp
je 0x100f9b1b
jmp 0x100f9bc3
mov dword [0x1026a9f8], 0xd
mov dword [0x1026a9fc], 0x54c
jmp 0x100f9bb0
mov dword [0x1026a9f8], 0xe
mov dword [0x1026a9fc], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026aa00], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.100637e1
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x100f9c32
cmp dword [esp + 0x18], ebp
jne 0x100f9c32
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x100f9c32
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.10146ab0
add esp, 0xc
test eax, eax
je 0x100f9c32
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.10146af0
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026a9f8], 0x25
mov dword [0x1026a9fc], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026aa00], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026a9f8], 1
mov dword [0x1026a9fc], 0x51d
call edi
pop edi
pop esi
mov dword [0x1026aa00], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x100fae50
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.100fb970
add esp, 0x2c
test eax, eax
je 0x100faf38
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x100faec4
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.10126590
mov edx, dword [0x1026b230]
mov ecx, dword [0x1026b234]
add esp, 8
mov dword [0x1026a9f8], edx
mov edx, dword [0x1026b238]
mov dword [0x1026a9fc], ecx
mov dword [0x1026aa00], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x100faefe
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.1010c840
mov ecx, dword [0x1026aaa0]
mov edx, dword [0x1026aaa4]
add esp, 8
mov dword [0x1026a9f8], ecx
mov ecx, dword [0x1026aaa8]
mov dword [0x1026a9fc], edx
mov dword [0x1026aa00], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x100faf3e
call fcn.10142a70
mov ecx, dword [0x1026b840]
mov edx, dword [0x1026b844]
add esp, 8
mov dword [0x1026a9f8], ecx
mov ecx, dword [0x1026b848]
mov dword [0x1026a9fc], edx
mov dword [0x1026aa00], 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 0x100fb3c0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x1026aaac]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100fb3e2
mov eax, dword [0x1026b23c]
test eax, eax
jne 0x100fb3e2
mov eax, dword [0x1026b84c]
test eax, eax
je 0x100fb3e6
test ebx, ebx
je 0x100fb420
mov eax, dword [0x10247a6c]
or esi, 0xffffffff
cmp eax, esi
jne 0x100fb420
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x10247a6c], eax
je 0x100fb420
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100fb420
mov eax, dword [0x10247a6c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x10247a6c], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.1010d240
add esp, 0xc
test eax, eax
je 0x100fb463
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.10129b20
add esp, 0x10
test eax, eax
je 0x100fb463
push ebx
push esi
push edi
call fcn.10138e50
add esp, 0xc
test eax, eax
je 0x100fb463
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10100410
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 0x1010057b
cmp esi, 0xffffffff
je 0x1010057b
cmp dword [0x1026aa08], ebp
je 0x1010057b
mov ecx, dword [0x1026aa10]
cmp ecx, ebp
je 0x1010057b
mov eax, dword [0x1026aa0c]
cmp eax, ebp
jge 0x10100459
neg eax
cmp ecx, eax
ja 0x1010057b
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.100637b2
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x10100570
mov ecx, dword [0x1026aa10]
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 [0x1026aa10]
mov edi, dword [0x1026aa0c]
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 0x10100562
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x101004f5
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.10146f30
add esp, 0x18
jmp 0x10100507
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 0x10100562
mov ebx, dword [0x1026a9b4]
xor edx, edx
test ebx, ebx
jle 0x10100562
mov ebp, dword [0x1026a9b0]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x10100548
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1010055a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x10100562
jmp 0x1010052e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100637e1
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 0x1010a7d0
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.10108d20
push eax
call fcn.1014a6a0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1010a835
mov dword [0x1026aaa0], 0xc
mov dword [0x1026aaa4], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026aaa8], 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.100637b2
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010a899
mov dword [0x1026aaa0], 0x21
mov dword [0x1026aaa4], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026aaa8], 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 0x1010a983
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 0x1010a91a
test eax, eax
jne 0x1010a91a
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.10147030
add esp, 0x14
test eax, eax
je 0x1010a999
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.10147b30
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x1010a9b8
mov dword [0x1026aaa0], 0x11
mov dword [0x1026aaa4], 0x14cb
jmp 0x1010a9ad
mov dword [0x1026aaa0], 0xe
mov dword [0x1026aaa4], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026aaa8], eax
push esi
call fcn.100637e1
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x1010c840
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x1026aaa0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026aaa8], 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.10108fb0
add esp, 8
test eax, eax
jne 0x1010c8a3
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 0x1010c8b4
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x1010d840
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 [0x1026aaa0], ebp
call ebx
mov dword [0x1026aaa8], 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 0x1010d97c
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.10114730
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 0x1010d8e5
test edi, edi
jne 0x1010d8e5
test ebp, ebp
jne 0x1010d8e5
test ebx, ebx
jne 0x1010d8e5
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x1010d8e5
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x1010d971
cmp eax, 3
jne 0x1010d971
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.10147ae0
add esp, 0xc
test eax, eax
je 0x1010d96d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x1010d915
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x1010d920
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x1010d92c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x1010d94b
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 0x1010d95d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x1010d96d
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 0x1010da0d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x1010da0d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1010da28
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 0x1010da06
mov dword [0x1026aaa0], 0xd
mov dword [0x1026aaa4], 0x29f7
call ebx
mov dword [0x1026aaa8], eax
jmp 0x1010da2a
mov edi, 1
jmp 0x1010da2a
mov dword [0x1026aaa0], 1
mov dword [0x1026aaa4], 0x29ea
call ebx
mov dword [0x1026aaa8], 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 0x1010d88e
mov dword [0x1026aaa0], 0xf
mov dword [0x1026aaa4], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x1026aaa8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x1011bfb0
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 0x1011bfe7
mov ecx, 0xc
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
jmp 0x1011c0ab
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 0x1011c079
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x1011c079
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1011c098
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 0x1011c072
mov dword [0x1026aaa0], 0xd
mov dword [0x1026aaa4], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026aaa8], eax
jmp 0x1011c09a
mov edi, 1
jmp 0x1011c09a
mov dword [0x1026aaa0], 1
mov dword [0x1026aaa4], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026aaa8], 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 0x1011c0ba
test byte [esp + 0x30], 0x20
je 0x1011c0ba
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret