joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409d90
Capabilities:
Create directory

Disassembly:
mov eax, 0x41714b
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
and dword [ebp - 0x1c], 0
push esi
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov byte [ebp - 4], 3
mov al, byte [eax]
cmp al, 0x2f
sete cl
mov esi, ecx
test esi, esi
jl 0x409e3d
push esi
push 0x2f
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::Find_1
mov edi, eax
test edi, edi
jl 0x409e3d
sub eax, esi
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push 0x41e650
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.004150f8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esi, [edi + 1]
jmp 0x409dc4
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x40a784
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x417260
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x200
push esi
push edi
and dword [ebp - 4], 0
lea edi, [ecx + 4]
push 0x4206e0
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push 0x41ea40
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40a808
test byte [esi + 0xc], 0x10
jne 0x40a800
push 0x200
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
push 1
lea eax, [ebp - 0x20c]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00414e40
jmp 0x40a7bf
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b339
Capabilities:
Capture microphone audio

Disassembly:
mov eax, 0x417450
call sub.MSVCRT.dll__EH_prolog
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x2138], ebx
jne 0x40b49f
cmp dword [esi + 0x2130], ebx
jne 0x40b49f
lea edi, [esi + 0x2150]
push 0x8000
push ebx
push edi
mov dword [esi + 0x212c], ebx
mov dword [esi + 0x2140], ebx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax - 8], ebx
jle 0x40b3a7
push eax
push 0x41f128
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push edi
call sub.MSVCRT.dll_strlen
add esp, 0x10
mov dword [esi + 0x2140], eax
lea edi, [esi + 8]
push 0x12
push ebx
push edi
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 0x14]
mov ax, word [ebp + 0x10]
mov dx, word [ebp + 0x18]
mov dword [esi + 0xc], ecx
mov word [esi + 0xa], ax
add esp, 0xc
movzx ecx, ax
movzx eax, dx
imul ecx, eax
mov eax, ecx
mov word [esi + 0x16], dx
push 8
imul ecx, dword [ebp + 0x14]
cdq
pop ebx
mov word [edi], 1
idiv ebx
push 0x10004
lea ebx, [esi + 0x1c]
shr ecx, 3
mov dword [esi + 0x10], ecx
mov word [esi + 0x14], ax
xor eax, eax
push eax
mov word [esi + 0x18], ax
push dword [esi + 0xa168]
push edi
push eax
push ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
lea edi, [esi + 0x24]
lea eax, [esi + 0x124]
mov ecx, edi
mov dword [ebp + 0x10], 8
mov dword [esi + 0x20], ecx
and dword [ecx + 0x10], 0
mov edx, dword [esi + 0x20]
add ecx, 0x20
and dword [edx + 0x14], 0
mov edx, dword [esi + 0x20]
and dword [edx + 8], 0
mov edx, dword [esi + 0x20]
mov dword [edx + 4], 0x400
mov edx, dword [esi + 0x20]
mov dword [edx], eax
add eax, 0x400
dec dword [ebp + 0x10]
jne 0x40b420
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x18], 7
mov eax, dword [ebp + 0x10]
push 0x20
push eax
mov dword [esi + 0x20], eax
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
push 0x20
push dword [esi + 0x20]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
add dword [ebp + 0x10], 0x20
dec dword [ebp + 0x18]
jne 0x40b45b
and dword [esi + 0x2124], 0
push 1
mov dword [esi + 0x20], edi
pop edi
push dword [ebx]
mov dword [esi + 0x2130], edi
call dword [sym.imp.WINMM.dll_waveInStart]
jmp 0x40b4a1
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x40b682
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x212c], edi
jne 0x40b6f2
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [edi + 8]
push dword [edi]
call fcn.0040b5aa
fld qword [ebp - 8]
fcomp qword [esi + 0x2148]
fnstsw ax
sahf
jbe 0x40b772
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [esi + 0x2140]
mov dword [esi + 0x212c], eax
push dword [edi + 8]
mov eax, dword [ebx]
push dword [edi]
lea eax, [eax + esi + 0x2150]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 8]
add esp, 0xc
add dword [ebx], eax
pop ebx
jmp 0x40b772
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x212c]
cmp eax, dword [esi + 0x213c]
jbe 0x40b73f
mov eax, dword [esi + 0xa150]
mov dword [esi + 0x2138], edi
mov dword [esi + 0x2130], edi
cmp dword [eax - 8], edi
jle 0x40b724
mov ecx, esi
call fcn.0040b7a2
mov eax, dword [esi + 0xa168]
cmp eax, edi
je 0x40b772
push edi
push edi
push dword [esi + 0xa16c]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40b772
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x2140]
mov ecx, dword [edi + 8]
lea edx, [eax + ecx]
cmp edx, 0x8000
jae 0x40b772
push ecx
lea eax, [eax + esi + 0x2150]
push dword [edi]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 8]
add esp, 0xc
add dword [esi + 0x2140], eax
pop edi
pop esi
leave
ret 4

Function at 0x40b7a2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
push 0x1001
push 0
mov eax, dword [esi + 0xa150]
push eax
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov ebx, eax
mov eax, dword [esi + 0x2140]
mov edi, dword [sym.imp.WINMM.dll_mmioCreateChunk]
add eax, 0x12
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 0x45564157
call edi
lea eax, [ebp - 0x18]
push 0
push eax
push ebx
mov dword [ebp - 0x18], 0x20746d66
mov dword [ebp - 0x14], 0x12
call edi
lea eax, [esi + 8]
push 0x12
push eax
push ebx
call dword [sym.imp.WINMM.dll_mmioWrite]
lea eax, [ebp - 0x18]
push 0
push eax
push ebx
mov ebx, dword [sym.imp.WINMM.dll_mmioAscend]
call ebx
mov eax, dword [esi + 0x2140]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0x61746164
push dword [ebp - 4]
call edi
push dword [esi + 0x2140]
add esi, 0x2150
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.WINMM.dll_mmioWrite]
xor edi, edi
lea eax, [ebp - 0x18]
push edi
push eax
push esi
call ebx
lea eax, [ebp - 0x2c]
push edi
push eax
push esi
call ebx
push edi
push esi
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b955
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x41747b
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
and dword [ebp - 0x24], 0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x2140]
push 3
mov eax, ecx
pop edi
cdq
mov ebx, edi
mov dword [ebp - 4], 1
idiv ebx
add esi, 0x2150
mov dword [ebp - 0x18], eax
mov eax, ecx
cdq
idiv ebx
lea eax, [ecx + 0x64]
mov ecx, edi
mov dword [ebp - 0x1c], edx
cdq
idiv ecx
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jle 0x40ba09
mov dword [ebp - 0x18], ecx
mov cl, byte [esi]
mov dl, byte [esi + 1]
inc esi
inc esi
movzx ecx, cl
mov bl, byte [esi]
inc esi
mov byte [ebp - 0xd], bl
mov ebx, ecx
shr ebx, 2
movzx edx, dl
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, edi
mov byte [eax], bl
mov ebx, edx
shr ebx, 4
shl ecx, 4
or ebx, ecx
inc eax
and edx, 0xf
mov cl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
movzx ecx, byte [ebp - 0xd]
mov ebx, ecx
and ecx, 0x3f
shr ebx, 6
shl edx, 2
or ebx, edx
mov dl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
dec dword [ebp - 0x18]
jne 0x40b9a8
cmp dword [ebp - 0x1c], 1
jne 0x40ba33
movzx ecx, byte [esi]
mov edx, ecx
and ecx, edi
shr edx, 2
shl ecx, 4
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
jmp 0x40ba73
cmp dword [ebp - 0x1c], 2
jne 0x40ba78
mov cl, byte [esi]
mov bl, byte [esi + 1]
movzx edx, cl
mov ecx, edx
and edx, edi
shr ecx, 2
shl edx, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
movzx ecx, bl
mov esi, ecx
shr esi, 4
or esi, edx
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
and ecx, 0xf
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
inc eax
push dword [ebp - 0x20]
and byte [eax], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x20]
call sub.MFC42.DLL_operatordelete
pop ecx
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x24], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40bae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4174b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 8]
call fcn.0040e2d0
lea edi, [esi + 0x60]
mov dword [esp + 0x18], 0
mov ecx, edi
call fcn.0040d3f0
mov bl, 1
push 0xa
lea ecx, [esi + 0xac]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CPtrList::CPtrList
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 2
call fcn.0040e330
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xf0], edi
mov dword [esi], 0x418ce8
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov byte [esi + 4], bl
mov dword [esi + 0x30], 0x40bfd0
mov dword [esi + 0x34], 0x40c000
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40c2c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
cmp byte [esi + 0xc8], 0xff
je 0x40c304
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x40c325
mov ecx, esi
call fcn.0040c050
mov ecx, dword [esi + 0x50]
mov edx, dword [eax + 0x14]
cmp ecx, edx
je 0x40c325
push 0xffffffffffffff9a
mov ecx, esi
call fcn.0040bcd0
mov ecx, esi
call fcn.0040c050
cmp word [eax + 0xe], 8
jne 0x40c33c
lea edx, [esi + 0x10]
push edx
call fcn.0040f680
mov edi, dword [ebp + 8]
mov bl, 1
test edi, edi
je 0x40c3af
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x11c], 0
call fcn.0040c050
mov ecx, eax
call fcn.0040d040
mov edx, dword [eax]
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x128], edx
call sub.MFC42.DLL_CFile::SetStatus
mov ecx, esi
call fcn.0040c050
mov ecx, dword [eax + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xcc]
call fcn.0040ea00
lea ecx, [esi + 0x54]
mov byte [esi + 0xc8], 0
call fcn.0040f540
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c610
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x417608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00414e58
push 0x41e650
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
push ecx
push edx
call fcn.0040c400
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x24], 1
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x40c692
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040c730
add esp, 4
cmp eax, esi
sete al
test al, al
jne 0x40c692
xor bl, bl
jmp 0x40c694
mov bl, 1
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x40c70d
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0040c400
mov eax, dword [eax]
mov byte [esp + 0x1c], 2
push eax
call fcn.0040c610
add esp, 0xc
lea ecx, [esp + 8]
test al, al
sete bl
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x40c6ed
mov edx, dword [esp + 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40c70d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CString::CString
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40c730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFileFind::CFileFind
mov esi, dword [esp + 0x30]
push 0
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x40c7b6
push esi
call fcn.0040c800
add esp, 4
mov dword [esp + 0x28], 0xffffffff
test al, al
lea ecx, [esp + 4]
je 0x40c79f
call fcn.0041502c
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
call fcn.0041502c
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov eax, dword [esp + 4]
push 0x10
lea ecx, [esp + 8]
call dword [eax + 0x40]
neg eax
sbb eax, eax
lea ecx, [esp + 4]
and al, 0xfe
mov dword [esp + 0x28], 0xffffffff
inc eax
mov esi, eax
call fcn.0041502c
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40c8b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417678
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebp
mov ebp, dword [esp + 0x80]
push esi
push edi
test ebp, ebp
mov esi, ecx
jne 0x40c8ee
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0xc
lea ecx, [esp + 0x28]
call fcn.0040ccd0
mov edi, dword [esp + 0x80]
lea eax, [esp + 0x28]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x80], 0
call fcn.0040bdb0
mov ecx, dword [esp + 0x84]
push ecx
lea ecx, [esp + 0x8c]
call fcn.00414e58
push 0x41e650
lea ecx, [esp + 0x8c]
mov byte [esp + 0x7c], 1
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x84]
push edx
push eax
call fcn.0040c520
add esp, 8
push eax
lea ecx, [esp + 0x84]
push 0x41e650
push ecx
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x7c], 3
call fcn.004150f8
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x84]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::CString
push edi
mov ecx, esi
call fcn.0040c860
test al, al
je 0x40c9d8
mov edx, dword [esp + 0x88]
push edx
call fcn.0040c610
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x8c]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40caed
push edi
mov ecx, esi
call fcn.0040bee0
test al, al
jne 0x40ca1b
lea ecx, [esp + 0x88]
mov byte [esp + 0x78], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040cd70
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0xc
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x80]
push edx
push eax
call fcn.0040c400
mov eax, dword [eax]
mov byte [esp + 0x80], 4
push eax
call fcn.0040c610
add esp, 0xc
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x88]
push 0x1021
push ecx
lea ecx, [esp + 0x20]
call fcn.00415212
push 0
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 5
call fcn.0040f4f0
mov byte [esp + 0x78], 6
lea ecx, [esp + 0xc]
call fcn.0040f530
push eax
lea ecx, [esp + 0x10]
call fcn.0040f5d0
push eax
mov ecx, esi
call fcn.0040c060
mov edi, eax
test edi, edi
je 0x40cab8
push edi
lea ecx, [esp + 0x10]
call fcn.0040f5d0
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0xc]
call fcn.0040f530
cmp edi, eax
je 0x40ca83
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.0040c250
lea ecx, [esp + 0xc]
mov byte [esp + 0x78], 5
call fcn.0040f520
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x88]
mov byte [esp + 0x78], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040cd70
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x70
ret 0xc
Function at 0x40cc40
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
push ebx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0040cc70
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 8]
sete bl
call sub.MFC42.DLL_CString::CString
mov al, bl
pop ebx
ret
Function at 0x40dae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4178be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
test eax, eax
mov esi, ecx
mov dword [esp + 8], ebx
jne 0x40db27
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0xc]
lea edx, [esp + 0x18]
push edx
call dword [eax + 0x20]
mov ebx, 1
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x10]
call fcn.00414e58
test bl, 1
mov dword [esp + 0x28], 3
je 0x40db4e
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 8], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0040c400
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x38], 4
call fcn.0040c4d0
add esp, 0x10
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::CString_2
mov al, byte [esp + 0x34]
mov byte [esp + 0x28], 6
test al, al
je 0x40db9f
push 0x41e67c
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::operator
jmp 0x40dbb5
mov ecx, dword [esi + 0x48]
lea edx, [esp + 0x38]
push ecx
push str._.3d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push 0x41f1e8
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x30], 7
push eax
call sub.MFC42.DLL_operator_1
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x38]
push ecx
push eax
push esi
mov byte [esp + 0x34], 8
call sub.MFC42.DLL_operator_2
or ebx, 2
mov dword [esp + 8], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x40df20
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x417938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ecx + 0xc]
add ecx, 0xc
lea edx, [esp + 4]
push ebx
push edx
call dword [eax + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 8]
push eax
call fcn.0040cc70
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
lea ecx, [esp + 4]
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
je 0x40dfb1
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x40e330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea edi, [esi + 0x38]
mov dword [esp + 0x14], 0
mov ecx, edi
call fcn.00415224
mov dword [edi], 0x418cfc
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 1
call fcn.0040f4b0
mov ecx, dword [esp + 0xc]
mov dword [esi], 0x418cf8
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0x8000
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret