joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440308
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x431272
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 0x43121b
test esi, esi
je 0x43121b
mov eax, 0xa
push 0x8007000e
mov word [esp + 0x20], ax
mov dword [esp + 0x28], 0x8007000e
call fcn.0040b630
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 0x43126b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43126b
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 0x431287
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 0x431295
lea ecx, [esp + 0x1c]
push ecx
jmp 0x431270
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 0x433640
Capabilities:
Get disk information
Get volume information via ioctl

Disassembly:
sub esp, 0x40
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x38], eax
cmp dword [esi + 0xc], 0
push edi
jne 0x43377c
mov ecx, dword [0x4451ac]
mov eax, dword [0x4451a8]
mov dx, word [esi + 8]
push 0xc
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
xor eax, eax
lea ecx, [esp + 0x28]
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 + 0x44], ax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov word [esp + 0x5a], ax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x433775
lea eax, [esp + 0x24]
push str.NTFS
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x433775
push 0
push 0
push 3
mov dword [esi + 0xc], 2
mov eax, dword [0x44ace4]
mov ecx, dword [str..C:]
mov edx, dword [0x44ace0]
push 0
push 3
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov cx, word [0x44ace8]
mov dword [esp + 0x2c], edx
mov dx, word [esi + 8]
push Ordinal_3
lea eax, [esp + 0x2c]
push eax
mov word [esp + 0x3c], cx
mov word [esp + 0x38], dx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43377c
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x60
lea edx, [esi + 0x10]
push edx
push 0
push 0
push 0x90064
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x433759
mov dword [esi + 0xc], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x40
ret
mov dword [esi + 0xc], 1
mov ecx, dword [esp + 0x3c]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0043ec6a
add esp, 0x40
ret
Function at 0x433bb0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x30
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x28], eax
mov ecx, dword [0x4451ac]
mov eax, dword [0x4451a8]
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 0x433cda
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 0x433c44
mov eax, 3
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x30
ret
lea ecx, [esp + 0x14]
push str.FAT16
push ecx
call esi
add esp, 8
test eax, eax
je 0x433c7d
lea edx, [esp + 0x14]
push str.FAT32
push edx
call esi
add esp, 8
test eax, eax
je 0x433c7d
lea eax, [esp + 0x14]
push 0x44c2d0
push eax
call esi
add esp, 8
test eax, eax
jne 0x433cda
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 0x433cda
mov eax, dword [esp + 8]
cmp eax, 0xfff5
jbe 0x433cbf
mov eax, 2
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043ec6a
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.0043ec6a
add esp, 0x30
ret
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
mov eax, 4
call fcn.0043ec6a
add esp, 0x30
ret
Function at 0x435790
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x28
mov edx, dword [esp + 0x30]
push ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov ebx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
push ebp
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
cmp eax, dword [esi + 0x1c8]
jne 0x4358b5
mov edx, dword [esp + 0x4c]
cmp edx, dword [esi + 0x1cc]
jne 0x4358b5
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea edi, [esi + 0x1d0]
push edi
call ebp
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x20
lea ecx, [esp + 0x24]
push ecx
push 0x90074
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea ebx, [esi + 0x1d8]
push ebx
mov dword [esp + 0x3c], eax
call ebp
xor eax, eax
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
je 0x4358d7
mov ecx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1cc]
mov edx, dword [ebx]
mov dword [esp + 0x48], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x4c], eax
fild qword [esp + 0x48]
mov eax, dword [ebx + 4]
and ecx, 0x80000000
sub edx, dword [edi]
mov dword [esp + 0x4c], ecx
sbb eax, dword [edi + 4]
mov dword [esp + 0x48], 0
fild qword [esp + 0x48]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
fchs
faddp st(1)
fild qword [esp + 0x48]
fild qword [esp + 0x40]
fdivp st(1)
fmul qword [0x44c388]
fdivp st(1)
call fcn.0043f846
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1cc], edx
jmp 0x4358d7
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x20
lea edx, [esp + 0x24]
push edx
push 0x90074
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x38], eax
cmp dword [esp + 0x38], 0
jne 0x4358f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xf8000000
pop edi
pop ebp
pop ebx
add esp, 0x28
ret 0x18
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 0x18
Function at 0x435cf0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x44008c
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x2b8], eax
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x2c4]
mov dword fs:[0], eax
mov eax, dword [esi + 0x1c0]
mov eax, dword [eax - 0xc]
lea edi, [esi + 0x1c0]
test eax, eax
je 0x435d4e
push edi
mov ecx, ebx
call dword [0x444764]
mov eax, 1
jmp 0x435de1
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 0x435dd5
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 0x435dd5
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 [0x444764]
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 0x435de1
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.0043ec6a
add esp, 0x2c8
ret
Function at 0x435e10
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x44004c
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov eax, dword [esi + 0x1b0]
and eax, dword [esi + 0x1b4]
mov ebx, ecx
cmp eax, 0xffffffff
je 0x435e88
mov ecx, dword [esi + 0x1b8]
mov dword [ebx], ecx
mov edx, dword [esi + 0x1bc]
mov dword [ebx + 4], edx
mov eax, dword [esi + 0x1b0]
mov dword [edi], eax
mov ecx, dword [esi + 0x1b4]
mov dword [edi + 4], ecx
mov eax, 1
jmp 0x435faf
lea ecx, [esp + 0x10]
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 + 0x288], 0
mov edx, dword [esi + 0x28]
cmp dword [edx - 0xc], 0
lea ecx, [esi + 0x28]
jle 0x435fa3
push 0
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
movzx eax, ax
push eax
lea ecx, [esp + 0x14]
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 + 0x1c]
add esp, 0xc
cmp dword [eax - 0xc], 4
jge 0x435f37
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x435fa3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [esi + 0x1bc], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x1b8], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [esi + 0x1b4], ecx
lea ecx, [esp + 0x10]
mov dword [esi + 0x1b0], 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, 1
jmp 0x435faf
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x435fa3
mov edx, dword [esp + 0x48]
xor eax, eax
push 1
push eax
push eax
mov ecx, edx
mov dword [ebx], eax
mov dword [ebx + 4], eax
push ecx
mov dword [esi + 0x1b8], eax
mov dword [esi + 0x1bc], eax
call fcn.0043f6a0
mov ecx, dword [esp + 0x4c]
xor ebx, ebx
add eax, ecx
adc edx, ebx
mov dword [edi + 4], edx
mov dword [edi], eax
mov edx, eax
mov dword [esi + 0x1b0], edx
mov eax, dword [edi + 4]
push ebp
mov dword [esi + 0x1b4], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebx + 1]
jmp 0x435faf
lea ecx, [esp + 0x10]
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 + 0x280]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x280
ret
Function at 0x437350
Capabilities:
Get disk information

Disassembly:
sub esp, 0x28
mov eax, dword [0x455028]
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 0x4373db
mov edx, dword [0x4451a8]
mov eax, dword [0x4451ac]
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 0x4373d9
lea ecx, [esp + 0xc]
push ecx
jmp 0x4373db
push 0
mov ecx, esi
call dword [0x4446ac]
mov ecx, dword [esp + 0x24]
xor ecx, esp
mov eax, esi
call fcn.0043ec6a
add esp, 0x28
ret 4
Function at 0x4387e0
Capabilities:
Get volume information via ioctl

Disassembly:
push ecx
mov edx, dword [esi + 0xc]
push 0
lea eax, [esp + 4]
push eax
push 0x60
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 0x438837
mov eax, dword [esi + 0x48]
mov dword [esi + 0x98], eax
test edi, edi
je 0x43881c
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.0043f760
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x4394d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov al, byte [edi + 6]
xor esi, esi
cmp byte [edi + 7], 0
mov dword [esp + 0xc], ecx
je 0x43953e
test al, al
je 0x43953e
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 0x43956b
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 0x43953e
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 + 0x1c]
push eax
push edx
push ecx
call fcn.00439430
test esi, esi
je 0x43956b
push esi
call sub.mfc90u.dll_delete__
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x439f70
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 edx, byte [esi + 0x20]
movzx eax, word [esi + 0x26]
movzx ecx, word [esi + 0x1b]
imul eax, edx
movzx edx, word [esi + 0x1e]
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 edi, edx
mov ebx, eax
mov dword [esp + 0x24], edi
test edi, edi
ja 0x43a09b
cmp ebx, 0xffffffff
ja 0x43a09b
movzx eax, byte [esi + 0x1d]
imul eax, ecx
cdq
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0043f6a0
cmp dword [esp + 0x14], edx
jb 0x43a000
ja 0x43a09b
cmp dword [esp + 0x10], eax
ja 0x43a09b
movzx eax, word [esi + 0x1b]
cdq
push edx
push eax
push edi
push ebx
mov dword [esp + 0x1c], ebx
call fcn.0043f6e0
test edx, edx
ja 0x43a01a
test eax, eax
jbe 0x43a038
movzx edi, word [esi + 0x1b]
mov eax, edi
cdq
push edx
mov edx, dword [esp + 0x28]
push eax
push edx
push ebx
call fcn.0043f6e0
sub edi, eax
add edi, ebx
mov ebx, edi
mov dword [esp + 0xc], ebx
push ebx
call sub.mfc90u.dll_new__
mov edi, eax
xor eax, eax
add esp, 4
cmp edi, eax
je 0x43a09b
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 edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43a0a6
push edi
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]
mov eax, edi
pop edi
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43ade0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x1c
mov eax, dword [0x455028]
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 0x43ae7a
mov esi, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea eax, [esp + 4]
push 0x44c2d0
push eax
call esi
add esp, 8
test eax, eax
je 0x43ae65
lea ecx, [esp + 4]
push str.FAT32
push ecx
call esi
add esp, 8
test eax, eax
je 0x43ae65
lea edx, [esp + 4]
push str.FAT16
push edx
call esi
add esp, 8
test eax, eax
jne 0x43ae7a
mov eax, 1
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0043ec6a
add esp, 0x1c
ret

