joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450930
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x477238
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebp
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
xor esi, esi
mov dword [esp + 0x10], vtable.CDrawStyleRect.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x54], esi
call dword [sym.imp.USER32.dll_CopyRect]
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 2]
lea edx, [esp + 0x30]
xor eax, eax
mov dword [esp + 0x30], 0xffffff
mov dword [esp + 0x34], 0xb2b2b2
call fcn.00443820
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4509c5
cmp edi, esi
je 0x4509c5
mov eax, dword [edi]
mov eax, dword [eax + 4]
push 2
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
mov ecx, edi
call eax
mov esi, dword [esp + 0x1c]
mov eax, 0x25b006
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov ecx, 1
sub eax, ecx
add esi, ecx
mov dword [esp + 0x24], eax
sub eax, esi
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
add dword [esp + 0x20], ecx
fld dword [esp + 0x5c]
sub dword [esp + 0x28], ecx
fld st(0)
mov dword [esp + 0x34], 0xffffffff
fmulp st(2)
mov dword [esp + 0x1c], esi
fxch st(1)
fdiv qword [0x488628]
call fcn.004749f0
fldz
fucompp
mov ecx, eax
fnstsw ax
test ah, 0x44
jp 0x450a66
mov dword [esp + 0x4c], 0xffffffff
test edi, edi
je 0x450a3d
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x450ad3
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x40
ret 0xc
cmp ecx, 4
jge 0x450a70
mov ecx, 4
add esi, ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, 2
lea edx, [esp + 0x30]
xor eax, eax
mov dword [esp + 0x28], esi
call fcn.00443820
mov esi, dword [esp + 0x14]
test eax, eax
je 0x450aad
test esi, esi
je 0x450aad
mov edx, dword [esi]
mov edx, dword [edx + 4]
push 2
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
mov ecx, esi
call edx
mov dword [esp + 0x4c], 0xffffffff
test esi, esi
je 0x450ac3
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x450ad3
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x40
ret 0xc
Function at 0x450e50
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x408
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x404], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esp + 0xc], 0x200
mov word [esp + 0x10], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x450ef5
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x450ef5
push 0x47ef94
mov ecx, esi
call dword [0x47c850]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call dword [0x47c850]
mov eax, 1
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0047397a
add esp, 0x408
ret
mov ecx, dword [esp + 0x404]
xor ecx, esp
xor eax, eax
call fcn.0047397a
add esp, 0x408
ret

Function at 0x450f10
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4756d6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xf
cmp al, 6
jb 0x450f96
push 0x10
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x450fe2
push ebx
lea ecx, [esi + 4]
mov dword [esi], vtable.CWinTask.0
call dword [0x47ce1c]
mov dword [esi], vtable.CWinTask2.0
mov dword [esi + 0xc], 0
mov eax, esi
mov dword [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
push 0xc
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 1
test esi, esi
je 0x450fe2
push ebx
lea ecx, [esi + 4]
mov dword [esi], vtable.CWinTask.0
call dword [0x47ce1c]
mov dword [esi], vtable.CWinTask1.0
mov eax, esi
mov dword [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x451ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476378
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x451fe2
mov eax, 3
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
call ebp
mov edx, 8
push esi
mov word [esp + 0x20], dx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x451f8b
test esi, esi
je 0x451f8b
mov eax, 0xa
push 0x8007000e
mov word [esp + 0x20], ax
mov dword [esp + 0x28], 0x8007000e
call fcn.00403dc0
mov ecx, dword [edi + 0xc]
lea esi, [esp + 0x14]
push esi
mov dword [esp + 0x18], 0
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x34]
push ecx
call eax
test eax, eax
jl 0x451fdb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x451fdb
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jge 0x451ff7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x1c]
push eax
call ebp
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x18], 1
jne 0x452005
lea ecx, [esp + 0x1c]
push ecx
jmp 0x451fe0
lea edx, [esp + 0x1c]
push edx
call ebp
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x4529c0
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push 0xffffffffffffffff
push 0x476248
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push str.30E21B45_4CF8_4f92_947F_0EF52887CEC5
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], vtable.CWinTask.0
call dword [0x47ce1c]
mov dword [esp + 0xc], vtable.CWinTask1.0
mov dword [esp + 0x14], 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x47d400
push 1
push 0
push 0x47d420
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, dword [sym.imp.ole32.dll_CoUninitialize]
test eax, eax
jge 0x452a41
call ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.004516f0
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x452a66
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], vtable.CWinTask.0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 8
Function at 0x4557f0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x30
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x28], eax
mov ecx, dword [0x47d684]
mov eax, dword [0x47d680]
push esi
push 0xc
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
push eax
mov word [esp + 0x24], dx
push eax
lea edx, [esp + 0x28]
push edx
mov word [esp + 0x34], ax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov word [esp + 0x4a], ax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x45591a
mov esi, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea eax, [esp + 0x14]
push str.NTFS
push eax
call esi
add esp, 8
test eax, eax
jne 0x455884
mov eax, 3
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0047397a
add esp, 0x30
ret
lea ecx, [esp + 0x14]
push 0x487920
push ecx
call esi
add esp, 8
test eax, eax
je 0x4558bd
lea edx, [esp + 0x14]
push str.FAT32
push edx
call esi
add esp, 8
test eax, eax
je 0x4558bd
lea eax, [esp + 0x14]
push 0x487938
push eax
call esi
add esp, 8
test eax, eax
jne 0x45591a
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x45591a
mov eax, dword [esp + 8]
cmp eax, 0xfff5
jbe 0x4558ff
mov eax, 2
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0047397a
add esp, 0x30
ret
mov ecx, 0xff5
cmp ecx, eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0047397a
add esp, 0x30
ret
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
mov eax, 4
call fcn.0047397a
add esp, 0x30
ret
Function at 0x4570f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x478983
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.00433930
lea eax, [esi + 0x18]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
call fcn.00433930
lea ecx, [esi + 0x30]
push ecx
mov byte [esp + 0x18], 1
call fcn.00449e60
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x45a720
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x4754cc
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x2b8], eax
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x2c4]
mov dword fs:[0], eax
mov eax, dword [esi + 0x2d4]
mov eax, dword [eax - 0xc]
lea edi, [esi + 0x2d4]
test eax, eax
je 0x45a77e
push edi
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov eax, 1
jmp 0x45a811
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [esp + 0x2cc], 0
mov edx, dword [esi + 0x28]
cmp dword [edx - 0xc], 0
lea ecx, [esi + 0x28]
jle 0x45a805
push 0
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
movzx eax, ax
push eax
lea ecx, [esp + 0xc]
push str._c:_
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov eax, dword [esp + 0x14]
add esp, 0xc
push 0x200
push 0x2b4
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x45a805
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
push eax
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
jmp 0x45a811
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.0047397a
add esp, 0x2c8
ret
Function at 0x45c030
Capabilities:
Get disk information

