joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4163a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0041fb60
mov cl, byte [0x4eab68]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x4163df
mov dl, cl
mov ecx, 0x4eab64
or dl, al
mov byte [0x4eab68], dl
call sub.MFC42.DLL_CString::CString_2
push 0x416470
call fcn.0041fb4c
add esp, 4
mov eax, dword [0x4eab64]
push esi
push 0x4eaa80
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x416449
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4e6128
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, 0x4eab64
call sub.MFC42.DLL_CString::operator_3
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x4eab64
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x416480
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0041fb60
mov cl, byte [0x4eab60]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x4164bf
mov dl, cl
mov ecx, 0x4eab5c
or dl, al
mov byte [0x4eab60], dl
call sub.MFC42.DLL_CString::CString_2
push 0x416550
call fcn.0041fb4c
add esp, 4
mov eax, dword [0x4eab5c]
push esi
push 0x4eaa80
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x416529
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x4e6128
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, 0x4eab5c
call sub.MFC42.DLL_CString::operator_3
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x4eab5c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop esi
add esp, 0x1004
ret
Function at 0x416560
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0041fb60
mov al, byte [0x4eab50]
push ebx
mov ebx, 1
push esi
test bl, al
mov dword [esp + 8], 0
jne 0x4165a3
mov dl, al
mov ecx, 0x4eab4c
or dl, bl
mov byte [0x4eab50], dl
call sub.MFC42.DLL_CString::CString_2
push 0x416630
call fcn.0041fb4c
add esp, 4
mov eax, dword [0x4eab4c]
push 0x4eaa80
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x416609
push edi
push ebx
lea ecx, [esp + 0x14]
push 0x1a
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x4e6128
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, 0x4eab4c
call sub.MFC42.DLL_CString::operator_3
pop edi
mov esi, dword [esp + 0x1010]
push 0x4eab4c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop esi
pop ebx
add esp, 0x1004
ret

Function at 0x416cf0
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475e7b
push eax
mov eax, 0x1704
mov dword fs:[0], esp
call fcn.0041fb60
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, 0x4eab14
push edx
call sub.MFC42.DLL_CString::operator_3
lea eax, [esp + 8]
mov ecx, 0x4eab18
push eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x308]
push ecx
mov ecx, 0x4eab18
call fcn.0041f5d4
mov edx, dword [0x4eab18]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x4eab18
mov ecx, 0x4eab18
call fcn.0041f1d2
lea eax, [esp + 0x708]
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov cl, byte [0x4eabb4]
mov al, 1
test al, cl
jne 0x416dd6
or cl, al
mov byte [0x4eabb4], cl
lea ecx, [esp + 0x708]
push ecx
mov ecx, 0x4eabb0
call sub.MFC42.DLL_CString::CString_4
push 0x416e50
call fcn.0041fb4c
add esp, 4
push 0x2e
mov ecx, 0x4eabb0
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 4]
push eax
push edx
mov ecx, 0x4eabb0
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x4eabb0
mov dword [esp + 0x1714], 0
call fcn.0041f1d2
lea ecx, [esp + 4]
mov dword [esp + 0x1710], 0xffffffff
call sub.MFC42.DLL_CString::CString
push str..ini
mov ecx, 0x4eabb0
call fcn.0041f5d4
mov eax, dword [0x4eabb0]
mov ecx, dword [esp + 0x1708]
mov dword [esi + 0x94], eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1710
ret
Function at 0x416e60
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475ea6
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.0041fb60
push esi
call fcn.00434790
mov esi, eax
test esi, esi
je 0x416ed4
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push esi
lea eax, [esp + 0xc]
push 0xf27b
push eax
mov dword [esp + 0x1020], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 8]
mov dword [esp + 0x1014], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
push 0x1000
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CString::CString_4
push str.QMDispatch.dll
lea ecx, [esp + 8]
mov dword [esp + 0x1018], 1
call fcn.0041f5d4
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
mov dword [esp + 0x1014], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x100c]
pop esi
mov dword fs:[0], ecx
add esp, 0x1014
ret
Function at 0x416f40
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x475ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea eax, [esp + 0x10]
push 0x4e6a14
push eax
call fcn.0042aa00
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
push ecx
call fcn.004162f0
add esp, 0xc
push esi
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417078
push ebp
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push 0x95
lea ecx, [esp + 0x10]
push 0x4e6a10
push ecx
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xc]
push str.EXTERNAL
push edx
mov eax, dword [eax + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
mov edx, dword [eax + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test edi, edi
mov ebp, eax
je 0x417068
mov eax, dword [esp + 0x10]
push 0x4e68f8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x417068
push esi
push 1
push ebp
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4170a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475f36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4e6a74
call sub.MFC42.DLL_CString::CString_4
push ecx
xor edi, edi
mov ecx, esp
mov dword [esp + 0x20], esp
push str.bro.mymacro
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x18]
push 0x4e6a14
push eax
mov byte [esp + 0x3c], 1
call fcn.0042aa00
mov esi, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
push ecx
call fcn.004162f0
add esp, 8
mov byte [esp + 0x38], 3
mov edx, esp
mov dword [esp + 0x28], esp
push esi
push eax
push edx
call sub.MFC42.DLL_operator_2
push ecx
mov byte [esp + 0x3c], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push str.http:__ad.vrbrothers.com_qmacro_v7_cht_ad_mymacro.xml
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x3c], 7
call fcn.00401440
mov ecx, eax
call fcn.00401600
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::CString
or esi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_CString::CString
mov al, byte [0x4eabac]
test al, 1
jne 0x417207
mov dl, al
mov al, byte [esp + 0xb]
or dl, 1
mov byte [0x4eab80], al
mov byte [0x4eabac], dl
mov dword [0x4eab84], edi
mov dword [0x4eab88], edi
mov dword [0x4eab8c], edi
mov dword [0x4eab78], 0x4a50e8
mov ecx, 0x4eab90
mov dword [esp + 0x2c], 8
mov dword [esp + 0x20], ecx
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x4eab94
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x4eaba0
mov byte [esp + 0x2c], 0xa
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x4eaba4
mov byte [esp + 0x2c], 0xb
call sub.MFC42.DLL_CString::CString_2
push 0x417270
mov dword [0x4eab78], 0x4a50e4
mov dword [0x4eab7c], 4
mov dword [esp + 0x30], esi
call fcn.0041fb4c
add esp, 4
push 0x4eab78
call fcn.00401440
mov ecx, eax
call fcn.00401920
push 0x3e8
mov ecx, 0x4eab78
call fcn.00402e90
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
Function at 0x417310
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4eab38]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
test eax, eax
mov edi, ecx
je 0x4173a8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0xf27d
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x417396
push eax
call ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push eax
call ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x4173ba
lea ecx, [ebp - 0x10]
push ecx
call fcn.004174a0
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41746a
mov eax, dword [ebp - 0x10]
push esi
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 4
push 0
push 0
push 0xf001f
push eax
mov dword [edi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x41743c
mov ecx, dword [esi]
push 0x201
push 0
push 0x464
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [edi + 0xcc]
push edx
call ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
jmp 0x41747a
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x417700
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4760ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x18], esi
call fcn.0041f3ac
lea ecx, [esi + 0x64]
mov dword [esp + 0x1c], 0
call fcn.00414750
lea ebx, [esi + 0x130]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea edi, [esi + 0x134]
mov byte [esp + 0x1c], 2
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x47d3e0
push 1
lea ecx, [esi + 0x174]
mov byte [esp + 0x20], 3
call fcn.004156f0
push fcn.0040b640
push fcn.0040b4e0
push 0x64
lea ecx, [esi + 0x1a0]
push 0x68c
push ecx
mov byte [esp + 0x30], 4
call fcn.0041fcb2
lea ecx, [esi + 0x29050]
mov byte [esp + 0x1c], 5
call fcn.0040cfe0
lea ecx, [esi + 0x291f0]
mov byte [esp + 0x1c], 6
call fcn.0040b0d0
lea ecx, [esi + 0x297a0]
mov byte [esp + 0x1c], 7
call fcn.0040d8f0
lea edi, [esi + 0x29a00]
mov byte [esp + 0x1c], 8
mov ecx, edi
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_CPropertySheet::CPropertySheet
lea ebp, [edi + 0x90]
mov byte [esp + 0x1c], 9
mov ecx, ebp
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebp], 0x47dbb4
mov dword [edi], 0x47dae8
lea ecx, [esi + 0x29ad4]
mov byte [esp + 0x1c], 0xa
call fcn.00432a70
lea ecx, [esi + 0x29b24]
mov byte [esp + 0x1c], 0xb
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x29b3c]
mov byte [esp + 0x1c], 0xc
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x29b40]
mov byte [esp + 0x1c], 0xd
call sub.MFC42.DLL_CString::CString_2
lea edi, [esi + 0x29ba0]
mov byte [esp + 0x1c], 0xe
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
push 0x4eaa80
mov ecx, ebx
mov byte [esp + 0x20], 0xf
mov dword [esi], 0x4a52d8
call sub.MFC42.DLL_CString::operator_3
push 0x4eaa80
mov ecx, edi
call sub.MFC42.DLL_CString::operator_3
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x19c], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x418b70
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476357
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 + 0x29b24]
push eax
push 0xffffffffffffffff
push str.AutoRunTime
push str.AutoRun
call edi
mov ebx, eax
test ebx, ebx
jl 0x418cfb
mov eax, dword [esi + 0x29b24]
push eax
push 0
push str.PrimaryMacro
push str.AutoRun
call edi
test ebx, ebx
mov edi, eax
jle 0x418cc0
test edi, edi
jge 0x418bda
xor edi, edi
push 0
push edi
lea ecx, [esi + 0x29ad4]
call fcn.00418d20
push ecx
add eax, 0x34
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.004045d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 2
jne 0x418c70
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 0x418cfb
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
cmp edi, dword [esi + 0x29af8]
jge 0x418ce6
test edi, edi
jl 0x418ce6
mov eax, dword [esi + 0x29af0]
je 0x418ce8
lea ecx, [edi]
mov eax, dword [eax]
dec ecx
jne 0x418cdf
jmp 0x418ce8
xor eax, eax
push 0
add eax, 8
push 0
push eax
lea ecx, [esi + 0x29ad4]
call fcn.00433340
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xf8
ret
Function at 0x41a400
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 0x41a455
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 0x41a460
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.0041a180
pop edi
pop esi
add esp, 0x7d4
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x476848
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
xor edi, edi
mov dword [esp + 0x14], edi
call fcn.0041f32e
lea eax, [esp + 0x1c]
lea ecx, [esi + 0xe8]
push eax
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea ecx, [esi + 0xf0]
mov dword [esi + 0xf0], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, 0x47d8c4
mov dword [esi + 0x104], edi
mov dword [esi + 0x100], eax
mov dword [esi + 0x10c], edi
mov dword [esi + 0x108], eax
mov dword [esi + 0x11c], edi
mov dword [esi + 0x118], 0x47d7f0
lea ecx, [esi + 0x120]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc0], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc4], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0xc8], ecx
lea ecx, [esp + 0x1c]
mov dword [esi], 0x4a58d8
mov dword [esi + 0xec], eax
mov dword [esi + 0xcc], edx
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x41f029
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f081
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4eaa80
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f074
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41f083
xor eax, eax
pop esi
leave
ret 4

Function at 0x4249a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47706b
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], 0x4a6300
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x424a30
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 0x4249f7
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 0x424a21
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x424a36
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x424a36
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x47d7dc
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x47d2d0
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041f556
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret