joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1422524
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1438010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0140806c
mov dword [ebp - 0x14], eax
cmp dword [0x353b16c], esi
jne 0x1422617
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x14225a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x14226f7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x14226f7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x14226f7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x353b16c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x353b170], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x353b174], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x353b17c], eax
test eax, eax
je 0x1422614
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x353b178], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x142263c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x142262f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1422651
push 4
pop eax
jmp 0x14226f9
cmp dword [ebp - 0x14], esi
je 0x1422651
push dword [0x353b16c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1422636
mov eax, dword [0x353b178]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x14226af
cmp dword [0x353b17c], edi
je 0x14226af
push eax
call ebx
push dword [0x353b17c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x14226af
test eax, eax
je 0x14226af
call ecx
test eax, eax
je 0x14226a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x14226a4
test byte [ebp - 8], 1
jne 0x14226af
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x14226df
mov eax, dword [0x353b170]
cmp eax, edi
je 0x14226dc
push eax
call ebx
test eax, eax
je 0x14226dc
call eax
mov esi, eax
test esi, esi
je 0x14226dc
mov eax, dword [0x353b174]
cmp eax, edi
je 0x14226dc
push eax
call ebx
test eax, eax
je 0x14226dc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x353b16c]
call ebx
test eax, eax
je 0x14226f7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x14226f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.014057cc
mov esp, ebp
pop ebp
ret
Function at 0x1009b74
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1024510]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], eax
call sub.MFC42u.DLL_CDataExchange::PrepareEditCtrl
cmp dword [ebx], 0
mov edi, eax
je 0x1009c12
push 0x40
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x84], 0
je 0x1009c0a
push esi
lea eax, [ebp - 0x84]
mov edi, 0x1024830
push eax
mov ecx, edi
call fcn.01012f9f
test eax, eax
jne 0x1009be5
push 0xffffffffffffffff
push 0x40
push 0x67
call sub.MFC42u.DLL_AfxMessageBox
mov ecx, ebx
call sub.MFC42u.DLL_CDataExchange::Fail
push 2
push dword [esi]
lea eax, [ebp - 0x84]
push 0x40
push eax
mov ecx, edi
call fcn.01013e61
push esi
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.01012f9f
jmp 0x1009c40
mov dword [esi], 0x7fffffff
jmp 0x1009c40
mov esi, dword [esi]
cmp esi, 0x7fffffff
je 0x1009c40
push 2
push esi
push 0x40
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x1024830
call fcn.01013e61
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010179d2
leave
ret 0xc

Function at 0x100a0b6
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1024510]
push esi
xor esi, esi
cmp dword [0x102463c], esi
mov dword [ebp - 4], eax
jne 0x100a17f
push ebx
push edi
mov edi, 0x1023c74
mov ebx, 0xffff
xor eax, eax
cmp dword [edi - 4], eax
jne 0x100a164
cmp dword [edi], eax
je 0x100a164
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100a146
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x100a146
and word [eax], 0
push dword [edi]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100995a
mov esi, eax
and esi, ebx
jne 0x100a161
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
and esi, 0x10
test esi, esi
jne 0x100a161
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.0100869d
mov esi, eax
and esi, ebx
je 0x100a164
and dword [edi], 0
add edi, 0x1c
cmp edi, 0x1023dc4
jl 0x100a0e4
pop edi
mov dword [0x102463c], 1
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.010179d2
leave
ret
Function at 0x1012ca9
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1024510]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x1012d17
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.MFC42u.DLL_AfxFullPath
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
test ax, ax
mov dword [ebp - 0x210], eax
je 0x1012d17
lea eax, [ebp - 0x210]
push eax
push 0x10125cd
call dword [sym.imp.USER32.dll_EnumWindows]
cmp word [ebp - 0x210], 0
jne 0x1012d0b
xor eax, eax
inc eax
jmp 0x1012d19
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.010179d2
leave
ret 4
Function at 0x101438b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jne 0x10143a0
xor eax, eax
jmp 0x10143fe
push edi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10143c5
xor eax, eax
jmp 0x10143fd
push esi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 0xa]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10143f4
cmp dword [ebp - 4], 2
jne 0x10143f4
cmp word [ebp + 0xa], 0xfeff
je 0x10143f1
cmp word [ebp + 0xa], 0xfffe
jne 0x10143f4
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x1016ab9
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1024510]
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
call esi
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
push eax
call fcn.01008a3e
cmp dword [ebp - 0x218], ebx
jbe 0x1016b62
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x1016b59
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
call fcn.01008a80
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call fcn.0101bd10
inc ebx
cmp ebx, dword [ebp - 0x218]
jb 0x1016b07
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x220]
push eax
call fcn.01008a80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.010179d2
leave
ret 4
Function at 0x1019b4d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1006c80
call fcn.01019fe0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1019b88
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1019b88
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1019ba0
cmp eax, 0x20b
je 0x1019b8d
mov dword [ebp - 0x1c], edi
jmp 0x1019bb4
cmp dword [ecx + 0x84], 0xe
jbe 0x1019b88
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1019bae
cmp dword [ecx + 0x74], 0xe
jbe 0x1019b88
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1024f50], 0xffffffff
or dword [0x1024f54], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1024f34]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1024f30]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1024f4c], eax
call fcn.01019fd8
cmp dword [0x1024520], edi
jne 0x1019c11
push fcn.01019fd8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01019fc1
push 0x1023058
push 0x1023054
call sub.msvcrt.dll__initterm
mov eax, dword [0x1024f2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1024f28]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1023050
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1019c77
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1019d31
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1019cc5
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1019c93
cmp ax, 0x22
jne 0x1019c80
cmp word [esi], 0x22
jne 0x1019c9e
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1019cac
cmp ax, 0x20
jbe 0x1019c99
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1019cd2
movzx eax, word [ebp - 0x50]
jmp 0x1019cd5
cmp word [esi], 0x20
jbe 0x1019c9e
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1019cc5
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0101a187
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1019cf6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1019d2b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0101a01b
ret
Function at 0x101a06d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1006cc8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101a0c5
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004d10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101a0b8
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101a0c7
xor eax, eax
pop esi
leave
ret 4
Function at 0x4010e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x447a59
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45b680]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b680]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x50], ebp
push edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], ebp
call fcn.00410b50
mov dword [esp + 0x50], ebp
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov cx, word [0x44eea4]
mov ebx, eax
mov eax, dword [0x44eea0]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], cx
cmp ebx, ebp
je 0x401253
lea ecx, [ecx]
test bl, 1
je 0x401244
lea eax, [esp + 0x3c]
lea edx, [ebp + 0x41]
push eax
mov word [esp + 0x40], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x401244
lea esi, [esp + 0x24]
call fcn.004012b0
call fcn.004122f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x401274
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 1
call fcn.00404930
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x58], 2
call fcn.00401600
mov bl, al
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401204
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x401212
lea ecx, [esp + 0x24]
push ecx
call fcn.00402ba0
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401237
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.00401340
mov ebx, dword [esp + 0x1c]
shr ebx, 1
inc ebp
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x401160
mov eax, edi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0042de55
add esp, 0x40
ret
push 0x80004005
call fcn.00404ab0
int3
Function at 0x401920
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447658
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
mov eax, dword [0x45b680]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ecx
mov dword [esp + 0x28], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401995
push 0x44f260
mov ecx, ebp
call fcn.00404930
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x1c
ret
xor ecx, ecx
mov eax, 0x105
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411e58
push 0x20a
mov esi, eax
push 0
push esi
call fcn.004308e0
add esp, 0x10
push 0x44f260
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0x105
call fcn.00404930
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
push 0
mov dword [esp + 0x34], 0
mov edx, dword [esp + 0x20]
push str.HardwareID
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a08
cmp dword [esp + 0x18], 7
je 0x401a18
push 0x20a
push 0
push esi
call fcn.004308e0
add esp, 0xc
test esi, esi
jne 0x401a20
xor eax, eax
jmp 0x401a34
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a25
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.00404800
push esi
call fcn.00411e4d
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404200
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x401ec0
Capabilities:
Get disk size

Disassembly:
sub esp, 0xc
push str.CCdRomTools::IsCdromReady_Begin
lea ecx, [esp + 4]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00404930
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 0
lea edx, [esp + 8]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x401f5e
cmp dword [esp + 8], 0
jl 0x401f5e
jg 0x401f2a
cmp dword [esp + 4], 0
jbe 0x401f5e
push str.CCdRomTools::IsCdromReady_true
lea ecx, [esp + 0x14]
call fcn.00404930
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
add esp, 0xc
ret
push str.CCdRomTools::IsCdromReady_false
lea ecx, [esp + 0x14]
call fcn.00404930
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
add esp, 0xc
ret

Function at 0x404270
Capabilities:
Inspect section memory permissions

Disassembly:
cmp eax, ebx
je 0x4042cd
add eax, esi
cmp dword [eax], ebx
je 0x4042cd
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4042c8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4042b2
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4042ba
cmp edx, ebx
jne 0x404408
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x404289
add eax, dword [eax + 4]
jmp 0x404276
mov dword [ebp + 0xc], ebx
jmp 0x4042d8
Function at 0x404470
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [edx - 0x3a]
test dword [esi + 0x46fffffc], esi
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00403c29
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403bde
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
add eax, esi
test dword [ebp - 4], ecx
invalid
jmp [eax]
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
invalid
test dword [esp + edi*8], edi
invalid

Function at 0x4048b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb bh, bh
jne 0x4048c8
call fcn.00403bde
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00403c19
sub al, 0xde
inc ecx
push ecx
fiadd word [ecx + 0x51]
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
cld
invalid
inc dword [eax]
je 0x40490d
cmp dword [ebp - 0x398], 0
je 0x404ad7
cmp dword [ebp + 0xc], 1
je 0x404ad7
cmp dword [ebp + 0xc], 8
jne 0x404a9f
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
invalid
inc dword [eax]
invalid
call fcn.00403c19
jg 0x404a8e
shl dword [ebp - 0x80], 1
movsd dword es:[edi], dword [esi]
mov esp, 0xfffffa
push 0
add bh, bh
xchg ebp, eax
sar ah, 0xff
dec dword [ecx + 0x4680845]
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
Function at 0x404ab0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add bh, bh
xchg ebp, eax
sar ah, 0xff
dec dword [ecx + 0x4680845]
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.00403c19
inc edx
popfd
dec ebx
cld
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00403bf7
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00403c29
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403bde
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00403c19
add byte [ecx], ah
shr byte [eax + 4], 1
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid