joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f44a0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020e1a0
push 0x101c1d30
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 [0x1026da44]
xor ebx, ebx
cmp eax, ebx
jne 0x100f4600
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 0x100f45fb
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 0x10248ab0
lea edx, [ebp - 0x42c]
push edx
call fcn.10098983
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.10063b18
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100f45fb
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 0x100f45f2
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x10249ef0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100f45f2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026da44], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100f45f2
push esi
call fcn.10063b47
add esp, 4
mov eax, dword [0x1026da44]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f4b10
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 0x100f4b5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100f4b5b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.10063b18
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.10063b18
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x100f4ba0
test esi, esi
je 0x100f4bb1
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 0x100f4bad
push esi
call fcn.10063b47
add esp, 4
test ebx, ebx
jne 0x100f4bc0
mov edi, dword [edi]
test edi, edi
je 0x100f4bc0
push edi
call fcn.10063b47
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100f9cc0
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 [0x1026daf8], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x1026db00], eax
cmp ebx, 0xffffffff
je 0x100f9eb9
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x100f9eb9
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.10148ab0
add esp, 0xc
test eax, eax
je 0x100f9e8e
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 0x100f9d51
cmp edi, ebp
je 0x100f9e39
cmp eax, ebp
mov ebx, 0x1000
jne 0x100f9d60
cmp edi, ebx
jae 0x100f9d60
mov ebx, edi
push ebx
call fcn.10063b18
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.10147190
add esp, 0x18
test eax, eax
je 0x100f9dd6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x100f9db1
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x100f9e13
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.10147290
add esp, 0x14
test eax, eax
je 0x100f9dec
cmp dword [esp + 0x14], ebp
je 0x100f9d6b
jmp 0x100f9e13
mov dword [0x1026daf8], 0xd
mov dword [0x1026dafc], 0x54c
jmp 0x100f9e00
mov dword [0x1026daf8], 0xe
mov dword [0x1026dafc], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026db00], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.10063b47
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x100f9e82
cmp dword [esp + 0x18], ebp
jne 0x100f9e82
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x100f9e82
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.10146d10
add esp, 0xc
test eax, eax
je 0x100f9e82
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.10146d50
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026daf8], 0x25
mov dword [0x1026dafc], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026db00], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x1026daf8], 1
mov dword [0x1026dafc], 0x51d
call edi
pop edi
pop esi
mov dword [0x1026db00], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x100fb0a0
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.100fbbc0
add esp, 0x2c
test eax, eax
je 0x100fb188
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x100fb114
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.101267f0
mov edx, dword [0x1026e330]
mov ecx, dword [0x1026e334]
add esp, 8
mov dword [0x1026daf8], edx
mov edx, dword [0x1026e338]
mov dword [0x1026dafc], ecx
mov dword [0x1026db00], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x100fb14e
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.1010cac0
mov ecx, dword [0x1026dba0]
mov edx, dword [0x1026dba4]
add esp, 8
mov dword [0x1026daf8], ecx
mov ecx, dword [0x1026dba8]
mov dword [0x1026dafc], edx
mov dword [0x1026db00], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x100fb18e
call fcn.10142cd0
mov ecx, dword [0x1026e940]
mov edx, dword [0x1026e944]
add esp, 8
mov dword [0x1026daf8], ecx
mov ecx, dword [0x1026e948]
mov dword [0x1026dafc], edx
mov dword [0x1026db00], 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 0x100fb610
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x1026dbac]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100fb632
mov eax, dword [0x1026e33c]
test eax, eax
jne 0x100fb632
mov eax, dword [0x1026e94c]
test eax, eax
je 0x100fb636
test ebx, ebx
je 0x100fb670
mov eax, dword [0x1024aa78]
or esi, 0xffffffff
cmp eax, esi
jne 0x100fb670
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x1024aa78], eax
je 0x100fb670
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100fb670
mov eax, dword [0x1024aa78]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1024aa78], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.1010d4c0
add esp, 0xc
test eax, eax
je 0x100fb6b3
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.10129d70
add esp, 0x10
test eax, eax
je 0x100fb6b3
push ebx
push esi
push edi
call fcn.101390a0
add esp, 0xc
test eax, eax
je 0x100fb6b3
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10100670
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 0x101007db
cmp esi, 0xffffffff
je 0x101007db
cmp dword [0x1026db08], ebp
je 0x101007db
mov ecx, dword [0x1026db10]
cmp ecx, ebp
je 0x101007db
mov eax, dword [0x1026db0c]
cmp eax, ebp
jge 0x101006b9
neg eax
cmp ecx, eax
ja 0x101007db
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.10063b18
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x101007d0
mov ecx, dword [0x1026db10]
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 [0x1026db10]
mov edi, dword [0x1026db0c]
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 0x101007c2
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x10100755
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.10147190
add esp, 0x18
jmp 0x10100767
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 0x101007c2
mov ebx, dword [0x1026dab4]
xor edx, edx
test ebx, ebx
jle 0x101007c2
mov ebp, dword [0x1026dab0]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x101007a8
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x101007ba
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x101007c2
jmp 0x1010078e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10063b47
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 0x1010aa50
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.10108fb0
push eax
call fcn.1014a910
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1010aab5
mov dword [0x1026dba0], 0xc
mov dword [0x1026dba4], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026dba8], 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.10063b18
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010ab19
mov dword [0x1026dba0], 0x21
mov dword [0x1026dba4], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026dba8], 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 0x1010ac03
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 0x1010ab9a
test eax, eax
jne 0x1010ab9a
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.10147290
add esp, 0x14
test eax, eax
je 0x1010ac19
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.10147d90
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x1010ac38
mov dword [0x1026dba0], 0x11
mov dword [0x1026dba4], 0x14cb
jmp 0x1010ac2d
mov dword [0x1026dba0], 0xe
mov dword [0x1026dba4], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026dba8], eax
push esi
call fcn.10063b47
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x1010cac0
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x1026dba0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026dba8], 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.10109240
add esp, 8
test eax, eax
jne 0x1010cb23
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 0x1010cb34
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x1010dac0
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 [0x1026dba0], ebp
call ebx
mov dword [0x1026dba8], 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 0x1010dbfc
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.101149b0
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 0x1010db65
test edi, edi
jne 0x1010db65
test ebp, ebp
jne 0x1010db65
test ebx, ebx
jne 0x1010db65
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x1010db65
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x1010dbf1
cmp eax, 3
jne 0x1010dbf1
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.10147d40
add esp, 0xc
test eax, eax
je 0x1010dbed
mov eax, dword [esp + 0x40]
test esi, esi
je 0x1010db95
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x1010dba0
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x1010dbac
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x1010dbcb
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 0x1010dbdd
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x1010dbed
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 0x1010dc8d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x1010dc8d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1010dca8
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 0x1010dc86
mov dword [0x1026dba0], 0xd
mov dword [0x1026dba4], 0x29f7
call ebx
mov dword [0x1026dba8], eax
jmp 0x1010dcaa
mov edi, 1
jmp 0x1010dcaa
mov dword [0x1026dba0], 1
mov dword [0x1026dba4], 0x29ea
call ebx
mov dword [0x1026dba8], 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 0x1010db0e
mov dword [0x1026dba0], 0xf
mov dword [0x1026dba4], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x1026dba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x1011c230
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 0x1011c267
mov ecx, 0xc
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
jmp 0x1011c32b
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 0x1011c2f9
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x1011c2f9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1011c318
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 0x1011c2f2
mov dword [0x1026dba0], 0xd
mov dword [0x1026dba4], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026dba8], eax
jmp 0x1011c31a
mov edi, 1
jmp 0x1011c31a
mov dword [0x1026dba0], 1
mov dword [0x1026dba4], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026dba8], 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 0x1011c33a
test byte [esp + 0x30], 0x20
je 0x1011c33a
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret
Function at 0x101267f0
Capabilities:
Get file size

Disassembly:
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x1026e330], ebx
call esi
mov ebp, dword [esp + 0xe4]
mov dword [0x1026e338], eax
cmp dword [0x1026e33c], ebx
je 0x101268fe
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.10127380
add esp, 8
test eax, eax
je 0x10126914
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.1011d040
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, ebx
jne 0x1012692a
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x94]
mov dword [esp + 0x90], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x90]
lea edx, [esp + 0x18]
push ecx
push edx
push ebp
call fcn.101275f0
add esp, 0xc
test eax, eax
je 0x10126940
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x58], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x90]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push ebp
call fcn.10127870
add esp, 0x10
test eax, eax
je 0x10126956
mov eax, dword [esp + 0xe8]
cmp eax, ebx
je 0x101268ef
mov ecx, dword [esp + 0x6c]
mov dword [eax], ecx
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
mov dword [0x1026e330], 2
mov dword [0x1026e334], 0x13f2
jmp 0x1012696a
mov dword [0x1026e330], 7
mov dword [0x1026e334], 0x13f9
jmp 0x1012696a
mov dword [0x1026e330], 0x31
mov dword [0x1026e334], 0x13ff
jmp 0x1012696a
mov dword [0x1026e330], 8
mov dword [0x1026e334], 0x1406
jmp 0x1012696a
mov dword [0x1026e330], 8
mov dword [0x1026e334], 0x140d
call esi
mov edx, dword [esp + 0xe8]
mov dword [0x1026e338], eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
Function at 0x1012edd0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x1012ee2f
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x1012ee2f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1012ee2f
push esi
lea esi, [esp + 8]
push 0
push esi
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x1012ee29
mov dword [0x1026e330], 0xe
mov dword [0x1026e334], 0x2263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026e338], eax
xor eax, eax
ret
mov eax, 1
ret
mov dword [0x1026e330], 1
mov dword [0x1026e334], 0x225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026e338], eax
xor eax, eax
ret