joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ca50
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 3
mov esi, ecx
push 3
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000cab5
cmp dword [esp + 0x18], 1
jle 0x1000cc2a
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, dword [sym.imp.MSVCR80.dll_malloc]
push 0x1a0
call ebp
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1000cad3
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push 0x1a0
push 0
push ebx
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, ebx
call fcn.10003960
mov edx, dword [esp + 0x1c]
push esi
mov dword [ebx + 0x144], edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
push 0x48
mov dword [ebx + 0x118], eax
call ebp
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1000cb19
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push 0x48
push 0
push ebp
call sub.ntdll.dll_memset
mov dword [ebp + 0x44], 3
mov dword [ebp], edi
add esp, 0xc
mov dword [ebx + 0x148], ebp
mov dword [ebx + 0x128], 0x1000cc40
mov dword [ebx + 0x12c], 0x1000cd30
mov dword [ebx + 0x130], 0x1000d0c0
mov dword [ebx + 0x134], 0x1000d090
test byte [ebp + 0x44], 2
mov eax, 0x1000d1c0
jne 0x1000cb6e
mov eax, 0x1000d1f0
mov esi, edi
mov dword [ebx + 0x138], eax
mov dword [ebx + 0x13c], 0x1000d290
mov dword [ebx + 0x190], 6
mov dword [ebx + 0x140], 0x1000cea0
call fcn.1000c760
lea esi, [ebx + 0x100]
mov dword [ebx + 0x198], eax
cmp dword [esi + 8], 0
jne 0x1000cbb0
call fcn.1000c8c0
mov esi, dword [esp + 0x10]
call fcn.1000c7f0
mov ecx, edi
mov dword [ebx + 0x150], eax
mov dword [ebx + 0x154], edx
call fcn.100039f0
mov esi, ebx
call fcn.10003780
mov eax, dword [ebx + 0x150]
or eax, dword [ebx + 0x154]
je 0x1000cbe9
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.MSVCR80.dll_free]
push ebp
call esi
mov eax, dword [ebx + 0x124]
add esp, 4
test eax, eax
je 0x1000cc05
push eax
call esi
add esp, 4
mov ecx, dword [ebx + 0x118]
push ecx
call esi
mov edx, dword [ebx + 0x11c]
add esp, 4
push edx
call esi
add esp, 4
push ebx
call esi
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1000cf10
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0x1000
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000cf33
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push ebx
push esi
push 0x1000
push 0
push edi
call sub.ntdll.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov esi, 0x200
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebp
call ebx
test eax, eax
je 0x1000cf66
cmp dword [esp + 0x10], esi
je 0x1000cf82
add esi, esi
cmp esi, 0x1000
jbe 0x1000cf50
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
pop ecx
ret
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret

Function at 0x1000cfa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x148]
push esi
mov esi, dword [eax]
push edi
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x1000cff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000cff0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x20]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x1000d014
mov esi, dword [esp + 0x1c]
jmp 0x1000d030
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x45d
je 0x1000d026
cmp eax, 0x1b
jne 0x1000d030
mov dword [0x100e8a8c], 1
cmp esi, edi
je 0x1000d07c
test esi, esi
jg 0x1000d067
mov edx, dword [esp + 0x2c]
cmp edx, dword [ebp + 0x114]
ja 0x1000d063
jb 0x1000d04e
cmp ebx, dword [ebp + 0x110]
jae 0x1000d063
test esi, esi
jge 0x1000d065
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jle 0x1000d07c
mov ecx, dword [esp + 0x20]
sub edi, esi
push edi
lea edx, [esi + ecx]
push 0
push edx
call sub.ntdll.dll_memset
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1000d110
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x20]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x148]
mov esi, dword [eax]
mov eax, dword [esp + 0x28]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x1000d189
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x1000d189
call ebx
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x400
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000d1a9
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x188], 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x10010e60
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov eax, edi
call fcn.10010dc0
add esp, 8
test eax, eax
jne 0x10010ead
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10010c40
mov edx, dword [esi]
push eax
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push edi
call edx
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x70000
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov esi, 0x200
je 0x10010ee0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
imul eax, esi
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10010ea5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10010ea5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x10010f20
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov eax, edi
call fcn.10010dc0
add esp, 8
test eax, eax
jne 0x10010f6d
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x72
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10010c40
mov edx, dword [esi]
push eax
push str._s:_Failed_to_SetSectorPos_in_WriteSector.
push edi
call edx
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x70000
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov esi, 0x200
je 0x10010fa0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
imul eax, esi
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010f65
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10010f65
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x10014a80
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov eax, edi
call fcn.100149e0
add esp, 8
test eax, eax
jne 0x10014acd
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.100147d0
mov edx, dword [esi]
push eax
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push edi
call edx
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x70000
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov esi, 0x200
je 0x10014b00
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
imul eax, esi
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014ac5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10014ac5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x10016fe0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov eax, edi
call fcn.10016f40
add esp, 8
test eax, eax
jne 0x1001702d
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10016e70
mov edx, dword [esi]
push eax
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push edi
call edx
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x70000
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov esi, 0x200
je 0x10017060
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
imul eax, esi
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017025
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10017025
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret

Function at 0x100170a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov eax, edi
call fcn.10016f40
add esp, 8
test eax, eax
jne 0x100170ed
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x72
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10016e70
mov edx, dword [esi]
push eax
push str._s:_Failed_to_SetSectorPos_in_WriteSector.
push edi
call edx
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x70000
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov esi, 0x200
je 0x10017120
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
imul eax, esi
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100170e5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x100170e5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x10019a50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x214
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push edi
mov edi, dword [ebp + 4]
test edi, edi
mov esi, ecx
mov dword [esp + 0x18], ebp
je 0x10019aa9
push edi
call fcn.10019a50
test eax, eax
je 0x10019bf1
mov eax, dword [edi + 8]
test eax, eax
je 0x10019aa9
mov edi, dword [eax + 8]
push eax
mov ecx, esi
call fcn.10019a50
test eax, eax
je 0x10019bf1
test edi, edi
mov eax, edi
jne 0x10019a90
cmp byte [ebp + 0x10], 1
jne 0x10019bf5
cmp byte [ebp + 0x11], 1
je 0x10019bf5
add dword [esi + 0x1b8], 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [esi + 0x198]
cmp eax, 0x3e8
jb 0x10019bbb
push 0x1fe
lea eax, [esp + 0x26]
push 0
push eax
mov word [esp + 0x2c], 0
call sub.ntdll.dll_memset
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1b4]
mov eax, ecx
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x10019b19
fadd qword [0x100644a0]
mov eax, edx
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x10019b2d
fadd qword [0x100644a0]
fdivp st(1)
fmul qword [0x10064600]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov edi, dword [esp + 0x14]
cmp edi, 0x64
fldcw word [esp + 0x12]
jbe 0x10019b61
mov edi, 0x64
mov ebp, dword [sym.imp.MSVCR80.dll__swprintf]
push edi
push edx
push ecx
lea ecx, [esp + 0x2c]
push str.File_Items_Updating___u__u___d___...
push ecx
call ebp
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add esp, 0x14
lea eax, [esp + 0x20]
push eax
call edx
push edi
lea eax, [esp + 0x24]
push str.Status:_d
push eax
call ebp
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call edx
call ebx
push edi
mov ecx, esi
mov dword [esi + 0x198], eax
call fcn.1001e7b0
mov ebp, dword [esp + 0x1c]
push ebp
mov ecx, esi
call fcn.10019530
test eax, eax
pop ebx
jne 0x10019bf5
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x6fa
mov ecx, str..._fatresize.cpp
add esi, 8
call fcn.10016e70
push eax
mov eax, dword [esi]
push str._s:_Failed_to_Write1stClusNumber.
push edi
call eax
add esp, 0x10
xor eax, eax
jmp 0x10019bfa
mov eax, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10059076
add esp, 0x214
ret 4
Function at 0x1001c8d0
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x214
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x21c]
push esi
push edi
mov edi, dword [ebx + 4]
test edi, edi
mov esi, ecx
mov dword [esp + 0x18], ebx
je 0x1001c928
push edi
call fcn.1001c8d0
test eax, eax
jne 0x1001c90c
xor eax, eax
jmp 0x1001ca8d
mov eax, dword [edi + 8]
test eax, eax
je 0x1001c928
mov edi, dword [eax + 8]
push eax
mov ecx, esi
call fcn.1001c8d0
test eax, eax
je 0x1001c905
test edi, edi
mov eax, edi
jne 0x1001c913
add dword [esi + 0x1b0], 1
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
sub eax, dword [esi + 0x198]
cmp eax, 0x3e8
jb 0x1001ca66
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 0x74]
call edx
test eax, eax
je 0x1001c993
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push 0x17
call edx
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x34f
mov ecx, str..._fatresize.cpp
add esi, 8
call fcn.10016e70
push eax
mov eax, dword [esi]
push 0x10064608
push edi
call eax
add esp, 0x10
xor eax, eax
jmp 0x1001ca8c
push 0x1fe
lea ecx, [esp + 0x26]
push 0
push ecx
mov word [esp + 0x2c], 0
call sub.ntdll.dll_memset
fild dword [esi + 0x1b0]
mov edx, dword [esi + 0x1b0]
add esp, 0xc
test edx, edx
jge 0x1001c9c4
fadd qword [0x100644a0]
mov eax, dword [esi + 0x1ac]
fild dword [esi + 0x1ac]
test eax, eax
jge 0x1001c9da
fadd qword [0x100644a0]
fdivp st(1)
fmul qword [0x10064600]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov edi, dword [esp + 0x14]
cmp edi, 0x64
fldcw word [esp + 0x12]
jbe 0x1001ca0e
mov edi, 0x64
mov ebx, dword [sym.imp.MSVCR80.dll__swprintf]
push edi
lea ecx, [esp + 0x24]
push str.Filesystem_Analysing___d___...
push ecx
call ebx
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call edx
push edi
lea eax, [esp + 0x24]
push str.Status:_d
push eax
call ebx
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call edx
call ebp
push edi
mov ecx, esi
mov dword [esi + 0x198], eax
call fcn.1001e7b0
mov ebx, dword [esp + 0x1c]
cmp dword [esi + 0x78], 0
push ebx
mov ecx, esi
je 0x1001ca7a
call fcn.1001bf80
test eax, eax
jne 0x1001ca87
jmp 0x1001ca8c
call fcn.1001aba0
test eax, eax
je 0x1001c98c
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10059076
add esp, 0x214
ret 4
Function at 0x1001dd80
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov eax, edi
call fcn.1001dce0
add esp, 8
test eax, eax
jne 0x1001ddcd
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.1001dc10
mov edx, dword [esi]
push eax
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push edi
call edx
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x70000
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov esi, 0x200
je 0x1001de00
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
imul eax, esi
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001ddc5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x1001ddc5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret

Function at 0x1001de40
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov eax, edi
call fcn.1001dce0
add esp, 8
test eax, eax
jne 0x1001de8d
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x72
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.1001dc10
mov edx, dword [esi]
push eax
push str._s:_Failed_to_SetSectorPos_in_WriteSector.
push edi
call edx
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x70000
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov esi, 0x200
je 0x1001dec0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
imul eax, esi
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001de85
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x1001de85
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x10020910
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x214
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push edi
mov edi, dword [ebp + 4]
test edi, edi
mov esi, ecx
mov dword [esp + 0x18], ebp
je 0x10020965
push edi
call fcn.10020910
test eax, eax
je 0x100209bc
mov eax, dword [edi + 8]
test eax, eax
je 0x10020965
lea esp, [esp]
mov edi, dword [eax + 8]
push eax
mov ecx, esi
call fcn.10020910
test eax, eax
je 0x100209bc
test edi, edi
mov eax, edi
jne 0x10020950
cmp byte [ebp + 0x10], 1
jne 0x10020afb
cmp byte [ebp + 0x11], 1
je 0x10020afb
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 0x74]
call edx
test eax, eax
je 0x100209c3
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push 0x17
call edx
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x701
mov ecx, str..._fatcpyex.cpp
add esi, 8
call fcn.1001dc10
push eax
mov eax, dword [esi]
push 0x10064608
push edi
call eax
add esp, 0x10
xor eax, eax
jmp 0x10020b00
add dword [esi + 0x1a8], 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [esi + 0x18c]
cmp eax, 0x3e8
jb 0x10020ac1
push 0x1fe
lea ecx, [esp + 0x26]
push 0
push ecx
mov word [esp + 0x2c], 0
call sub.ntdll.dll_memset
mov ecx, dword [esi + 0x1a8]
mov edx, dword [esi + 0x1a4]
mov eax, ecx
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x10020a1f
fadd qword [0x100644a0]
mov eax, edx
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x10020a33
fadd qword [0x100644a0]
fdivp st(1)
fmul qword [0x10064600]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov edi, dword [esp + 0x14]
cmp edi, 0x64
fldcw word [esp + 0x12]
jbe 0x10020a67
mov edi, 0x64
mov ebp, dword [sym.imp.MSVCR80.dll__swprintf]
push edi
push edx
push ecx
lea ecx, [esp + 0x2c]
push str.File_Items_Updating___u__u___d___...
push ecx
call ebp
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add esp, 0x14
lea eax, [esp + 0x20]
push eax
call edx
push edi
lea eax, [esp + 0x24]
push str.Status:_d
push eax
call ebp
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call edx
call ebx
push edi
mov ecx, esi
mov dword [esi + 0x18c], eax
call fcn.1001e7b0
mov ebp, dword [esp + 0x1c]
push ebp
mov ecx, esi
call fcn.10020280
test eax, eax
pop ebx
jne 0x10020afb
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x71a
mov ecx, str..._fatcpyex.cpp
add esi, 8
call fcn.1001dc10
push eax
mov eax, dword [esi]
push str._s:_Failed_to_Write1stClusNumber.
push edi
call eax
add esp, 0x10
xor eax, eax
jmp 0x10020b00
mov eax, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10059076
add esp, 0x214
ret 4