joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403040
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x429c76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push ebp
mov ebp, dword [esp + 0x1cc]
push esi
mov dword [esp + 0x10], ecx
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::CFileFind
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xfc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1cc], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xfc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x437178
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x100]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4031ad
mov ebx, 1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1d0], bl
call dword [edx + 0x40]
test eax, eax
je 0x40316d
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x403194
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00403040
jmp 0x403194
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x1c]
call dword [edx + 0x40]
test eax, eax
je 0x403189
mov eax, dword [esp + 0x10]
push 0x80
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1cc], 0
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x40311f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::Close
lea edx, [esp + 0x34]
push 0x80
push edx
call edi
mov esi, ebp
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4031f0
test cl, cl
je 0x4031ec
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4031f0
add eax, 2
add esi, 2
test cl, cl
jne 0x4031c8
xor eax, eax
jmp 0x4031f5
sbb eax, eax
sbb eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x403208
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 8]
mov dword [esp + 0x1bc], 0xffffffff
call fcn.00428fae
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
add esp, 0x1c0
ret 4
Function at 0x4033e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x408
mov ecx, dword [esp + 0x410]
mov edx, dword [esp + 0x40c]
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403461
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x41c]
lea edx, [esp + 0x420]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403461
mov eax, dword [esp + 0x420]
lea edx, [esp + 0xc]
push edx
push 0x437114
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov esi, 1
jmp 0x403463
xor esi, esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x408
ret 0x14

Function at 0x403480
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429c88
push eax
mov dword fs:[0], esp
push esi
push edi
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4034c5
lea ecx, [esp + 0x1c]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov eax, dword [edx - 8]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
test eax, eax
sete cl
push edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x14

Function at 0x403530
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x40354d
xor eax, eax
pop esi
add esp, 0x18
ret 0xc
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x40356e
pop esi
add esp, 0x18
ret 0xc
fild qword [esp + 4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
pop esi
fmul dword [0x42eb70]
fstp dword [eax]
fild qword [esp + 8]
mov eax, 1
fmul dword [0x42eb70]
fstp dword [ecx]
add esp, 0x18
ret 0xc
Function at 0x4035a0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x429cbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x120]
lea eax, [esp + 4]
push eax
push 1
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysStringLen
mov ecx, esi
mov byte [esp + 0x12c], 1
call fcn.004033e0
test eax, eax
jne 0x40365e
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
push str.__s___s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call fcn.00428f24
push 1
lea ecx, [esp + 0x128]
mov byte [esp + 0x120], 1
call fcn.004036a0
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysStringLen
mov ecx, esi
call fcn.00403480
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x120]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x404e00
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404e71
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x404e71
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, 0x20
jb 0x404e71
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
test eax, eax
je 0x404e63
call eax
xor ecx, ecx
test eax, eax
setge cl
test eax, eax
mov esi, ecx
jge 0x404e63
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x404e80
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x42a4e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0xf
mov dword [esp + 0x148], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x404f76
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x148]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push edx
push eax
call edi
add esp, 8
test eax, eax
je 0x404f39
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x404f6f
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call edi
add esp, 8
test eax, eax
jne 0x404ef6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x404f5d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
jmp 0x404f76
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 4
Function at 0x404fb0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x42a503
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0xf
mov dword [esp + 0x148], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4050a5
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x148]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push edx
push eax
call edi
add esp, 8
test eax, eax
je 0x405069
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40509e
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call edi
add esp, 8
test eax, eax
jne 0x405026
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4050be
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 4
Function at 0x41c040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
cdq
sete bl
idiv dword [esi + 0x18]
test bl, bl
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
je 0x41c1d1
mov edx, dword [esi + 0x14]
push 0xffffffffffffffff
add edx, ecx
push eax
push 0x18
mov dword [esi + 0x14], edx
push ecx
lea edx, [esi + 0x24]
lea ebx, [esi + 0x20]
mov ecx, esp
push edx
mov dword [esp + 0x2c], ebx
call fcn.0040dcd0
push ecx
mov ecx, esp
push str.read
call fcn.00408590
push ebx
call fcn.0041a690
mov ecx, dword [esi + 0x18]
mov ebp, dword [esi + 0x1c]
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
mov edx, ebp
dec ebp
test edx, edx
je 0x41c172
inc ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.MSVCRT.dll_memmove]
mov dl, byte [esp + 0x13]
test dl, dl
je 0x41c0ea
xor edx, edx
cmp byte [edi], dl
jmp 0x41c0ef
xor edx, edx
cmp word [edi], dx
sete dl
test edx, edx
je 0x41c116
test eax, eax
je 0x41c10f
cmp edi, eax
je 0x41c10f
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call ebp
add esp, 0xc
mov ecx, dword [esi + 0x18]
inc ebx
lea eax, [ecx + edi]
mov edx, dword [esp + 0x14]
add edi, ecx
dec edx
mov dword [esp + 0x14], edx
jne 0x41c0dc
test eax, eax
je 0x41c13d
cmp edi, eax
je 0x41c13d
mov ecx, dword [esi + 0x18]
sub edi, eax
imul ecx, ebx
push edi
push eax
sub eax, ecx
push eax
call ebp
add esp, 0xc
test ebx, ebx
je 0x41c172
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov ecx, esp
push 0
call fcn.00408590
push ecx
mov ecx, esp
push str.nulls_removed
call fcn.00408590
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041a690
mov eax, dword [esi + 0x1c]
add esp, 0x18
sub eax, ebx
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x18], 1
jle 0x41c1c3
mov eax, dword [esi + 4]
push eax
call fcn.0041b160
add esp, 4
test al, al
je 0x41c1c3
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.0041b170
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push 0
call fcn.00408590
push ecx
mov ecx, esp
push str.endian_swap
call fcn.00408590
mov eax, dword [esp + 0x2c]
push eax
call fcn.0041a690
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, esi
call fcn.0041bb60
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x41ca70
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x14]
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x14]
imul eax, dword [ebp + 0x1c]
test esi, esi
mov dword [ebp + 8], eax
jne 0x41ca8e
mov esi, edi
mov ecx, dword [ebp + 4]
xor ebx, ebx
push ecx
call fcn.0041b160
add esp, 4
test al, al
je 0x41cb03
test edi, edi
jne 0x41cacd
mov edx, dword [ebp + 0x1c]
shl edx, 1
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x1c]
mov ebx, eax
shl ecx, 1
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
mov esi, ebx
mov ecx, dword [ebp + 0x1c]
push ecx
push edi
call fcn.0041b170
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push 0
call fcn.00408590
push ecx
mov ecx, esp
push str.endian_swap
call fcn.00408590
lea edx, [ebp + 0x20]
push edx
call fcn.0041a690
add esp, 0x18
mov eax, dword [ebp]
mov ecx, dword [ebp + 8]
push eax
push 1
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x18]
test ebx, ebx
je 0x41cb2c
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [esp + 0x18]
test al, al
je 0x41cb77
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
push eax
push 0x18
add esi, edx
push ecx
lea edx, [ebp + 0x24]
mov ecx, esp
push edx
mov dword [ebp + 0x14], esi
call fcn.0040dcd0
push ecx
mov ecx, esp
push str.write
call fcn.00408590
add ebp, 0x20
push ebp
call fcn.0041a690
mov al, byte [esp + 0x30]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, ebp
call fcn.0041bb60
mov al, byte [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x41dc00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42cdc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
mov edi, dword [ebx + 0x30]
mov dword [esp + 0x1c], 1
test edi, edi
mov dword [esp + 0xc], edi
je 0x41dcc7
push ebp
mov ebp, dword [edi]
test ebp, ebp
je 0x41dcbd
mov esi, dword [ebp]
test esi, esi
je 0x41dcac
add ebp, 4
test esi, esi
je 0x41dca5
cmp dword [esi], 0
je 0x41dc9c
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jle 0x41dc8d
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x41dc85
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x41d430
push ecx
push 0xc
push eax
call fcn.00429414
push edi
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x14]
add esp, 4
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jl 0x41dc5b
mov eax, dword [esi]
push eax
call sub.MFC42.DLL_operatordelete
mov ebx, dword [esp + 0x18]
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [ebp]
test esi, esi
jne 0x41dc46
mov eax, dword [edi]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], 0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop ebp
mov esi, dword [ebx + 0x34]
test esi, esi
je 0x41dd0f
mov edx, dword [esi + 4]
xor edi, edi
dec edx
sar edx, 0x10
inc edx
test edx, edx
jle 0x41dcf7
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esi + 4]
add esp, 4
inc edi
dec ecx
sar ecx, 0x10
inc ecx
cmp edi, ecx
jl 0x41dcdc
mov eax, dword [esi]
test eax, eax
je 0x41dd06
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebx + 4]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, ebx
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x423d80
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
je 0x423e11
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
je 0x423e11
cmp byte [ebx], 0
je 0x423e11
cmp dword [esp + 0x18], ebp
je 0x423e11
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x423e11
push edi
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebp
push 2
push ebp
push ebp
push ebp
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x423df9
mov ecx, dword [esp + 0x18]
inc edi
push edi
push esi
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x423df9
mov ebp, 1
mov eax, dword [esp + 0x18]
pop edi
test eax, eax
je 0x423e09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x10
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x4282a0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42da50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x18]
push eax
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi]
push 0xffffff
mov ecx, esi
mov ebx, eax
call dword [edx + 0x38]
mov ebp, eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x42f70c
push 0x437560
push 0x20
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x190
push eax
push eax
push eax
push 0xc
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, 3
mov dword [esp + 0x1c], eax
mov eax, 5
add edx, eax
sub ecx, eax
mov eax, dword [edi + 0x40]
mov edi, dword [edi + 0x44]
push eax
mov dword [esp + 0x1c], edx
mov edx, dword [esi]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi - 8]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, esi
call dword [edx + 0x70]
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x38]
mov dword [esp + 0x10], 0x42ec20
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x10087fe
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x1002bb8
call fcn.010098c4
mov edi, 0x94
mov eax, edi
call fcn.01009a20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x100e2f8], ecx
mov eax, dword [esi + 4]
mov dword [0x100e304], eax
mov edx, dword [esi + 8]
mov dword [0x100e308], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100e2fc], esi
cmp ecx, 2
je 0x100885e
or esi, 0x8000
mov dword [0x100e2fc], esi
shl eax, 8
add eax, edx
mov dword [0x100e300], eax
cmp word [0x1000000], 0x5a4d
jne 0x100889a
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100889a
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x10088b3
cmp ecx, 0x20b
je 0x10088a0
and dword [ebp - 0x1c], 0
jmp 0x10088c7
cmp dword [eax + 0x84], 0xe
jbe 0x100889a
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x10088c1
cmp dword [eax + 0x74], 0xe
jbe 0x100889a
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01009867
pop ecx
test eax, eax
jne 0x10088f4
cmp dword [0x100e2e8], 1
jne 0x10088e1
call fcn.01009043
push 0x1c
call fcn.01008e56
push 0xff
call fcn.01008cb5
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01009697
test eax, eax
jge 0x1008909
push 0x1b
call 0x653d26c9
arpl word [esp + edi*2], dx
adc al, 0x7c
xor edx, edx
imul ebp, ebx, 0xa069d295
imul ecx, edx
mov al, 0xc8
mov edx, esi
xchg ebp, eax
dec ebp
sub edx, 0xa9
mov eax, 0xa0e3d856
test edi, 0x77a15491
xadd edi, edx
mov ecx, 0x40ad466c
add edi, 0xdf0
je 0x1008945
sub al, 0xfa
test ebp, 0xbca8613b
test ebp, 0xbca8613b
jb 0x1008954
cmp dl, bh
imul ebp, edx
test bl, al
mov eax, ebx
adc ecx, 0xeca4d2b6
mov dl, 0xc7
jb 0x1008962
mov dh, 0x7a
cmp esi, 0x9f4f
imul ebp, ebp
dec ebx
jae 0x1008974
mov esi, 0x65e3c5d8
xor ch, al
cmp esi, ecx
push edi
jmp 0x1008980
xor ecx, 0x76eea76c
test ebp, ebp
xchg ebx, ebp
movsx ecx, bl
movzx edx, bl
mov esi, esi
movsx ebp, bh
sub edx, 0x8f7f3533
inc ecx
and eax, 0
jmp 0x10089a4
or eax, esi
cmp ecx, 0x340f
jae 0x10089bc
lea edx, [0x76bf440e]
inc edx
mov edx, 0x5d3fe588
xchg ebx, edx
or ebp, esi
ret