joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push esi
push edi
mov edi, dword [eax]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov esi, eax
test esi, esi
jne 0x416e35
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00462b77
add esp, 0x210
ret 4

Function at 0x417740
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x464d78
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call edi
push 0x10
call edi
push 0xa0a0a0
push 1
push 0
lea ecx, [esp + 0x1c]
call sub.MFC80U.DLL_Ordinal_502
mov eax, dword [esp + 0x34]
push 0
push 0
mov dword [esp + 0x34], 0
mov ecx, dword [eax + 0x20]
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.MFC80U.DLL_Ordinal_2362
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov ebx, eax
call sub.MFC80U.DLL_Ordinal_5637
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
push edx
add edi, 0xffffffff
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_4117
mov ecx, dword [esp + 0x44]
push ecx
push edi
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_3995
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push ebx
mov ecx, esi
call eax
lea ecx, [esp + 0x10]
call sub.MFC80U.DLL_Ordinal_1925
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CPen.0
call fcn.00401090
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x24
ret 0x14
Function at 0x422a25
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x404], eax
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x1ff
lea ecx, [esp + 0x15]
push 0
push ecx
mov byte [esp + 0x1c], 0
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0x1ff
lea eax, [esp + 0x215]
push 0
push eax
mov byte [esp + 0x21c], 0
call sub.ntdll.dll_memset
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x220]
push str._sddclog.txt
push edx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x100000
mov ebp, eax
call sub.MFC80U.DLL_Ordinal_762
push 0x100000
mov edi, eax
push 0
push edi
call sub.ntdll.dll_memset
mov ecx, dword [esi + 4]
add esp, 0x10
push 0
push 0
push 0
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0x10]
push edx
push 0x100000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
mov eax, dword [esi + 4]
push eax
call edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00462b77
add esp, 0x408
ret

Function at 0x422f60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
push 0
lea eax, [esp + 0x10]
push eax
push 0xc00
push esi
mov dword [esp + 0x18], 0xc00
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x422ffc
call fcn.00422f00
test eax, eax
jne 0x422ffc
mov eax, 1
test byte [0x4f1904], al
jne 0x422fcb
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.00422e30
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call ecx
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 8]
push edx
push 0x200
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x422ff5
test eax, eax
je 0x422ff5
test ecx, 0x1ff
jne 0x422ff5
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x428680
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x428724
call fcn.00428620
test eax, eax
jne 0x428724
mov eax, 1
test byte [0x4f1904], al
jne 0x4286f3
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.00428550
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x428757
test ecx, ecx
je 0x42871d
test eax, eax
je 0x42871d
test ecx, 0x1ff
jne 0x42871d
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x428d00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x54
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x58]
cmp ecx, 0xe3c9e316
mov eax, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x64]
mov dl, 0x68
push edi
mov edi, dword [esp + 0x6c]
mov byte [esp + 0x20], 0x81
mov byte [esp + 0x21], 0x7d
mov byte [esp + 0x22], 0xf9
mov byte [esp + 0x23], 0x2d
mov byte [esp + 0x24], pe_nt_image_headers32
mov byte [esp + 0x25], 2
mov byte [esp + 0x26], 0x15
mov byte [esp + 0x27], 0xae
mov byte [esp + 0x40], 0x85
mov byte [esp + 0x41], 0xd2
mov byte [esp + 0x42], 0xe1
mov byte [esp + 0x43], 0xe9
mov byte [esp + 0x44], 4
mov byte [esp + 0x45], 0x34
mov byte [esp + 0x46], 0xcf
mov byte [esp + 0x47], 0xb3
mov byte [esp + 0x10], 0xbc
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], 0x33
mov byte [esp + 0x13], 0x11
mov byte [esp + 0x14], 0x71
mov byte [esp + 0x15], 0x4a
mov byte [esp + 0x16], 0x69
mov byte [esp + 0x17], 0xad
mov byte [esp + 0x30], 0x87
mov byte [esp + 0x31], 0xc0
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], 0xb6
mov byte [esp + 0x34], 0xb7
mov byte [esp + 0x35], 0x26
mov byte [esp + 0x36], 0x99
mov byte [esp + 0x37], 0xc7
mov byte [esp + 0x50], 0xa1
mov byte [esp + 0x51], 0x6a
mov byte [esp + 0x52], 0xbf
mov byte [esp + 0x53], 0xd5
mov byte [esp + 0x54], 1
mov byte [esp + 0x55], 0x79
mov byte [esp + 0x56], 0xd6
mov byte [esp + 0x57], 0xac
jne 0x428e37
cmp ax, 0xb5c
jne 0x428f53
shr eax, 0x10
cmp ax, 0x4db8
jne 0x428f53
mov eax, dword [esp + 0x20]
cmp eax, esi
jne 0x428f53
mov ecx, dword [esp + 0x24]
cmp ecx, edi
jne 0x428f53
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00462b77
add esp, 0x54
ret 0x10
cmp ecx, 0x5808c8aa
jne 0x428e86
cmp ax, 0x7e8f
jne 0x428f53
shr eax, 0x10
cmp ax, 0x42e0
jne 0x428f53
mov edx, dword [esp + 0x40]
cmp edx, esi
jne 0x428f53
mov eax, dword [esp + 0x44]
cmp eax, edi
jne 0x428f53
mov eax, 2
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00462b77
add esp, 0x54
ret 0x10
cmp ecx, 0xaf9b60a0
jne 0x428ed5
cmp ax, 0x1431
jne 0x428f53
shr eax, 0x10
cmp ax, 0x4f62
jne 0x428f53
mov ecx, dword [esp + 0x10]
cmp ecx, esi
jne 0x428f53
mov edx, dword [esp + 0x14]
cmp edx, edi
jne 0x428f53
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00462b77
add esp, 0x54
ret 0x10
cmp ecx, 0xebd0a0a2
jne 0x428f14
cmp ax, 0xb9e5
jne 0x428f53
shr eax, 0x10
cmp ax, 0x4433
jne 0x428f53
mov eax, dword [esp + 0x30]
cmp eax, esi
jne 0x428f53
mov ecx, dword [esp + 0x34]
cmp ecx, edi
jne 0x428f53
mov eax, 4
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00462b77
add esp, 0x54
ret 0x10
cmp ecx, 0xde94bba4
jne 0x428f53
cmp ax, 0x6d1
jne 0x428f53
shr eax, 0x10
cmp ax, 0x4d40
jne 0x428f53
mov edx, dword [esp + 0x50]
cmp edx, esi
jne 0x428f53
mov eax, dword [esp + 0x54]
cmp eax, edi
jne 0x428f53
mov eax, 5
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00462b77
add esp, 0x54
ret 0x10
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00462b77
add esp, 0x54
ret 0x10
Function at 0x4291d0
Capabilities:
Install driver

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call fcn.0044b250
test eax, eax
je 0x4291f0
push 0x4dc360
lea eax, [esp + 0xc]
push eax
jmp 0x4291fa
push str.RegistryMachineSystemCurrentControlSetServicesddcdrv
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
call fcn.00429040
test eax, eax
jge 0x42926d
mov eax, 1
test byte [0x4f1904], al
jne 0x42923d
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0xa6
add esi, 8
call fcn.00428f70
mov edx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_EnablePrivilege_SE_LOAD_DRIVER_PRIVILEGE__in_LoadDrive.
push 0x4f18dc
call edx
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
call sub.ntdll.dll_NtLoadDriver
cmp eax, 0xc000010e
je 0x4292b1
test eax, eax
jge 0x4292b1
call fcn.0041e870
mov edi, eax
mov esi, dword [edi]
push 0xb2
add esi, 8
call fcn.00428f70
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_NtLoadDriver.
push edi
call ecx
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4296f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebx, eax
push ebx
push 0
push edi
call sub.ntdll.dll_memset
add esp, 0xc
xor ebp, ebp
shr ebx, 1
mov esi, edi
je 0x429753
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push 2
push esi
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4297c5
cmp dword [esp + 0xc], 0
je 0x4297c5
mov dx, word [esi]
add ebp, 1
add esi, 2
cmp dx, 0xa
je 0x429753
cmp ebp, ebx
jb 0x429710
mov word [esi], 0
cmp byte [edi], 0xff
jne 0x429789
cmp byte [edi + 1], 0xfe
jne 0x429789
movzx eax, word [edi + 2]
lea ecx, [edi + 2]
xor edx, edx
test ax, ax
je 0x429783
add ecx, 2
mov word [edi + edx*2], ax
movzx eax, word [ecx]
add edx, 1
test ax, ax
jne 0x429771
mov word [edi + edx*2], 0
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429790
sub eax, edx
sar eax, 1
cmp eax, 2
jl 0x4297c0
cmp word [edi + eax*2 - 4], 0xd
jne 0x4297c0
cmp word [edi + eax*2 - 2], 0xa
jne 0x4297c0
xor ecx, ecx
mov word [edi + eax*2 - 4], cx
mov word [edi + eax*2 - 2], cx
pop esi
pop ebp
pop ebx
pop ecx
ret
mov word [esi + ebp*2], 0
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x42a010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1008
call sub.ntdll.dll__chkstk
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x1004], eax
push 0x3fe
lea eax, [esp + 0x40a]
push 0
push eax
mov word [esp + 0x410], 0
call sub.ntdll.dll_memset
push 0x3fe
lea ecx, [esp + 0x16]
push 0
push ecx
mov word [esp + 0x1c], 0
call sub.ntdll.dll_memset
add esp, 0x18
push 0x400
lea edx, [esp + 0x408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x404]
push 0x5c
push eax
call dword [sym.imp.ntdll.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x42a092
mov word [eax], 0
xor eax, eax
jmp 0x42a0a0
movzx ecx, word [esp + eax + 0x404]
mov word [esp + eax + 4], cx
add eax, 2
test cx, cx
jne 0x42a0a0
lea eax, [esp + 4]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x42a0c0
mov ecx, dword [str.cfg.ini]
mov edx, dword [0x4dc540]
mov dword [eax], ecx
mov ecx, dword [0x4dc544]
mov dword [eax + 4], edx
mov edx, dword [0x4dc548]
mov dword [eax + 8], ecx
mov cx, word [0x4dc54c]
mov dword [eax + 0xc], edx
push 0x7fe
lea edx, [esp + 0x80a]
push 0
push edx
mov word [eax + 0x10], cx
mov word [esp + 0x810], 0
call sub.ntdll.dll_memset
lea eax, [esp + 0x810]
push eax
lea ecx, [esp + 0x14]
call fcn.004297e0
add esp, 0x10
test eax, eax
jne 0x42a147
movzx ecx, word [eax + str.langen.txt]
mov word [esp + eax + 0x804], cx
add eax, 2
test cx, cx
jne 0x42a130
lea eax, [esp + 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a151
sub eax, edx
sar eax, 1
jne 0x42a187
xor eax, eax
jmp 0x42a170
movzx ecx, word [eax + str.langen.txt]
mov word [esp + eax + 0x804], cx
add eax, 2
test cx, cx
jne 0x42a170
lea ecx, [esp + 0x804]
push 0x3b
push ecx
call dword [sym.imp.ntdll.dll_wcschr]
add esp, 8
test eax, eax
je 0x42a1a3
mov word [eax], 0
push esi
push 0x400
lea edx, [esp + 0xc]
push 0
push edx
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.MSVCR80.dll__swprintf]
lea eax, [esp + 0x814]
push eax
lea ecx, [esp + 0x418]
push ecx
lea edx, [esp + 0x1c]
push str._s_s
push edx
call esi
add esp, 0x1c
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42a201
lea ecx, [esp + 0x408]
push ecx
lea edx, [esp + 0xc]
push str._slangen.txt
push edx
call esi
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x1008]
pop esi
xor ecx, esp
call fcn.00462b77
add esp, 0x1008
ret
Function at 0x42a8c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42a964
call fcn.0042a860
test eax, eax
jne 0x42a964
mov eax, 1
test byte [0x4f1904], al
jne 0x42a933
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.0042a790
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x42a997
test ecx, ecx
je 0x42a95d
test eax, eax
je 0x42a95d
test ecx, 0x1ff
jne 0x42a95d
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x42a9b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
push esi
push 0
mov esi, eax
mov eax, dword [esp + 0x20]
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42aa59
call fcn.0042a860
test eax, eax
jne 0x42aa59
mov eax, 1
test byte [0x4f1904], al
jne 0x42aa25
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x8e
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.0042a790
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_WriteSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x200
push edx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x42aa52
test eax, eax
je 0x42aa52
test ecx, 0x1ff
jne 0x42aa52
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x42c840
Capabilities:
Check os version

Disassembly:
sub esp, 0x158
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 8], 6
jb 0x42c8fb
mov eax, 1
test byte [0x4f18e8], al
jne 0x42c890
or dword [0x4f18e8], eax
mov dword [0x4f18e4], 0x4db4c0
mov edx, dword [0x4f18e4]
mov eax, dword [edx + 0x10]
push edi
mov ecx, 0x4f18e4
call eax
mov esi, eax
test esi, esi
jge 0x42c8c0
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00462b77
add esp, 0x158
ret
call fcn.0044b250
test eax, eax
push edi
push esi
je 0x42c8e3
lea ecx, [esp + 0x120]
push 0x4dbdc4
push ecx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
jmp 0x42c92d
lea edx, [esp + 0x120]
push str..ddcwrtDR_dDISK_d
push edx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
jmp 0x42c92d
push 0x3e
lea ecx, [esp + 0x11e]
push 0
push ecx
mov word [esp + 0x124], 0
call sub.ntdll.dll_memset
push edi
lea edx, [esp + 0x128]
push 0x4db4d4
push edx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x158]
pop esi
xor ecx, esp
call fcn.00462b77
add esp, 0x158
ret

Function at 0x42c9d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42ca74
call fcn.0042c970
test eax, eax
jne 0x42ca74
mov eax, 1
test byte [0x4f1904], al
jne 0x42ca43
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.0042c770
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x42caa7
test ecx, ecx
je 0x42ca6d
test eax, eax
je 0x42ca6d
test ecx, 0x1ff
jne 0x42ca6d
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x42cac0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42cb67
call fcn.0042c970
test eax, eax
jne 0x42cb67
mov eax, 1
test byte [0x4f1904], al
jne 0x42cb33
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x8e
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.0042c770
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_WriteSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x42cb9a
test ecx, ecx
je 0x42cb60
test eax, eax
je 0x42cb60
test ecx, 0x1ff
jne 0x42cb60
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x42e190
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42e234
call fcn.0042e130
test eax, eax
jne 0x42e234
mov eax, 1
test byte [0x4f1904], al
jne 0x42e203
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.0042e060
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x42e267
test ecx, ecx
je 0x42e22d
test eax, eax
je 0x42e22d
test ecx, 0x1ff
jne 0x42e22d
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x42e280
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0x200
push eax
push ecx
call sub.ntdll.dll__allmul
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42e327
call fcn.0042e130
test eax, eax
jne 0x42e327
mov eax, 1
test byte [0x4f1904], al
jne 0x42e2f3
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x8e
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.0042e060
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_SetSectorPos_in_WriteSector.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, esi
shl edx, 9
push edx
push eax
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
or esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x42e35a
test ecx, ecx
je 0x42e320
test eax, eax
je 0x42e320
test ecx, 0x1ff
jne 0x42e320
mov eax, 1
pop esi
add esp, 0xc
ret