Disassembly:
sub esp, 0x28
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 0x28]
mov dword [esp + 4], 0
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
push 0
je 0x45c0bb
mov edx, dword [0x47d680]
mov eax, dword [0x47d684]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
push 0xc
mov word [esp + 8], ax
xor eax, eax
lea edx, [esp + 0x10]
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov word [esp + 0x3e], ax
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
mov word [esp + 0x2c], cx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x45c0b9
lea ecx, [esp + 0xc]
push ecx
jmp 0x45c0bb
push 0
mov ecx, esi
call dword [0x47ce1c]
mov ecx, dword [esp + 0x24]
xor ecx, esp
mov eax, esi
call fcn.0047397a
add esp, 0x28
ret 4

Function at 0x45d010
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x479179
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x45d042
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x45d052
mov esi, Ordinal_3
mov edi, 0x2000000
jmp 0x45d068
mov esi, 0x80
mov edi, 0x20000000
test eax, 0x4000
je 0x45d068
mov esi, 0x87
push 0x4878fc
lea ecx, [esp + 0x20]
call dword [0x47ce1c]
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call dword [0x47c850]
mov eax, dword [esp + 0x1c]
push 0
push edi
push 3
push 0
push 7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x460080
Capabilities:
Get volume information via ioctl

Disassembly:
push ecx
mov edx, dword [esi + 0xc]
push 0
lea eax, [esp + 4]
push eax
push 0x68
lea ecx, [esi + 0x18]
push ecx
push 0
push 0
push 0x90064
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4600d7
mov eax, dword [esi + 0x48]
mov dword [esi + 0xa0], eax
test edi, edi
je 0x4600bc
mov dword [edi], eax
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x54]
push 0
push ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x50]
push edx
push eax
call fcn.004747a0
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x460f70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4787a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x18], eax
add eax, 0xa8
mov dword [esp + 0x14], eax
inc dword [eax]
xor esi, esi
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
mov edx, dword [eax]
cmp edx, 0x14
ja 0x46104b
mov edi, dword [ebp + 8]
cmp byte [edi + 7], 0
mov al, byte [edi + 6]
je 0x46101e
test al, al
je 0x46101e
movzx ebx, al
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov esi, eax
add esp, 4
test esi, esi
je 0x46104b
movzx eax, byte [edi + 7]
add ebx, ebx
push ebx
add eax, edi
push eax
push esi
call sub.MSVCR90.dll_memcpy
xor ecx, ecx
add esp, 0xc
mov word [ebx + esi], cx
cmp word [esi], cx
jne 0x46101e
push esi
call sub.mfc90u.dll_delete__
add esp, 4
xor esi, esi
movzx eax, word [edi + 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push edx
mov edx, dword [edi + 0x10]
push eax
movzx eax, word [edi + 0x14]
push esi
push ecx
mov ecx, dword [esp + 0x28]
push eax
push edx
push ecx
call fcn.00460ed0
test esi, esi
je 0x46104b
push esi
call sub.mfc90u.dll_delete__
add esp, 4
mov eax, dword [esp + 0x14]
dec dword [eax]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x461b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
movzx ecx, byte [esi + 0x20]
movzx eax, word [esi + 0x26]
movzx edx, word [esi + 0x1e]
imul eax, ecx
movzx ecx, word [esi + 0x1b]
add eax, edx
imul eax, ecx
cdq
mov dword [esp + 0xc], eax
movzx eax, word [esi + 0x21]
shl eax, 5
mov dword [esp + 0x10], edx
cdq
push edi
mov ebx, eax
mov dword [esp + 0x1c], edx
test edx, edx
ja 0x461cbc
cmp ebx, 0xffffffff
ja 0x461cbc
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0x18]
mov ecx, esi
mov dword [esp + 0x24], 0
call eax
mov ecx, dword [esp + 0x24]
push ecx
push edi
push edx
push eax
call fcn.004746e0
cmp dword [esp + 0x14], edx
jb 0x461c1d
ja 0x461cbc
cmp dword [esp + 0x10], eax
ja 0x461cbc
movzx eax, word [esi + 0x1b]
cdq
push edx
mov edx, dword [esp + 0x20]
push eax
push edx
push ebx
mov dword [esp + 0x1c], ebx
call fcn.00474720
test edx, edx
ja 0x461c3b
test eax, eax
jbe 0x461c59
movzx edi, word [esi + 0x1b]
mov eax, edi
cdq
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push ebx
call fcn.00474720
sub edi, eax
add edi, ebx
mov ebx, edi
mov dword [esp + 0xc], ebx
push ebx
call sub.mfc90u.dll_new__
mov ebx, eax
xor eax, eax
add esp, 4
cmp ebx, eax
je 0x461cbc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi + 0x238]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x14]
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x461cc7
push ebx
call sub.mfc90u.dll_delete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0xc]
pop edi
pop esi
mov eax, ebx
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x462a00
Capabilities:
Get disk information

Disassembly:
sub esp, 0x1c
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
xor eax, eax
push 0xc
lea edx, [esp + 8]
push edx
push eax
push eax
push eax
push eax
push eax
push ecx
mov word [esp + 0x24], ax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x462a9a
mov esi, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea eax, [esp + 4]
push 0x487938
push eax
call esi
add esp, 8
test eax, eax
je 0x462a85
lea ecx, [esp + 4]
push str.FAT32
push ecx
call esi
add esp, 8
test eax, eax
je 0x462a85
lea edx, [esp + 4]
push 0x487920
push edx
call esi
add esp, 8
test eax, eax
jne 0x462a9a
mov eax, 1
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0047397a
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0047397a
add esp, 0x1c
ret

Function at 0x462c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push edi
call edx
push eax
mov dword [esi + 0x210], eax
call sub.mfc90u.dll_new__
add esp, 4
mov dword [esi + 0x218], eax
test eax, eax
jne 0x462cc9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
movzx ecx, word [esi + 0x1b]
mov edi, eax
movzx eax, word [esi + 0x1e]
imul eax, ecx
mov ecx, dword [esi + 0x210]
sub ecx, edi
add ecx, eax
cdq
mov ebp, eax
mov ebx, edx
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
cmp ebx, eax
ja 0x462d58
jb 0x462d06
cmp ebp, ecx
ja 0x462d58
mov ecx, dword [esi + 0x218]
add ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x238]
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
add dword [esp + 0x10], edi
test eax, eax
je 0x462cbf
add ebp, edi
adc ebx, 0
xor eax, eax
cmp ebx, eax
jb 0x462d06
ja 0x462d58
cmp ebp, dword [esp + 0x14]
jbe 0x462d06
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463760
Capabilities:
Get disk size

Disassembly:
sub esp, 0x20
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [0x47d680]
mov edx, dword [0x47d684]
mov eax, dword [esp + 0x24]
mov ax, word [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
mov word [esp + 0x1c], ax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4637f8
mov eax, dword [esp + 8]
mul dword [esp + 0x10]
mov dword [esi + 0x260], eax
mov eax, dword [esp + 4]
sub eax, dword [esp + 0xc]
mov dword [esi + 0x264], edx
mov dword [esi + 0x268], eax
xor eax, eax
mov dword [esi + 0x26c], eax
mov dword [esi + 0x270], eax
mov dword [esi + 0x274], eax
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047397a
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x1c]
xor ecx, esp
or eax, 0xffffffff
call fcn.0047397a
add esp, 0x20
ret 4