joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10130510
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x1030bcb4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x10130532
mov eax, dword [0x1030c43c]
test eax, eax
jne 0x10130532
mov eax, dword [0x1030ca4c]
test eax, eax
je 0x10130536
test ebx, ebx
je 0x10130570
mov eax, dword [0x102e8368]
or esi, 0xffffffff
cmp eax, esi
jne 0x10130570
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x102e8368], eax
je 0x10130570
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10130570
mov eax, dword [0x102e8368]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x102e8368], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.10142360
add esp, 0xc
test eax, eax
je 0x101305b3
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.1015ec10
add esp, 0x10
test eax, eax
je 0x101305b3
push ebx
push esi
push edi
call fcn.1016df40
add esp, 0xc
test eax, eax
je 0x101305b3
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10135550
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 0x101356bb
cmp esi, 0xffffffff
je 0x101356bb
cmp dword [0x1030bc10], ebp
je 0x101356bb
mov ecx, dword [0x1030bc18]
cmp ecx, ebp
je 0x101356bb
mov eax, dword [0x1030bc14]
cmp eax, ebp
jge 0x10135599
neg eax
cmp ecx, eax
ja 0x101356bb
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.1024ac71
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x101356b0
mov ecx, dword [0x1030bc18]
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 [0x1030bc18]
mov edi, dword [0x1030bc14]
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 0x101356a2
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x10135635
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.1017c000
add esp, 0x18
jmp 0x10135647
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 0x101356a2
mov ebx, dword [0x1030bbbc]
xor edx, edx
test ebx, ebx
jle 0x101356a2
mov ebp, dword [0x1030bbb8]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x10135688
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1013569a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x101356a2
jmp 0x1013566e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1024ac9a
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 0x10142960
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 [0x1030bca8], ebp
call ebx
mov dword [0x1030bcb0], 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 0x10142a9c
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.10149850
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 0x10142a05
test edi, edi
jne 0x10142a05
test ebp, ebp
jne 0x10142a05
test ebx, ebx
jne 0x10142a05
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x10142a05
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x10142a91
cmp eax, 3
jne 0x10142a91
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.1017cbb0
add esp, 0xc
test eax, eax
je 0x10142a8d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x10142a35
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x10142a40
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x10142a4c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x10142a6b
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 0x10142a7d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x10142a8d
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 0x10142b2d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x10142b2d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10142b48
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 0x10142b26
mov dword [0x1030bca8], 0xd
mov dword [0x1030bcac], 0x29f7
call ebx
mov dword [0x1030bcb0], eax
jmp 0x10142b4a
mov edi, 1
jmp 0x10142b4a
mov dword [0x1030bca8], 1
mov dword [0x1030bcac], 0x29ea
call ebx
mov dword [0x1030bcb0], 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 0x101429ae
mov dword [0x1030bca8], 0xf
mov dword [0x1030bcac], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x1030bcb0], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x10143d20
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.1013de50
push eax
call fcn.1017f770
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x10143d85
mov dword [0x1030bca8], 0xc
mov dword [0x1030bcac], 0x1da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1030bcb0], 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.1024ac71
mov esi, eax
add esp, 4
test esi, esi
jne 0x10143de9
mov dword [0x1030bca8], 0x21
mov dword [0x1030bcac], 0x1db1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1030bcb0], 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 0x10143ed1
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 0x10143e6a
test eax, eax
jne 0x10143e6a
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 0x10143ee7
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.1017cc00
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x10143f06
mov dword [0x1030bca8], 0x11
mov dword [0x1030bcac], 0x1dbd
jmp 0x10143efb
mov dword [0x1030bca8], 0xe
mov dword [0x1030bcac], 0x1dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030bcb0], eax
push esi
call fcn.1024ac9a
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x10145c00
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 [0x1030bca8], ebx
call esi
mov ebp, dword [esp + 0x3f4]
mov dword [0x1030bcb0], 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 0x10145cb2
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x10145cb2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10145dbc
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 0x10145cd2
mov dword [0x1030bca8], 0xd
mov dword [0x1030bcac], 0x29f7
call esi
mov dword [0x1030bcb0], eax
jmp 0x10145dbc
mov dword [0x1030bca8], 1
mov dword [0x1030bcac], 0x29ea
call esi
mov dword [0x1030bcb0], eax
jmp 0x10145dbc
mov ecx, 4
mov edi, 0x102e845c
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10145ceb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10145d10
mov ecx, 4
mov edi, 0x102e8434
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10145d08
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10145dbc
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x10145d72
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10145dbc
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 0x10145d93
mov dword [0x1030bca8], 0xd
mov dword [0x1030bcac], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030bcb0], eax
jmp 0x10145dbc
mov dword [0x1030bca8], 1
mov dword [0x1030bcac], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030bcb0], eax
jmp 0x10145dbc
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.101483e0
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 0x101510d0
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 0x10151107
mov ecx, 0xc
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
jmp 0x101511cb
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 0x10151199
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x10151199
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x101511b8
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 0x10151192
mov dword [0x1030bca8], 0xd
mov dword [0x1030bcac], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030bcb0], eax
jmp 0x101511ba
mov edi, 1
jmp 0x101511ba
mov dword [0x1030bca8], 1
mov dword [0x1030bcac], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030bcb0], 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 0x101511da
test byte [esp + 0x30], 0x20
je 0x101511da
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret
Function at 0x10163c70
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x10163ccf
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x10163ccf
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10163ccf
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 0x10163cc9
mov dword [0x1030c430], 0xe
mov dword [0x1030c434], 0x2263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030c438], eax
xor eax, eax
ret
mov eax, 1
ret
mov dword [0x1030c430], 1
mov dword [0x1030c434], 0x225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030c438], eax
xor eax, eax
ret
Function at 0x10168090
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x1030c430], ebx
call esi
mov dword [0x1030c438], eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], bl
mov ebp, dword [esp + 0xf8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x64]
push eax
push ebp
call fcn.10169100
add esp, 8
test eax, eax
jne 0x10168104
mov dword [0x1030c430], 0xf
mov dword [0x1030c434], 0x2ba4
call esi
pop edi
pop esi
mov dword [0x1030c438], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
lea ecx, [esp + 0x64]
test ecx, ecx
je 0x1016812e
push 0x10
lea edx, [esp + 0x68]
push 0x102e87b0
push edx
call fcn.100777f0
add esp, 0xc
test eax, eax
jne 0x1016812e
test byte [esp + 0x96], 1
jne 0x1016813b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ebx
push ecx
push ebx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.10151ee0
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, ebx
je 0x1016818f
mov dword [0x1030c430], 0x31
mov dword [0x1030c434], 0x2bb0
call esi
pop edi
pop esi
mov dword [0x1030c438], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xa8]
mov dword [esp + 0xa4], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x64]
push eax
push ecx
push ebp
call fcn.10169340
add esp, 0xc
test eax, eax
jne 0x101681e8
mov dword [0x1030c430], 0x14
mov dword [0x1030c434], 0x2bb9
call esi
pop edi
pop esi
mov dword [0x1030c438], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], ebx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0xa4]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
push ebp
call fcn.101695c0
add byte [ebx - 0x3f7aef3c], al
Function at 0x10169340
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10264c28
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 [0x1030c430], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x80]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x1030c438], 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.100a2e50
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.100a3060
lea ecx, [esp + 0x80]
call fcn.100a3050
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.100a3770
cmp ebx, 0xffffffff
mov ebp, eax
je 0x101694d2
test ebp, ebp
je 0x101694d2
test esi, esi
je 0x101694d2
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1016946b
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 0x101694eb
mov dword [0x1030c430], 0xd
mov dword [0x1030c434], 0x2251
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030c438], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0xffffffff
call fcn.100a2fb0
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 0x101695a2
mov dword [0x1030c430], 0xf
mov dword [0x1030c434], 0x2e7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030c438], eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov dword [0x1030c430], 1
mov dword [0x1030c434], 0x2244
jmp 0x10169460
lea ecx, [esp + 0x80]
call fcn.100a3050
push eax
lea ecx, [esp + 0x84]
call fcn.100a3770
mov ecx, dword [esp + 0x88]
push eax
push ecx
call fcn.1016aa50
add esp, 0xc
test eax, eax
je 0x1016946b
lea ecx, [esp + 0x80]
call fcn.100a3750
mov edx, 0x50
cmp word [eax + 4], dx
jne 0x1016946b
mov ecx, 0x14
mov esi, eax
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
cmp word [esp + 0x24], dx
jne 0x1016946b
cmp word [esp + 0x30], 0x38
jne 0x1016946b
mov esi, dword [esp + 0x20]
mov dword [esp + 0x20], 0
push esi
push edx
lea edx, [esp + 0x28]
push edx
call fcn.1017cbb0
add esp, 0xc
mov dword [esp + 0x20], esi
test eax, eax
je 0x1016946b
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 0x1016946b
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x101695c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10264c48
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 [0x1030c430], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x64]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x1030c438], 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.100a2e50
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.100a3060
lea ecx, [esp + 0x64]
call fcn.100a3050
lea ecx, [esp + 0x64]
mov esi, eax
call fcn.100a3770
cmp ebx, 0xffffffff
mov ebp, eax
je 0x10169740
test ebp, ebp
je 0x10169740
test esi, esi
je 0x10169740
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x101696dc
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 0x10169759
mov dword [0x1030c430], 0xd
mov dword [0x1030c434], 0x2251
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030c438], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], 0xffffffff
call fcn.100a2fb0
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 0x101697f5
mov dword [0x1030c430], 0xf
mov dword [0x1030c434], 0x2eb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030c438], eax
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov dword [0x1030c430], 1
mov dword [0x1030c434], 0x2244
jmp 0x101696d1
lea ecx, [esp + 0x64]
call fcn.100a3050
push eax
lea ecx, [esp + 0x68]
call fcn.100a3770
mov ecx, dword [esp + 0x6c]
push eax
push ecx
call fcn.1016aa50
add esp, 0xc
test eax, eax
je 0x101696dc
lea ecx, [esp + 0x64]
call fcn.100a3750
mov edx, 0x38
cmp word [eax + 4], dx
jne 0x101696dc
mov ecx, 0xe
mov esi, eax
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
cmp word [esp + 0x20], dx
jne 0x101696dc
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
push esi
push edx
lea edx, [esp + 0x24]
push edx
call fcn.1017cbb0
add esp, 0xc
mov dword [esp + 0x1c], esi
test eax, eax
je 0x101696dc
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 0x101696dc
mov ecx, dword [esp + 0x44]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x50
ret