joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f17e0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x101ebafb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.10077860
mov ebp, dword [esp + 0x24]
xor ebx, ebx
push ebp
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esi], 0x10204ad4
call fcn.100785e0
mov edi, dword [edi]
mov dword [esi + 8], ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x100f1847
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100f1847
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x100f2170
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101ebb31
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, dword [esp + 0x228]
test ebp, ebp
je 0x100f2309
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 2
jbe 0x100f2309
cmp word [ebp + 2], 0x3a
jne 0x100f2309
mov ax, word [ebp]
cmp ax, 0x61
jb 0x100f21c9
cmp ax, 0x7a
jbe 0x100f21dd
cmp ax, 0x41
jb 0x100f2309
cmp ax, 0x5a
ja 0x100f2309
push ebp
lea ecx, [esp + 0xc]
call fcn.10077a80
push 0x5c
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0
call fcn.10079510
mov edx, eax
cmp edx, 0xffffffff
je 0x100f22f5
push esi
push edi
mov ecx, 5
mov esi, str.X:_baksd_
lea edi, [esp + 0x18]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x7c
lea edi, [esp + 0x2e]
rep stosd dword es:[edi], eax
inc edx
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
mov ax, word [ebp]
push edx
push ecx
lea ecx, [esp + 0x18]
mov word [esp + 0x20], ax
call fcn.1007a660
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.10077860
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x1023ddec
push ecx
mov byte [esp + 0x238], 2
call fcn.1007b320
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x10
push 1
push edx
push ebp
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100f22a2
mov ecx, dword [esp + 0xc]
push 4
push eax
push ecx
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.10078300
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0
call fcn.10078300
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.10078300
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 0x218]
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x100f2700
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100f270b
xor eax, eax
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret

Function at 0x100f2730
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100f273b
xor eax, eax
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret
Function at 0x100f3080
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 [0x10282d50], ebp
call ebx
mov dword [0x10282d58], 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 0x100f31bc
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.100fa150
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 0x100f3125
test edi, edi
jne 0x100f3125
test ebp, ebp
jne 0x100f3125
test ebx, ebx
jne 0x100f3125
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x100f3125
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x100f31b1
cmp eax, 3
jne 0x100f31b1
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.100f1920
add esp, 0xc
test eax, eax
je 0x100f31ad
mov eax, dword [esp + 0x40]
test esi, esi
je 0x100f3155
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x100f3160
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x100f316c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x100f318b
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 0x100f319d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x100f31ad
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 0x100f324d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x100f324d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100f3268
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 0x100f3246
mov dword [0x10282d50], 0xd
mov dword [0x10282d54], 0x29f7
call ebx
mov dword [0x10282d58], eax
jmp 0x100f326a
mov edi, 1
jmp 0x100f326a
mov dword [0x10282d50], 1
mov dword [0x10282d54], 0x29ea
call ebx
mov dword [0x10282d58], 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 0x100f30ce
mov dword [0x10282d50], 0xf
mov dword [0x10282d54], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x10282d58], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x100f4620
Capabilities:
Get file size
Write file on windows

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.100f3d60
push eax
call fcn.1011c1d0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100f4685
mov dword [0x10282d50], 0xc
mov dword [0x10282d54], 0x1da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10282d58], 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 sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x100f46e9
mov dword [0x10282d50], 0x21
mov dword [0x10282d54], 0x1db1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10282d58], 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 0x100f47d1
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 0x100f476a
test eax, eax
jne 0x100f476a
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 dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f47e7
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.100f1970
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x100f4806
mov dword [0x10282d50], 0x11
mov dword [0x10282d54], 0x1dbd
jmp 0x100f47fb
mov dword [0x10282d50], 0xe
mov dword [0x10282d54], 0x1dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], eax
push esi
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x100f6500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x10282d50], ebx
call esi
mov ebp, dword [esp + 0x3f4]
mov dword [0x10282d58], eax
lea eax, [esp + 0x14]
push 1
push eax
push ebx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x1c], eax
mov ecx, 0xf3
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
cmp ebp, 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
je 0x100f65b2
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x100f65b2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100f66bc
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x28]
push 4
push eax
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100f65d2
mov dword [0x10282d50], 0xd
mov dword [0x10282d54], 0x29f7
call esi
mov dword [0x10282d58], eax
jmp 0x100f66bc
mov dword [0x10282d50], 1
mov dword [0x10282d54], 0x29ea
call esi
mov dword [0x10282d58], eax
jmp 0x100f66bc
mov ecx, 4
mov edi, 0x1026bf60
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100f65eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100f6610
mov ecx, 4
mov edi, 0x1026bf38
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100f6608
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100f66bc
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x100f6672
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100f66bc
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push ebx
push edx
lea eax, [esp + 0x2c]
push 0x34
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100f6693
mov dword [0x10282d50], 0xd
mov dword [0x10282d54], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], eax
jmp 0x100f66bc
mov dword [0x10282d50], 1
mov dword [0x10282d54], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], eax
jmp 0x100f66bc
mov ecx, dword [esp + 0x400]
mov edx, dword [esp + 0x3fc]
mov eax, dword [esp + 0x3f8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.100f8ce0
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3e0
ret
Function at 0x100fb710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101ebcc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
call fcn.10077860
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call fcn.10077860
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
mov byte [esp + 0x30], 1
call fcn.100fb7c0
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0x1c
test eax, eax
je 0x100fb78e
mov ecx, dword [esp + 4]
push 0x104
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.10078300
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x101019b0
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 0x101019e7
mov ecx, 0xc
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
jmp 0x10101aab
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 0x10101a79
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x10101a79
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10101a98
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 0x10101a72
mov dword [0x10282d50], 0xd
mov dword [0x10282d54], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], eax
jmp 0x10101a9a
mov edi, 1
jmp 0x10101a9a
mov dword [0x10282d50], 1
mov dword [0x10282d54], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], 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 0x10101aba
test byte [esp + 0x30], 0x20
je 0x10101aba
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret

Function at 0x10107b40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x10107b9f
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x10107b9f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10107b9f
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 0x10107b99
mov dword [0x102834e0], 0xe
mov dword [0x102834e4], 0x223c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
xor eax, eax
ret
mov eax, 1
ret
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x2235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
xor eax, eax
ret
Function at 0x1010d230
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101ec1b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x102834e0], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x80]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x102834e8], eax
lea eax, [esp + 0x10]
push 1
push eax
push esi
push ebx
mov dword [esp + 0x20], esi
call edi
push esi
push esi
push 0x40
push ebx
mov dword [esp + 0x2c], eax
call edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], esi
call fcn.100af020
mov edx, dword [esp + 0x84]
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x7c], esi
mov cx, word [edx + 0x3e]
push ecx
lea ecx, [esp + 0x88]
call fcn.100af200
lea ecx, [esp + 0x80]
call fcn.100af1f0
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.100af930
cmp ebx, 0xffffffff
mov ebp, eax
je 0x1010d3c2
test ebp, ebp
je 0x1010d3c2
test esi, esi
je 0x1010d3c2
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1010d35b
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x1c], 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1010d3db
mov dword [0x102834e0], 0xd
mov dword [0x102834e4], 0x222a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0xffffffff
call fcn.100af150
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x1010d492
mov dword [0x102834e0], 0xf
mov dword [0x102834e4], 0x2e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x221d
jmp 0x1010d350
lea ecx, [esp + 0x80]
call fcn.100af1f0
push eax
lea ecx, [esp + 0x84]
call fcn.100af930
mov ecx, dword [esp + 0x88]
push eax
push ecx
call fcn.1010e950
add esp, 0xc
test eax, eax
je 0x1010d35b
lea ecx, [esp + 0x80]
call fcn.100af910
mov edx, 0x50
cmp word [eax + 4], dx
jne 0x1010d35b
mov ecx, 0x14
mov esi, eax
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
cmp word [esp + 0x24], dx
jne 0x1010d35b
cmp word [esp + 0x30], 0x38
jne 0x1010d35b
mov esi, dword [esp + 0x20]
mov dword [esp + 0x20], 0
push esi
push edx
lea edx, [esp + 0x28]
push edx
call fcn.100f1920
add esp, 0xc
mov dword [esp + 0x20], esi
test eax, eax
je 0x1010d35b
mov edi, dword [esp + 0x88]
mov ecx, 0x14
lea esi, [esp + 0x20]
mov dword [esp + 0x14], 1
rep movsd dword es:[edi], dword [esi]
jmp 0x1010d35b
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x1010d4b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101ec1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x102834e0], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x64]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x102834e8], eax
lea eax, [esp + 0x10]
push 1
push eax
push esi
push ebx
mov dword [esp + 0x20], esi
call edi
push esi
push esi
push 0x90
push ebx
mov dword [esp + 0x28], eax
call edi
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x14], esi
call fcn.100af020
mov edx, dword [esp + 0x6c]
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x60], esi
mov cx, word [edx + 0x10]
push ecx
lea ecx, [esp + 0x6c]
call fcn.100af200
lea ecx, [esp + 0x64]
call fcn.100af1f0
lea ecx, [esp + 0x64]
mov esi, eax
call fcn.100af930
cmp ebx, 0xffffffff
mov ebp, eax
je 0x1010d630
test ebp, ebp
je 0x1010d630
test esi, esi
je 0x1010d630
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1010d5cc
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x70], 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x70]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1010d649
mov dword [0x102834e0], 0xd
mov dword [0x102834e4], 0x222a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], 0xffffffff
call fcn.100af150
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x1010d6e5
mov dword [0x102834e0], 0xf
mov dword [0x102834e4], 0x2e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x221d
jmp 0x1010d5c1
lea ecx, [esp + 0x64]
call fcn.100af1f0
push eax
lea ecx, [esp + 0x68]
call fcn.100af930
mov ecx, dword [esp + 0x6c]
push eax
push ecx
call fcn.1010e950
add esp, 0xc
test eax, eax
je 0x1010d5cc
lea ecx, [esp + 0x64]
call fcn.100af910
mov edx, 0x38
cmp word [eax + 4], dx
jne 0x1010d5cc
mov ecx, 0xe
mov esi, eax
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
cmp word [esp + 0x20], dx
jne 0x1010d5cc
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
push esi
push edx
lea edx, [esp + 0x24]
push edx
call fcn.100f1920
add esp, 0xc
mov dword [esp + 0x1c], esi
test eax, eax
je 0x1010d5cc
mov edi, dword [esp + 0x70]
mov ecx, 0xe
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 1
rep movsd dword es:[edi], dword [esi]
jmp 0x1010d5cc
mov ecx, dword [esp + 0x44]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x50
ret