joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8240
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4f82e3
test eax, eax
jbe 0x4f82e3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4f82e3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4f828e
xor esi, esi
jmp 0x4f8294
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4f82bf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00502060
add esi, eax
push esi
mov ebx, esi
call fcn.00502060
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4f82a0
pop ebp
test edi, edi
pop edi
jne 0x4f82e3
test ebx, ebx
je 0x4f82e3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0051f6f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4f8425
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4f853d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f853d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00531be9
mov esi, eax
test esi, esi
je 0x4f853d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4f853d
mov ecx, esi
call fcn.004f8390
cmp edi, eax
jge 0x4f853d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4f84c3
mov dword [esp + 0x34], 1
jmp 0x4f851e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4f853d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004f7990
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x504120
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0050a530
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push 0x61f4cc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x504219
lea ecx, [esp + 0x10]
push ecx
push str..htm
push accept
mov ecx, esi
call fcn.00498420
test eax, eax
jne 0x504219
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push accept
mov ecx, esi
call fcn.00498420
test eax, eax
jne 0x504219
lea edx, [esp + 0x10]
push 0x61f4a8
push edx
call fcn.0051fdf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5041ea
lea eax, [esp + 0x10]
push 0x61f4a4
push eax
call fcn.0051fdf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5041ea
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x5041ed
mov byte [esi], 0
push 0x61ec6c
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x50a470
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x545d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x50a520
mov eax, dword [0x620000]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00530549
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00530598
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.005304f5
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x50a507
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x50a507
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00530119
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x50d620
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5461f0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x50d7c7
mov ecx, dword [0x620000]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x50d71c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0050c340
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00530252
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00530119
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x61ec6c
call fcn.00530187
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0050c700
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00530252
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00530119
lea ecx, [esp + 0xc]
call fcn.0053062d
mov ecx, dword [esp + 0xc]
push 0x61f6ac
push ecx
call fcn.0051ed14
add esp, 8
test eax, eax
je 0x50d744
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x50d67d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00530119
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00530119
jmp 0x50d7cb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0050d3c0
test eax, eax
push 0
je 0x50d7af
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0050ba60
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x50d795
cmp eax, 0x64
jg 0x50d783
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x50d720
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x50d720
cmp eax, 0x64
jge 0x50d71c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x50d720
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0050ba60
mov esi, eax
jmp 0x50d720
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x50d7d5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x530f72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0053ba5f
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x530fa3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00530fb6
pop edi
pop esi
pop ebx
ret 8

Function at 0x53258d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5325c5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005305c0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00530598
jmp 0x5325d1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x533f52
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x533f94
call fcn.0053ba5f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x533f94
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x533f8b
xor eax, eax
jmp 0x533f9c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00533fa2
pop edi
pop esi
pop ebx
ret 4

Function at 0x53bf8f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x53bfbd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53bfdb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053bef5
jmp 0x53bfdb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53bfdb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053bef5
test edi, edi
mov eax, edi
jne 0x53bfc5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404a20
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40f913
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], ebx
call fcn.0040ec60
mov edx, dword [esp + 0x230]
mov byte [esp + 0x228], 1
mov ebp, dword [edx - 8]
cmp ebp, 3
jle 0x404b62
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
lea esi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
cmp eax, 1
jne 0x404ae0
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x404b8b
dec ebp
cmp ebp, ebx
jle 0x404af8
mov al, byte [esp + ebp + 0x18]
mov byte [esp + ebp + 0x18], bl
cmp al, 0x5c
je 0x404af6
dec ebp
cmp ebp, ebx
jg 0x404ae5
cmp ebp, ebx
je 0x404b62
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040ec5a
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00404a20
add esp, 4
cmp eax, ebx
je 0x404b62
mov eax, dword [esp + 0x230]
push ebx
push eax
call esi
test eax, eax
mov byte [esp + 0x228], bl
lea ecx, [esp + 0x10]
je 0x404b6d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x404b8b
mov byte [esp + 0x228], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x21c
ret

Function at 0x4057a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xa8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x40581c
lea ecx, [esp]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405826
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405826
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xa8
ret
Function at 0x405830
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40fa98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea ecx, [esp + 4]
call fcn.0040ec60
mov eax, dword [esp + 0x18]
lea ecx, [esp + 4]
push eax
push str..PhysicalDrive_d
push ecx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4058f8
mov eax, dword [esp + 0x1c]
push edi
mov ecx, eax
push 0
shr eax, 0x17
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
shl ecx, 9
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push 0
shl edx, 9
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405c50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40fad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
lea ecx, [esp + 8]
call fcn.0040ec60
push str..PhysicalDrive0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.0040ec5a
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d15
push edi
push 0
push 0
push 0x7000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x200
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x405d15
push ebx
call fcn.00405c40
add esp, 4
mov dword [esp + 0x18], 0xffffffff
test eax, eax
lea ecx, [esp + 8]
je 0x405d21
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x405d40
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x405de8
push 0xf01ff
push str.SIoctl
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x405de1
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x405dc2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x405dc2
cmp dword [esp + 0x14], 3
jne 0x405dc2
push 0x3e8
call edi
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
jne 0x405da8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebp
call esi
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret

Function at 0x405df0
Capabilities:
Create service
Get common file path
Start service

Disassembly:
push 0xffffffffffffffff
push 0x40fafb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push str.Drivers_sioctl.sys
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0
call sub.MFC42.DLL_CString::operator_1
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x405ee2
mov edx, dword [esp + 8]
push 0
push 0
push 0x416c74
push 0
push 0
push edx
push 1
push 3
push 1
push 0xf01ff
push str.SIoctl
push str.SIoctl
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x405ee2
push ebx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x406190
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40fb58
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
call fcn.004069d0
cmp al, 5
mov byte [0x416214], al
je 0x40627d
cmp al, 6
je 0x40627d
lea ecx, [esp + 8]
call fcn.0040ec60
push str..PhysicalDrive0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.0040ec5a
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406259
push 0
push 0
push 0x7000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
call fcn.00405df0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call esi
mov eax, dword [esp + 0x20]
push eax
push 1
push 0x38
call fcn.00405f10
add esp, 0xc
mov edi, eax
push 0xc8
call esi
call fcn.00405d40
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4062d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40fb7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebp
push esi
push str.C:SOSGhostDEFP.OKD
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 8]
push 0
push 2
push 3
push 0
push 3
push 0x80000000
push eax
mov dword [esp + 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
je 0x406373
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
push esi
jne 0x40635c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406373
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
call fcn.00405c40
add esp, 4
test eax, eax
jne 0x40639c
lea ecx, [esp + 8]
mov dword [esp + 0x218], ebp
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
add esp, 0x214
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
push ecx
call fcn.00406190
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x218], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x210]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x214
ret
Function at 0x4063e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40fb98
push eax
mov dword fs:[0], esp
sub esp, 8
lea ecx, [esp]
push esi
push str.C:SOSGhostDEFP.OKD
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 4]
push 0
push 2
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406447
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push 0
push ecx
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x406470
Capabilities:
Get disk information via ioctl
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x40fbb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040ec60
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
movsx eax, bl
push eax
xor esi, esi
push str.__c:
push ecx
mov dword [esp + 0x38], esi
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
je 0x40651c
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push esi
push esi
push 0x2d1080
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x406505
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40651c
cmp dword [esp + 0x14], 0xc
je 0x406515
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40651c
cmp dword [esp + 0x18], 7
je 0x40653e
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebp
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [esi], edx
mov dword [ebp], eax
mov ecx, dword [esi]
push ecx
call fcn.00405aa0
push ebx
call fcn.00405920
mov edx, dword [esi]
push edx
push eax
call fcn.00405a30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406581
push str.get_part_list_Succ.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret