joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10099e80
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x10099ea1
push 0x57
mov dword [0x10201aa8], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x10099ed2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10099ed2
test al, 0x10
jne 0x10099ed2
test al, 1
je 0x10099e9c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x10099f40
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x10099f61
push 0x57
mov dword [0x10201aa8], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x10099f92
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10099f92
test al, 0x10
jne 0x10099f92
test al, 1
je 0x10099f5c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x1009be70
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x1009be8c
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10060630
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.10060ca0
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x1009bf10
cmp byte [esp + 0x10], 0x5c
jne 0x1009bf10
cmp byte [esp + 0x11], 0x5c
jne 0x1009bf10
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.10060ca0
add esp, 8
test eax, eax
je 0x1009bf8e
inc eax
push 0x5c
push eax
call fcn.10060ca0
add esp, 8
mov esi, eax
test esi, esi
je 0x1009bf8e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1009bf52
test bl, 1
je 0x1009bf41
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x1009bfc4
cmp ebx, 0xffffffff
je 0x1009bf5b
test edi, edi
jne 0x1009bf6a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x1009bfc4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.10060ca0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009bf14
test ebp, ebp
je 0x1009bfc4
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1009bfb9
test al, 0x10
jne 0x1009bfc4
test al, 1
je 0x1009bfac
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x1009bfc4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x1009bfe0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x1009bffc
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10060183
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.1005fbad
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.1005f906
add esp, 0x18
cmp eax, 2
jbe 0x1009c081
cmp word [esp + 0x10], di
jne 0x1009c081
cmp word [esp + 0x12], di
jne 0x1009c081
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1005fbad
add esp, 8
test eax, eax
je 0x1009c109
add eax, 2
push edi
push eax
call fcn.1005fbad
add esp, 8
mov esi, eax
test esi, esi
je 0x1009c109
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1009c0c9
test bl, 1
je 0x1009c0b8
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1009c13f
cmp ebx, 0xffffffff
je 0x1009c0d2
test edi, edi
jne 0x1009c0e1
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x1009c13f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.1005fbad
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009c089
test ebp, ebp
je 0x1009c13f
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1009c134
test al, 0x10
jne 0x1009c13f
test al, 1
je 0x1009c127
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1009c13f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x1009c150
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
test ebx, ebx
push edi
jne 0x1009c184
push 0x57
mov dword [0x10201aa8], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1009c1ab
test al, 0x10
jne 0x1009c31d
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1009c31d
mov ecx, 0x81
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10060183
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.1005fbad
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.1005f906
add esp, 0x18
cmp eax, 2
jbe 0x1009c23a
cmp word [esp + 0x10], di
jne 0x1009c23a
cmp word [esp + 0x12], di
jne 0x1009c23a
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1005fbad
add esp, 8
test eax, eax
je 0x1009c2c2
add eax, 2
push edi
push eax
call fcn.1005fbad
add esp, 8
mov esi, eax
test esi, esi
je 0x1009c2c2
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1009c282
test bl, 1
je 0x1009c271
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1009c2fa
cmp ebx, 0xffffffff
je 0x1009c28b
test edi, edi
jne 0x1009c29a
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x1009c2fa
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.1005fbad
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009c242
test ebp, ebp
je 0x1009c2fa
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1009c2eb
test al, 0x10
jne 0x1009c2f6
test al, 1
je 0x1009c2e0
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1009c2fa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x1009c31d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x10201aa8], eax
je 0x1009c310
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x220]
test eax, eax
je 0x1009c330
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x1009c530
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
test ebx, ebx
push edi
jne 0x1009c564
push 0x57
mov dword [0x10201aa8], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1009c58b
test al, 0x10
jne 0x1009c6fd
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1009c6fd
mov ecx, 0x81
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10060183
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.1005fbad
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.1005f906
add esp, 0x18
cmp eax, 2
jbe 0x1009c61a
cmp word [esp + 0x10], di
jne 0x1009c61a
cmp word [esp + 0x12], di
jne 0x1009c61a
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1005fbad
add esp, 8
test eax, eax
je 0x1009c6a2
add eax, 2
push edi
push eax
call fcn.1005fbad
add esp, 8
mov esi, eax
test esi, esi
je 0x1009c6a2
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1009c662
test bl, 1
je 0x1009c651
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1009c6da
cmp ebx, 0xffffffff
je 0x1009c66b
test edi, edi
jne 0x1009c67a
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x1009c6da
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.1005fbad
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009c622
test ebp, ebp
je 0x1009c6da
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1009c6cb
test al, 0x10
jne 0x1009c6d6
test al, 1
je 0x1009c6c0
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1009c6da
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x1009c6fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x10201aa8], eax
je 0x1009c6f0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x220]
test eax, eax
je 0x1009c710
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x1009cb40
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
mov eax, 0x1f3
push ebx
sub eax, ebp
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1009cb89
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret
push edi
mov edi, 1
mov eax, dword [ebx]
test al, 0x10
mov dword [esp + 0x14], eax
je 0x1009ccf9
cmp word [ebx + 0x2c], 0x2e
lea ecx, [ebx + 0x2c]
jne 0x1009cbc5
mov ax, word [ebx + 0x2e]
test ax, ax
je 0x1009ccc9
cmp ax, 0x2e
jne 0x1009cbc5
cmp word [ebx + 0x30], 0
je 0x1009ccc9
push ecx
call fcn.1005f906
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
cmp ecx, eax
jb 0x1009ccc2
mov ecx, dword [esp + 0x278]
mov word [esi + ebp*2 - 2], 0
lea eax, [ecx + 0x2c]
push eax
push esi
call fcn.1005fea3
mov al, byte [esp + 0x284]
add esp, 8
test al, 0x10
je 0x1009cc1e
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [esp + 0x290]
mov edi, eax
test edi, edi
je 0x1009cc85
test byte [esp + 0x27c], 0x40
jne 0x1009cc85
lea ecx, [ebx + ebp]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea edx, [ebx + ebp + 1]
lea eax, [esi + ecx*2]
mov ecx, 0x93
mov word [eax - 2], 0x5c
mov word [eax], 0x2a
xor eax, eax
mov word [esi + edx*2], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x280]
push eax
mov eax, dword [esp + 0x280]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call fcn.1009cb40
add esp, 0x18
mov edi, eax
test byte [esp + 0x27c], 0x20
je 0x1009ccb5
test edi, edi
je 0x1009ccb5
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
add ebx, ebp
push eax
push 0
push esi
mov word [esi + ebx*2 - 2], 0
call dword [esp + 0x290]
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
mov word [esi + ebp*2], 0
mov ebx, dword [esp + 0x278]
test edi, edi
je 0x1009cce1
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1009cb8f
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret
mov ecx, dword [esp + 0x284]
lea edx, [ebx + 0x2c]
push ecx
push eax
push edx
push esi
mov word [esi + ebp*2 - 4], 0
call dword [esp + 0x290]
mov word [esi + ebp*2 - 4], 0x5c
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
jmp 0x1009ccc9
Function at 0x1009db30
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x1009db4f
push 0x57
mov dword [0x10201aa8], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x1009da80
push 0x20
push esi
call fcn.1009ca40
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x1009db95
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x10201aa8], eax
je 0x1009db95
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret

