joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4173ad
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b29ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], esi
push eax
push edi
push str.ShowFirstMacro
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], edi
cmp eax, edi
jle 0x417617
mov ebx, 1
jmp 0x4173e6
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.00432660
lea ecx, [esp + 0x94]
mov dword [esp + 0x110], edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x98]
mov byte [esp + 0x110], bl
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x9c], 0x4be15c
mov dword [esp + 0xa0], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], edi
lea ecx, [esp + 0xb0]
mov byte [esp + 0x110], 3
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0xc4]
mov byte [esp + 0x110], 4
call fcn.00417980
mov dword [esp + 0xc4], 0x4be148
lea ecx, [esp + 0xe0]
mov byte [esp + 0x110], 5
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 6
call sub.MFC42.DLL_CStringArray::CStringArray
xor eax, eax
mov dword [esp + 0x1c], 0x4be110
mov dword [esp + 0xd8], eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0xdc], eax
mov edx, dword [esp + 0x10]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
push ecx
lea ecx, [esi + 4]
mov dword [esp + 0x11c], 7
call fcn.0040b660
lea ecx, [esp + 0x20]
call fcn.00434310
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1c], esp
mov ebp, esp
push 0x10
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, edi
je 0x41752d
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi], 0x4bd310
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov byte [esp + 0x114], 9
call dword [eax + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 2
jmp 0x41752f
xor esi, esi
mov ecx, dword [esp + 0x11c]
mov byte [esp + 0x114], 7
mov dword [ebp], esi
call fcn.00436720
lea ecx, [esp + 0xf4]
mov dword [esp + 0x110], 0x10
call fcn.00420650
lea ecx, [esp + 0xe0]
mov byte [esp + 0x110], 0xf
call fcn.00420650
lea ecx, [esp + 0xc4]
mov byte [esp + 0x110], 0xe
call fcn.004179a0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x110], 0xd
call fcn.00420650
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x9c], 0x4be15c
cmp eax, edi
je 0x4175b8
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0x9c], 0x4bc4a0
mov byte [esp + 0x110], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x94]
mov byte [esp + 0x110], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x110], 0xffffffff
call fcn.00417e60
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc eax
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
cmp eax, edx
jl 0x4173e2
mov ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x104
ret 4
Function at 0x417640
Capabilities:
Delete file
Encode data using xor
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b2a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov eax, dword [esp + 0x1c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x20]
lea eax, [esp + 8]
push edx
push 4
xor esi, esi
push 1
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x18]
add esp, 0x10
cmp eax, esi
jle 0x4176f0
mov ecx, dword [esp + 0x1c]
push 0x50ea34
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
je 0x4176f0
cmp dword [esp + 8], esi
jle 0x4176e6
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fgetc]
mov edx, dword [esp + 0x28]
push edi
push edx
call ebp
add esp, 4
xor eax, 0xcc
push eax
call ebx
mov eax, dword [esp + 0x18]
add esp, 8
inc esi
cmp esi, eax
jl 0x4176c5
pop ebp
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x417720
Capabilities:
Delete file

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0xc]
test eax, eax
jle 0x41775e
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ebx, [edi + 4]
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, ebx
call fcn.0040b660
mov ecx, dword [eax]
push ecx
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0xc]
inc esi
cmp esi, eax
jl 0x417739
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x417770
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b2a70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
lea eax, [esp + 0x34]
push ebx
mov esi, ecx
push eax
call fcn.004195c0
mov ecx, esp
mov dword [esp + 0x18], esp
push str.plugin.zip
push eax
push ecx
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_operator_2
mov ecx, esi
call fcn.00417640
or edi, 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x52e2b8
call sub.MFC42.DLL_CString::CString_2
push ecx
mov dword [esp + 0x34], 1
mov edx, esp
mov dword [esp + 0x24], esp
push str.plugin
push 0x52e348
push edx
call sub.MFC42.DLL_operator_2
lea eax, [esp + 0x3c]
mov byte [esp + 0x34], 2
push eax
call fcn.004195c0
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.plugin.zip
push eax
push ecx
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x38], 4
call fcn.004110f0
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push edx
call fcn.004195c0
add esp, 4
push str.plugin.zip
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], 5
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.004195c0
mov edx, esp
mov dword [esp + 0x28], esp
push str.mymacro.zip
push eax
push edx
mov dword [esp + 0x40], 6
call sub.MFC42.DLL_operator_2
mov ecx, esi
call fcn.00417640
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x52e2b8
call sub.MFC42.DLL_CString::CString_2
push ecx
mov dword [esp + 0x34], 7
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.004195c0
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 8
push ecx
call fcn.004195c0
add esp, 4
mov byte [esp + 0x38], 9
mov edx, esp
mov dword [esp + 0x1c], esp
push str.mymacro.zip
push eax
push edx
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x38], 0xa
call fcn.004110f0
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push eax
call fcn.004195c0
add esp, 4
push str.mymacro.zip
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x38], 0xb
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x418490
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b2bd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 4]
lea esi, [edi + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 1
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x52e2b8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4184f3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CFile::CFile
mov ecx, edi
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 0x4195c0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00420ac0
mov cl, byte [0x52e3ac]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x4195ff
mov dl, cl
mov ecx, 0x52e3a8
or dl, al
mov byte [0x52e3ac], dl
call sub.MFC42.DLL_CString::CString_4
push 0x419660
call fcn.00420aac
add esp, 4
mov eax, dword [0x52e3a8]
push 0x52e2b8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x419636
lea ecx, [esp + 4]
push ecx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 4]
mov ecx, 0x52e3a8
push edx
call sub.MFC42.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x100c]
push 0x52e3a8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x419670
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00420ac0
mov cl, byte [0x52e3a4]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x4196af
mov dl, cl
mov ecx, 0x52e3a0
or dl, al
mov byte [0x52e3a4], dl
call sub.MFC42.DLL_CString::CString_4
push 0x419740
call fcn.00420aac
add esp, 4
mov eax, dword [0x52e3a0]
push esi
push 0x52e2b8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x419719
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x50e174
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x52e3a0
call sub.MFC42.DLL_CString::operator_1
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x52e3a0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop esi
add esp, 0x1004
ret
Function at 0x419750
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00420ac0
mov cl, byte [0x52e39c]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41978f
mov dl, cl
mov ecx, 0x52e398
or dl, al
mov byte [0x52e39c], dl
call sub.MFC42.DLL_CString::CString_4
push 0x419820
call fcn.00420aac
add esp, 4
mov eax, dword [0x52e398]
push esi
push 0x52e2b8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4197f9
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x50e174
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x52e398
call sub.MFC42.DLL_CString::operator_1
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x52e398
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x419830
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00420ac0
mov al, byte [0x52e38c]
push ebx
mov ebx, 1
push esi
test bl, al
mov dword [esp + 8], 0
jne 0x419873
mov dl, al
mov ecx, 0x52e388
or dl, bl
mov byte [0x52e38c], dl
call sub.MFC42.DLL_CString::CString_4
push 0x419900
call fcn.00420aac
add esp, 4
mov eax, dword [0x52e388]
push 0x52e2b8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4198d9
push edi
push ebx
lea ecx, [esp + 0x14]
push 0x1a
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x50e174
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x52e388
call sub.MFC42.DLL_CString::operator_1
pop edi
mov esi, dword [esp + 0x1010]
push 0x52e388
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x41aa40
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b341b
push eax
mov eax, 0x1704
mov dword fs:[0], esp
call fcn.00420ac0
push esi
mov esi, ecx
lea eax, [esp + 0x208]
lea ecx, [esp + 0x108]
push eax
lea edx, [esp + 0x30c]
push ecx
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea edx, [esp + 0x108]
mov ecx, 0x52e344
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 8]
mov ecx, 0x52e348
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x308]
push ecx
mov ecx, 0x52e348
call fcn.00420524
mov edx, dword [0x52e348]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x52e348
mov ecx, 0x52e348
call sub.MFC42.DLL_CString::operator_3
lea eax, [esp + 0x708]
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov cl, byte [0x52e3b4]
mov al, 1
test al, cl
jne 0x41ab26
or cl, al
mov byte [0x52e3b4], cl
lea ecx, [esp + 0x708]
push ecx
mov ecx, 0x52e3b0
call sub.MFC42.DLL_CString::CString_2
push 0x41aba0
call fcn.00420aac
add esp, 4
push 0x2e
mov ecx, 0x52e3b0
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 4]
push eax
push edx
mov ecx, 0x52e3b0
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x52e3b0
mov dword [esp + 0x1714], 0
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 4]
mov dword [esp + 0x1710], 0xffffffff
call sub.MFC42.DLL_CString::CString
push str..ini
mov ecx, 0x52e3b0
call fcn.00420524
mov eax, dword [0x52e3b0]
mov ecx, dword [esp + 0x1708]
mov dword [esi + 0x94], eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1710
ret

