joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023310
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 0x10023368
push edi
call fcn.10023310
test eax, eax
jne 0x1002334c
xor eax, eax
jmp 0x100234cd
mov eax, dword [edi + 8]
test eax, eax
je 0x10023368
mov edi, dword [eax + 8]
push eax
mov ecx, esi
call fcn.10023310
test eax, eax
je 0x10023345
test edi, edi
mov eax, edi
jne 0x10023353
add dword [esi + 0x1a0], 1
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
sub eax, dword [esi + 0x18c]
cmp eax, 0x3e8
jb 0x100234a6
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 0x74]
call edx
test eax, eax
je 0x100233d3
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 0x2e8
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 0x100234cc
push 0x1fe
lea ecx, [esp + 0x26]
push 0
push ecx
mov word [esp + 0x2c], 0
call sub.ntdll.dll_memset
fild dword [esi + 0x1a0]
mov edx, dword [esi + 0x1a0]
add esp, 0xc
test edx, edx
jge 0x10023404
fadd qword [0x100644a0]
mov eax, dword [esi + 0x19c]
fild dword [esi + 0x19c]
test eax, eax
jge 0x1002341a
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 0x1002344e
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 + 0x18c], eax
call fcn.1001e7b0
mov ebx, dword [esp + 0x1c]
cmp dword [esi + 0x78], 0
push ebx
mov ecx, esi
je 0x100234ba
call fcn.10022890
test eax, eax
jne 0x100234c7
jmp 0x100234cc
call fcn.100217b0
test eax, eax
je 0x100233cc
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 0x100247d0
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.10024730
add esp, 8
test eax, eax
jne 0x1002481d
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10024660
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 0x10024850
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 0x10024815
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10024815
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret

Function at 0x10024890
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.10024730
add esp, 8
test eax, eax
jne 0x100248dd
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x72
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10024660
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 0x10024910
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 0x100248d5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x100248d5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x1002aba0
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.1002ab00
add esp, 8
test eax, eax
jne 0x1002abed
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.1002aa30
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 0x1002ac20
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 0x1002abe5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x1002abe5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret

Function at 0x1002ac60
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.1002ab00
add esp, 8
test eax, eax
jne 0x1002acad
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x72
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.1002aa30
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 0x1002ace0
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 0x1002aca5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x1002aca5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x1002af20
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.1002ae80
add esp, 8
test eax, eax
jne 0x1002af6d
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.1002adb0
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 0x1002afa0
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 0x1002af65
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x1002af65
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret

Function at 0x1002c890
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.1002c7f0
add esp, 8
test eax, eax
jne 0x1002c8dd
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.1002c720
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 0x1002c910
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 0x1002c8d5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x1002c8d5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x1002ca30
Capabilities:
Get volume information via ioctl

Disassembly:
sub esp, 0x68
push esi
push edi
call fcn.10059c10
mov ecx, dword [esp + 0x7c]
mov edx, dword [eax]
mov edx, dword [edx + 0x60]
push 0x80000000
push ecx
mov ecx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x1002ca93
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x4c
mov ecx, str..._ntfsstd.cpp
add esi, 8
call fcn.1002c720
push eax
mov eax, dword [esi]
push str._s:_Failed_to_open_volume_by_ZwCreateFile.
push edi
call eax
add esp, 0x10
pop edi
xor eax, eax
xor edx, edx
pop esi
add esp, 0x68
ret
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x60
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x90064
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1002caf6
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x60
mov ecx, str..._ntfsstd.cpp
add esi, 8
call fcn.1002c720
push eax
mov eax, dword [esi]
push str._s:_Send_FSCTL_GET_NTFS_VOLUME_DATA_Control_Code_failed.
push edi
call eax
add esp, 0x10
pop edi
xor eax, eax
xor edx, edx
pop esi
add esp, 0x68
ret
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x20]
sub edi, dword [esp + 0x28]
mov dword [ecx], 1
movzx ecx, word [esp + 0x88]
push ebx
mov ebx, dword [esp + 0x28]
sbb ebx, dword [esp + 0x30]
mov eax, ecx
cdq
mov dword [esp + 0xc], eax
mov eax, ecx
shl eax, 6
sub eax, ecx
mov dword [esp + 0x10], edx
mov ecx, edx
cdq
push ebp
mov esi, edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x2c]
add ebp, dword [esp + 0x8c]
push eax
adc esi, dword [esp + 0x94]
push ecx
push edx
call sub.ntdll.dll__allmul
cmp edx, esi
jb 0x1002cb70
ja 0x1002cb63
cmp eax, ebp
jbe 0x1002cb70
mov eax, dword [esp + 0x94]
mov dword [eax], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push edi
push ecx
push edx
call sub.ntdll.dll__allmul
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x68
ret
Function at 0x1002fdd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1006207e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100dd9d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi + 0x403c], edi
mov dword [esi + 0x4040], edi
mov dword [esi + 0x4044], edi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 0x4000
mov dword [esi + 0x402c], edx
mov dword [esi + 0x4024], eax
mov ax, word [esp + 0x38]
mov dword [esi + 0x4028], ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esi + 0x1c]
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov word [esi + 0x4030], ax
mov dword [esi + 0x4020], edi
mov dword [esi + 0x4034], ecx
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push edi
push edi
push edi
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x401c], edi
mov dword [esi + 0x4050], edi
call fcn.1002fba0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x1c

Function at 0x10030f60
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.10030ec0
add esp, 8
test eax, eax
jne 0x10030fad
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10030df0
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 0x10030fe0
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 0x10030fa5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10030fa5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x10033f20
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.10033e80
add esp, 8
test eax, eax
jne 0x10033f6d
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10033db0
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 0x10033fa0
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 0x10033f65
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10033f65
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x100490d0
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.10048f70
add esp, 8
test eax, eax
jne 0x1004911d
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x72
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10048ea0
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 0x10049150
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 0x10049115
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10049115
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x10049260
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1d0
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x1cc], eax
push ebx
push esi
mov eax, 0x64
cmp dword [esp + 0x1dc], eax
push edi
mov esi, ecx
jle 0x1004928e
mov dword [esp + 0x1e0], eax
fild dword [esp + 0x1e0]
mov edi, dword [esi + 0xa8]
mov ebx, dword [edi]
fmul qword [esi + 0xb8]
fiadd dword [esi + 0xc0]
call fcn.100594f0
push eax
mov eax, dword [ebx + 8]
mov ecx, edi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, 1
test byte [0x100e7364], al
jne 0x100492d6
or dword [0x100e7364], eax
call edi
mov dword [0x100e7360], eax
call edi
sub eax, dword [0x100e7360]
cmp eax, 0x3e8
jb 0x1004945f
xor ebx, ebx
push 0xfe
lea ecx, [esp + 0xde]
push ebx
push ecx
mov word [esp + 0xe4], bx
call sub.ntdll.dll_memset
fild qword [esi + 0xb0]
add esp, 0xc
fstp qword [esp + 0x10]
call edi
sub eax, dword [esi + 0xc4]
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x1004932d
fadd qword [0x100644a0]
fdiv qword [0x10064d08]
push 0x3e
lea edx, [esp + 0x9e]
push ebx
push edx
mov word [esp + 0xa4], bx
fdivr qword [esp + 0x1c]
fstp qword [esp + 0x1c]
call sub.ntdll.dll_memset
fild dword [esi + 0xdc]
mov eax, dword [esi + 0xdc]
test eax, eax
jge 0x10049369
fadd qword [0x100644a0]
fmul qword [esp + 0x1c]
call fcn.10059526
push edx
push eax
lea ecx, [esp + 0xac]
call fcn.1001df00
push 0x3e
lea ecx, [esp + 0x72]
push ebx
push ecx
mov word [esp + 0x78], bx
call sub.ntdll.dll_memset
push 0x3e
lea edx, [esp + 0x3e]
push ebx
push edx
mov word [esp + 0x44], bx
call sub.ntdll.dll_memset
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0xdc]
add esp, 0x2c
push ecx
push edx
push ebx
push eax
call sub.ntdll.dll__allmul
push edx
push eax
lea ecx, [esp + 0x60]
call fcn.1001df00
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
add esp, 8
push ebx
push eax
push ecx
push edx
call sub.ntdll.dll__allmul
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.1001df00
mov ebx, dword [sym.imp.MSVCR80.dll__swprintf]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0xe8]
push str.Moving_data:__s__s
push edx
call ebx
mov ecx, dword [esi + 0xa8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
add esp, 0x18
lea edx, [esp + 0xd8]
push edx
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0xe0]
push str._s__s
push eax
call ebx
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
add esp, 0x10
lea eax, [esp + 0xd8]
push eax
call edx
call edi
mov dword [0x100e7360], eax
mov ecx, dword [esp + 0x1d8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10059076
add esp, 0x1d0
ret 4
Function at 0x10054890
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.100547f0
add esp, 8
test eax, eax
jne 0x100548dd
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10054720
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 0x10054910
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 0x100548d5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x100548d5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret

Function at 0x10055db0
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.10055d10
add esp, 8
test eax, eax
jne 0x10055dfd
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x5d
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10055c40
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 0x10055e30
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 0x10055df5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10055df5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret
Function at 0x10055e70
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.10055d10
add esp, 8
test eax, eax
jne 0x10055ebd
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x72
mov ecx, str.....IncludeDiskIO.h
add esi, 8
call fcn.10055c40
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 0x10055ef0
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 0x10055eb5
mov eax, dword [esp + 8]
xor edx, edx
div esi
test edx, edx
jne 0x10055eb5
pop edi
lea eax, [edx + 1]
pop esi
add esp, 0x20
ret

Function at 0x10056e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100633d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100dd9d4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.1002aff0
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov word [esi + 0x38], ax
mov dword [esi + 0x2c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x10059076
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100dd9d4]
jne 0x10059080
repz ret
jmp fcn.1005968f