Function at 0x1009dc10
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x1009dc2f
push 0x57
mov dword [0x10201aa8], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x1009da80
push 0x20
push esi
call fcn.1009ca40
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x1009dc75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x10201aa8], eax
je 0x1009dc75
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret

Function at 0x1009fbf0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, 0xffffffff
jne 0x1009fc37
mov eax, dword [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1009fc37
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x1009fc37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
je 0x1009fc4d
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1009fc5b
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
Function at 0x100a0180
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
jne 0x100a01c5
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [eax - 8], edi
je 0x100a01c7
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100a01c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x100a01c7
xor edi, edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x100a02a2
push 1
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x18], edi
mov ebp, dword [edx]
lea eax, [ebx + ebp]
cmp eax, ebx
jb 0x100a01f9
cmp eax, ebp
mov dword [esp + 0x18], edi
jae 0x100a0201
mov dword [esp + 0x18], 1
mov ecx, dword [esi + 0x20]
cmp ecx, edi
mov dword [esp + 0x10], ecx
je 0x100a024c
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x20], edi
lea edi, [ecx + edx]
cmp edi, ecx
jb 0x100a0225
cmp edi, edx
jb 0x100a0225
xor edx, edx
jmp 0x100a022a
mov edx, 1
cmp ecx, ebx
ja 0x100a024c
cmp dword [esp + 0x18], edx
ja 0x100a024c
jb 0x100a023a
cmp eax, edi
ja 0x100a024c
mov eax, dword [esp + 0x10]
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret 4
push ebp
mov ecx, esi
call fcn.100a0540
test eax, eax
je 0x100a02a2
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 8]
lea edi, [esi + 0x28]
mov eax, dword [ebp]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a028d
mov eax, dword [edi]
pop edi
mov dword [ebp], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x2c], ebx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov dword [edi], 0
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
Function at 0x100a0185
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
jne 0x100a01c5
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [eax - 8], edi
je 0x100a01c7
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100a01c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x100a01c7
xor edi, edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x100a02a2
push 1
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x18], edi
mov ebp, dword [edx]
lea eax, [ebx + ebp]
cmp eax, ebx
jb 0x100a01f9
cmp eax, ebp
mov dword [esp + 0x18], edi
jae 0x100a0201
mov dword [esp + 0x18], 1
mov ecx, dword [esi + 0x20]
cmp ecx, edi
mov dword [esp + 0x10], ecx
je 0x100a024c
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x20], edi
lea edi, [ecx + edx]
cmp edi, ecx
jb 0x100a0225
cmp edi, edx
jb 0x100a0225
xor edx, edx
jmp 0x100a022a
mov edx, 1
cmp ecx, ebx
ja 0x100a024c
cmp dword [esp + 0x18], edx
ja 0x100a024c
jb 0x100a023a
cmp eax, edi
ja 0x100a024c
mov eax, dword [esp + 0x10]
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret 4
push ebp
mov ecx, esi
call fcn.100a0540
test eax, eax
je 0x100a02a2
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 8]
lea edi, [esi + 0x28]
mov eax, dword [ebp]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a028d
mov eax, dword [edi]
pop edi
mov dword [ebp], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x2c], ebx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov dword [edi], 0
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4

Function at 0x100a0340
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x100a03bf
mov edi, dword [esp + 0x14]
test edi, edi
je 0x100a03bf
cmp dword [esi + 8], 0xffffffff
jne 0x100a0391
mov eax, dword [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x100a0391
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push 0
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push 0
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100a0391
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
je 0x100a03bf
lea edx, [esp + 0x10]
push 0
push edx
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a03bf
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8