Function at 0x43af10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x28], eax
mov edx, dword [0x44ace4]
mov eax, dword [str..C:]
mov ecx, dword [0x44ace0]
push 0
push 0
push 3
push 0
push 3
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
mov ax, word [0x44ace8]
mov dword [esp + 0x30], ecx
mov cx, word [esp + 0x44]
push Ordinal_3
lea edx, [esp + 0x30]
push edx
mov word [esp + 0x40], ax
mov word [esp + 0x3c], cx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x43afc4
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0x200
push esi
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43afc4
cmp dword [esp], 0x200
jne 0x43afc4
xor eax, eax
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x2c
ret
mov ecx, dword [esp + 0x28]
xor ecx, esp
or eax, 0xffffffff
call fcn.0043ec6a
add esp, 0x2c
ret
Function at 0x43afe0
Capabilities:
Get disk size

Disassembly:
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
sub esp, 0x20
push ebx
push ebp
push esi
mov ecx, edi
call edx
mov esi, edi
call fcn.00439ee0
lea ebx, [edi + 0xc]
push 0
mov ecx, ebx
lea esi, [edi + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
movzx eax, ax
push eax
call fcn.0043af10
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
add esp, 4
mov ecx, edi
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
movzx esi, word [edi + 0x1b]
movzx ebx, byte [edi + 0x1d]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, esi
imul eax, ebx
sub ecx, dword [esp + 0x20]
cdq
sbb ebp, dword [esp + 0x24]
push edx
push eax
push ebp
push ecx
call fcn.0043f630
mov dword [edi + 0x228], eax
movzx eax, word [edi + 0x26]
mov dword [edi + 0x22c], edx
movzx ecx, ax
test ax, ax
jne 0x43b075
mov ecx, dword [edi + 0x34]
movzx edx, word [edi + 0x21]
shl edx, 5
lea eax, [edx + esi - 1]
cdq
idiv esi
movzx edx, byte [edi + 0x20]
imul edx, ecx
lea ecx, [ebx + ebx]
mov dword [edi + 0x234], 0
add eax, edx
movzx edx, word [edi + 0x1e]
sub eax, ecx
add eax, edx
imul eax, esi
pop esi
pop ebp
mov dword [edi + 0x230], eax
mov eax, 1
pop ebx
add esp, 0x20
ret

Function at 0x43b0c0
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 + 0xc]
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 0x43b0f9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [esi + 0x1b]
movzx edi, byte [esi + 0x1d]
movzx eax, word [esi + 0x1e]
imul edi, ecx
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 0x43b180
jb 0x43b132
cmp ebp, ecx
ja 0x43b180
mov edx, dword [esi + 0x218]
add edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x238]
lea ecx, [esp + 0x1c]
push ecx
push edi
push edx
push eax
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 0x43b0ef
add ebp, edi
adc ebx, 0
xor eax, eax
cmp ebx, eax
jb 0x43b132
ja 0x43b180
cmp ebp, dword [esp + 0x14]
jbe 0x43b132
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bae0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x20
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [0x4451a8]
mov edx, dword [0x4451ac]
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 0x43bb78
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.0043ec6a
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x1c]
xor ecx, esp
or eax, 0xffffffff
call fcn.0043ec6a
add esp, 0x20
ret 4

Function at 0x43ec6a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455028]
jne 0x43ec74
repz ret
jmp fcn.0043f20e