Function at 0x41af20
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [ecx + 0xcc]
push 4
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x41af49
mov ecx, dword [esp + 4]
push eax
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
ret 4
Function at 0x41c4bc
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b37f7
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esi + 0x307bc]
push eax
push 0xffffffffffffffff
push str.AutoRunTime
push 0x50eecc
call edi
mov ebx, eax
test ebx, ebx
jl 0x41c61f
mov eax, dword [esi + 0x307bc]
push eax
push 0
push str.PrimaryMacro
push 0x50eecc
call edi
cmp eax, dword [esi + 0x30790]
jge 0x41c515
test eax, eax
jl 0x41c515
mov ecx, dword [esi + 0x30788]
je 0x41c517
mov ecx, dword [ecx]
dec eax
jne 0x41c50e
jmp 0x41c517
xor ecx, ecx
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x20]
test ebx, ebx
mov edi, eax
jle 0x41c609
push 0
push ecx
lea eax, [edi + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ebx
lea ecx, [esp + 0x1c]
call fcn.00403990
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 2
jne 0x41c5b9
lea ecx, [esp + 0xf4]
mov dword [esp + 0x100], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 2
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x70]
mov byte [esp + 0x100], 1
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
jmp 0x41c61f
lea ecx, [esp + 0xf4]
mov dword [esp + 0x100], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 5
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x70]
mov byte [esp + 0x100], 4
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
push 6
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push 0
push 0
push edi
call fcn.00436ef0
add esp, 0xc
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xf8
ret

Function at 0x41e140
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
lea ebx, [esi + 0xa]
push eax
push 0x40
push ebx
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41e195
mov ecx, esi
mov esi, dword [esp + 0x18]
mov edx, ecx
push edi
mov edi, ebp
lea eax, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41e1a0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x7d4
push esi
mov esi, ecx
push edi
xor edx, edx
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x7e0]
mov dword [esp + 8], edx
push eax
push edx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x7d0
push edx
push eax
call sub.PSAPI.DLL_EnumProcessModules
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041dec0
pop edi
pop esi
add esp, 0x7d4
ret 4

Function at 0x41e740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b3c43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CDC::CDC
lea ebp, [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x4bc8e8
mov ebx, dword [esp + 0x2c]
mov dword [esi], 0x4be890
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
mov edi, dword [ebx + 0xc]
xor eax, eax
cmp edi, ecx
mov byte [esp + 0x24], 1
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x41e811
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x58]
test ebx, ebx
jne 0x41e7b3
xor eax, eax
jmp 0x41e7b6
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
sub ecx, edx
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CGdiObject::Attach
test ebp, ebp
je 0x41e7ef
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetWindowOrg
jmp 0x41e823
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x41e860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b3c6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4be890
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x41e8f0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x41e8b7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x41e8e1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x41e8f6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x41e8f6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4bc8d4
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4bc4a0
mov dword [esp + 0x1c], 0xffffffff
call fcn.004204a6
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x41ff79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ffd1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x52e2b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41ffc4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41ffd3
xor eax, eax
pop esi
leave
ret 4
Function at 0x425920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b426b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4bf408
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4259b0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x425977
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4259a1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4259b6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4259b6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4bc8d4
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4bc4a0
mov dword [esp + 0x1c], 0xffffffff
call fcn.004204a6
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret