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

Disassembly:
mov eax, dword [0x423260]
sub esp, 0x134
test eax, eax
jne 0x4080f5
lea eax, [esp]
mov dword [0x423260], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4080f5
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4080e8
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x4080e8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4080e8
mov dword [0x42325c], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x42325c]
add esp, 0x134
ret

Function at 0x408ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x419aeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x41ccb0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x408c30
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x408bf7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x408c21
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x408c36
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x408c36
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x41ca9c
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x41ca88
mov dword [esp + 0x1c], 0xffffffff
call fcn.00418af8
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x409b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x419c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0x150]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x409c76
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x14c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x15c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x409c22
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x150]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x164], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0x150]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x14c]
sub ecx, edi
test edx, edx
je 0x409c97
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00418c42
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x40c1e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x419ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
jne 0x40c28a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40c271
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40c271
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x70], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40c2a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c302
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40c510
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c602
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.0040c2a0
test eax, eax
jne 0x40c602
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 0x80000000
mov ecx, edi
call fcn.0040c2a0
test eax, eax
jne 0x40c602
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c5d3
lea eax, [esp + 0x10]
push 0x4225e0
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c5d3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x40c5d6
mov byte [esi], 0
push 0x422274
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, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x40e480
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0xc
xor eax, eax
lea edx, [esp]
mov dword [esp], eax
mov dword [esp + 4], eax
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
push eax
mov eax, dword [esp + 0x20]
push 0xc
push edx
push 0x2d1400
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
ret

Function at 0x40e6b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x24
push ebx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov bl, 0x41
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
mov dword [esp + 8], eax
je 0x40e724
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, 0x423270
test al, 1
je 0x40e714
movsx eax, bl
push eax
lea ecx, [esp + 0x18]
push 0x4226c8
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call edi
cmp eax, 3
jne 0x40e714
mov byte [ebp], bl
inc ebp
mov eax, dword [esp + 0x10]
inc bl
shr eax, 1
mov dword [esp + 0x10], eax
jne 0x40e6ed
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x24
ret
Function at 0x40e730
Capabilities:
Get disk information

Disassembly:
sub esp, 0x48
push ebx
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov bl, 0x41
mov dword [esp + 0xc], esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40e8ae
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
test al, 1
je 0x40e890
movsx esi, bl
push esi
lea eax, [esp + 0x3c]
push 0x4226c8
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x40e7b5
cmp bl, 0x41
je 0x40e890
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
mov byte [eax + edx], bl
inc eax
mov dword [esp + 0x10], eax
jmp 0x40e890
cmp eax, 3
jne 0x40e890
call fcn.0040fd40
cmp eax, 2
jne 0x40e805
mov cl, byte [0x423270]
xor eax, eax
test cl, cl
je 0x40e7f0
cmp eax, 0x14
jge 0x40e7f0
cmp bl, byte [eax + 0x423270]
je 0x40e890
mov cl, byte [eax + 0x423271]
inc eax
test cl, cl
jne 0x40e7d4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
mov byte [eax + ecx], bl
inc eax
mov dword [esp + 0x10], eax
jmp 0x40e890
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
push esi
lea edx, [esp + 0x1c]
push str.__c:
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e890
push 0x227
call sub.MFC42.DLL_operatornew
mov edi, eax
push edi
push esi
mov dword [edi + 4], 0x227
call fcn.0040e480
add esp, 0xc
test eax, eax
je 0x40e880
cmp dword [edi + 0x1c], 7
jne 0x40e880
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
mov byte [eax + ecx], bl
inc eax
mov dword [esp + 0x10], eax
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
inc bl
shr eax, 1
mov dword [esp + 0x14], eax
jne 0x40e76c
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x48
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x48
ret

Function at 0x40e8c0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp + 4], 0x9f
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push str.NoDriveTypeAutoRun
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x40e920
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp + 4], 0x91
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push str.NoDriveTypeAutoRun
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x40f4a0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x600
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x610]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Unknown
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Unknown
push edx
call fcn.0040e980
add esp, 0xc
test al, al
pop edi
pop esi
pop ebx
je 0x40f519
mov eax, 1
add esp, 0x600
ret
lea ecx, [esp + 0x400]
lea edx, [esp]
push ecx
push 0x200
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
add esp, 0x600
ret

Function at 0x40f780
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x234]
push edi
xor ebp, ebp
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
push esi
push 8
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x40f7c6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
cmp esi, ebp
jne 0x40f7d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x224
push eax
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40f839
lea ecx, [esp + 0x130]
push ecx
call fcn.0040e9f0
add esp, 4
cmp eax, 1
je 0x40f814
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x40f839
jmp 0x40f7ee
mov ecx, dword [esp + 0x240]
mov edi, dword [esp + 0x23c]
mov eax, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ebp, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
Function at 0x40fae0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x34
push esi
mov esi, dword [esp + 0x3c]
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40fb27
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi - 1]
test eax, eax
jle 0x40fb27
cmp byte [eax + esi], 0x2e
je 0x40fb2f
dec eax
test eax, eax
jg 0x40fb1c
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret
test eax, eax
jle 0x40fb27
xor edx, edx
cmp eax, edi
jge 0x40fb47
mov cl, byte [eax + esi]
mov byte [esp + edx + 8], cl
inc edx
inc eax
cmp edx, 9
jl 0x40fb35
push 4
lea edx, [esp + 0xc]
push str..tmp
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40fb6a
pop edi
mov eax, 2
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str.._mp
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40fb8d
pop edi
mov eax, 3
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..log
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40fbb0
pop edi
mov eax, 4
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..gid
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40fbd3
pop edi
mov eax, 5
pop esi
add esp, 0x34
ret
push 4
lea eax, [esp + 0xc]
push str..chk
push eax
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40fbf6
pop edi
mov eax, 6
pop esi
add esp, 0x34
ret
push 4
lea ecx, [esp + 0xc]
push str..old
push ecx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40fc19
pop edi
mov eax, 7
pop esi
add esp, 0x34
ret
push 4
lea edx, [esp + 0xc]
push str..bak
push edx
call fcn.0040e980
add esp, 0xc
test al, al
je 0x40fb27
pop edi
mov eax, 8
pop esi
add esp, 0x34
ret

Function at 0x40fdc0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [str._c:_]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
movsx esi, byte [esp + 0x20]
push esi
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
je 0x40fe19
dec eax
je 0x40fe19
sub eax, 2
je 0x40fe12
push str.Cannot_eject.__Drive_type_is_incorrect._n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov edi, 0x80000000
jmp 0x40fe1e
mov edi, 0xc0000000
mov eax, dword [str.._c:]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x14]
push 0
push 0
push 3
push 0
push 3
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fe59
push str.CreateFile
call fcn.0040fda0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x410620
Capabilities:
Create directory

Disassembly:
sub esp, 0x200
push ebp
mov ebp, dword [esp + 0x208]
push esi
push edi
test ebp, ebp
jne 0x410640
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x200
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
call fcn.00410420
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10c], al
mov edx, ecx
mov esi, edi
mov edi, ebp
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.quarantine
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
lea ecx, [esp + 0x10]
push eax
push 0x100
push 0
push str.quarantine
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x410700
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x410700
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x200
ret
mov edi, 0x422814
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x200
ret
Function at 0x410740
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x500
push ebx
xor ebx, ebx
push esi
cmp edx, ebx
push edi
jne 0x41075f
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x500
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, ebp
mov byte [esp + 0x410], bl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x415]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x414]
lea edx, [esp + 0x14]
push ecx
push 0x100
stosw word es:[edi], ax
push ebx
push edx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
pop ebp
jne 0x4107dd
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x500
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x30d]
mov byte [esp + 0x30c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30c]
push eax
call fcn.00410620
add esp, 4
test al, al
jne 0x410815
pop edi
pop esi
pop ebx
add esp, 0x500
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x20d]
mov byte [esp + 0x20c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20c]
lea edx, [esp + 0xc]
push ecx
push edx
stosb byte es:[edi], al
call fcn.00410550
or ecx, 0xffffffff
mov edi, 0x4228a0
xor eax, eax
lea edx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x118]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x318]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x218]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040ffb0
add esp, 0x14
lea edx, [esp + 0xc]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
pop edi
pop esi
setne al
pop ebx
add esp, 0x500
ret