joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fd7d0
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.100fe2f0
add esp, 0x2c
test eax, eax
je 0x100fd8b8
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x100fd844
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.10128ee0
mov edx, dword [0x10271330]
mov ecx, dword [0x10271334]
add esp, 8
mov dword [0x10270af8], edx
mov edx, dword [0x10271338]
mov dword [0x10270afc], ecx
mov dword [0x10270b00], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x100fd87e
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.1010f190
mov ecx, dword [0x10270ba0]
mov edx, dword [0x10270ba4]
add esp, 8
mov dword [0x10270af8], ecx
mov ecx, dword [0x10270ba8]
mov dword [0x10270afc], edx
mov dword [0x10270b00], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x100fd8be
call fcn.101453a0
mov ecx, dword [0x10271940]
mov edx, dword [0x10271944]
add esp, 8
mov dword [0x10270af8], ecx
mov ecx, dword [0x10271948]
mov dword [0x10270afc], edx
mov dword [0x10270b00], 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 0x100fdd40
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x10270bac]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100fdd62
mov eax, dword [0x1027133c]
test eax, eax
jne 0x100fdd62
mov eax, dword [0x1027194c]
test eax, eax
je 0x100fdd66
test ebx, ebx
je 0x100fdda0
mov eax, dword [0x1024da78]
or esi, 0xffffffff
cmp eax, esi
jne 0x100fdda0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x1024da78], eax
je 0x100fdda0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100fdda0
mov eax, dword [0x1024da78]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1024da78], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.1010fb90
add esp, 0xc
test eax, eax
je 0x100fdde3
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.1012c460
add esp, 0x10
test eax, eax
je 0x100fdde3
push ebx
push esi
push edi
call fcn.1013b790
add esp, 0xc
test eax, eax
je 0x100fdde3
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10102d80
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 0x10102eeb
cmp esi, 0xffffffff
je 0x10102eeb
cmp dword [0x10270b08], ebp
je 0x10102eeb
mov ecx, dword [0x10270b10]
cmp ecx, ebp
je 0x10102eeb
mov eax, dword [0x10270b0c]
cmp eax, ebp
jge 0x10102dc9
neg eax
cmp ecx, eax
ja 0x10102eeb
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.1006625a
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x10102ee0
mov ecx, dword [0x10270b10]
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 [0x10270b10]
mov edi, dword [0x10270b0c]
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 0x10102ed2
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x10102e65
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.10149860
add esp, 0x18
jmp 0x10102e77
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 0x10102ed2
mov ebx, dword [0x10270ab4]
xor edx, edx
test ebx, ebx
jle 0x10102ed2
mov ebp, dword [0x10270ab0]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x10102eb8
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10102eca
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x10102ed2
jmp 0x10102e9e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10066289
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 0x1010d120
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.1010b680
push eax
call fcn.1014cfd0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1010d185
mov dword [0x10270ba0], 0xc
mov dword [0x10270ba4], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10270ba8], 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.1006625a
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010d1e9
mov dword [0x10270ba0], 0x21
mov dword [0x10270ba4], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10270ba8], 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 0x1010d2d3
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 0x1010d26a
test eax, eax
jne 0x1010d26a
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.10149960
add esp, 0x14
test eax, eax
je 0x1010d2e9
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.1014a460
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x1010d308
mov dword [0x10270ba0], 0x11
mov dword [0x10270ba4], 0x14cb
jmp 0x1010d2fd
mov dword [0x10270ba0], 0xe
mov dword [0x10270ba4], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10270ba8], eax
push esi
call fcn.10066289
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x1010f190
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x10270ba0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10270ba8], 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.1010b910
add esp, 8
test eax, eax
jne 0x1010f1f3
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 0x1010f204
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x10110190
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 [0x10270ba0], ebp
call ebx
mov dword [0x10270ba8], 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 0x101102cc
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.10117090
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 0x10110235
test edi, edi
jne 0x10110235
test ebp, ebp
jne 0x10110235
test ebx, ebx
jne 0x10110235
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x10110235
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x101102c1
cmp eax, 3
jne 0x101102c1
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.1014a410
add esp, 0xc
test eax, eax
je 0x101102bd
mov eax, dword [esp + 0x40]
test esi, esi
je 0x10110265
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x10110270
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x1011027c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x1011029b
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 0x101102ad
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x101102bd
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 0x1011035d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x1011035d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10110378
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 0x10110356
mov dword [0x10270ba0], 0xd
mov dword [0x10270ba4], 0x29f7
call ebx
mov dword [0x10270ba8], eax
jmp 0x1011037a
mov edi, 1
jmp 0x1011037a
mov dword [0x10270ba0], 1
mov dword [0x10270ba4], 0x29ea
call ebx
mov dword [0x10270ba8], 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 0x101101de
mov dword [0x10270ba0], 0xf
mov dword [0x10270ba4], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x10270ba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x10111550
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.1010b680
push eax
call fcn.1014cfd0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x101115b5
mov dword [0x10270ba0], 0xc
mov dword [0x10270ba4], 0x1da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10270ba8], 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.1006625a
mov esi, eax
add esp, 4
test esi, esi
jne 0x10111619
mov dword [0x10270ba0], 0x21
mov dword [0x10270ba4], 0x1db1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10270ba8], 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 0x10111701
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 0x1011169a
test eax, eax
jne 0x1011169a
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 0x10111717
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.1014a460
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x10111736
mov dword [0x10270ba0], 0x11
mov dword [0x10270ba4], 0x1dbd
jmp 0x1011172b
mov dword [0x10270ba0], 0xe
mov dword [0x10270ba4], 0x1dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10270ba8], eax
push esi
call fcn.10066289
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x10113440
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 [0x10270ba0], ebx
call esi
mov ebp, dword [esp + 0x3f4]
mov dword [0x10270ba8], 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 0x101134f2
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x101134f2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x101135fc
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 0x10113512
mov dword [0x10270ba0], 0xd
mov dword [0x10270ba4], 0x29f7
call esi
mov dword [0x10270ba8], eax
jmp 0x101135fc
mov dword [0x10270ba0], 1
mov dword [0x10270ba4], 0x29ea
call esi
mov dword [0x10270ba8], eax
jmp 0x101135fc
mov ecx, 4
mov edi, 0x1024db70
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1011352b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10113550
mov ecx, 4
mov edi, 0x1024db48
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10113548
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x101135fc
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x101135b2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x101135fc
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 0x101135d3
mov dword [0x10270ba0], 0xd
mov dword [0x10270ba4], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10270ba8], eax
jmp 0x101135fc
mov dword [0x10270ba0], 1
mov dword [0x10270ba4], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10270ba8], eax
jmp 0x101135fc
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.10115c20
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 0x1011e910
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 0x1011e947
mov ecx, 0xc
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
jmp 0x1011ea0b
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 0x1011e9d9
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x1011e9d9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1011e9f8
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 0x1011e9d2
mov dword [0x10270ba0], 0xd
mov dword [0x10270ba4], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10270ba8], eax
jmp 0x1011e9fa
mov edi, 1
jmp 0x1011e9fa
mov dword [0x10270ba0], 1
mov dword [0x10270ba4], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10270ba8], 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 0x1011ea1a
test byte [esp + 0x30], 0x20
je 0x1011ea1a
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret
Function at 0x10128ee0
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 [0x10271330], ebx
call esi
mov ebp, dword [esp + 0xe4]
mov dword [0x10271338], eax
cmp dword [0x1027133c], ebx
je 0x10128fee
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.10129a70
add esp, 8
test eax, eax
je 0x10129004
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.1011f720
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, ebx
jne 0x1012901a
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.10129ce0
add esp, 0xc
test eax, eax
je 0x10129030
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.10129f60
add esp, 0x10
test eax, eax
je 0x10129046
mov eax, dword [esp + 0xe8]
cmp eax, ebx
je 0x10128fdf
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 [0x10271330], 2
mov dword [0x10271334], 0x13f2
jmp 0x1012905a
mov dword [0x10271330], 7
mov dword [0x10271334], 0x13f9
jmp 0x1012905a
mov dword [0x10271330], 0x31
mov dword [0x10271334], 0x13ff
jmp 0x1012905a
mov dword [0x10271330], 8
mov dword [0x10271334], 0x1406
jmp 0x1012905a
mov dword [0x10271330], 8
mov dword [0x10271334], 0x140d
call esi
mov edx, dword [esp + 0xe8]
mov dword [0x10271338], 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 0x101314c0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x1013151f
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x1013151f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1013151f
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 0x10131519
mov dword [0x10271330], 0xe
mov dword [0x10271334], 0x2263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10271338], eax
xor eax, eax
ret
mov eax, 1
ret
mov dword [0x10271330], 1
mov dword [0x10271334], 0x225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10271338], eax
xor eax, eax
ret