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

Disassembly:
mov eax, 0x1004
call fcn.0045f410
mov cl, byte [0x52c6a0]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41aebf
mov dl, cl
mov ecx, 0x52c69c
or dl, al
mov byte [0x52c6a0], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41af50
call fcn.0045f3fc
add esp, 4
mov eax, dword [0x52c69c]
push esi
push 0x52b540
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41af29
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x520210
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, 0x52c69c
call fcn.0045e74e
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x52c69c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x41af60
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0045f410
mov al, byte [0x52c690]
push ebx
mov ebx, 1
push esi
test bl, al
mov dword [esp + 8], 0
jne 0x41afa3
mov dl, al
mov ecx, 0x52c68c
or dl, bl
mov byte [0x52c690], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41b030
call fcn.0045f3fc
add esp, 4
mov eax, dword [0x52c68c]
push 0x52b540
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41b009
push edi
push ebx
lea ecx, [esp + 0x14]
push 0x1a
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x520210
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, 0x52c68c
call fcn.0045e74e
pop edi
mov esi, dword [esp + 0x1010]
push 0x52c68c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x41bc20
Capabilities:
Terminate process

Disassembly:
push str.runner.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x41bc50
push str.runner.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x41bc50
push str.test
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41bc50
call eax
jmp fcn.0045f46e

Function at 0x41c380
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4aa96b
push eax
mov eax, 0x1704
mov dword fs:[0], esp
call fcn.0045f410
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, 0x52c644
push edx
call fcn.0045e74e
lea eax, [esp + 8]
mov ecx, 0x52c648
push eax
call fcn.0045e74e
lea ecx, [esp + 0x308]
push ecx
mov ecx, 0x52c648
call fcn.0045eab4
mov edx, dword [0x52c648]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x52c648
mov ecx, 0x52c648
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 [0x52c6c8]
mov al, 1
test al, cl
jne 0x41c466
or cl, al
mov byte [0x52c6c8], cl
lea ecx, [esp + 0x708]
push ecx
mov ecx, 0x52c6c4
call sub.MFC42.DLL_CString::CString_1
push 0x41c500
call fcn.0045f3fc
add esp, 4
push 0x2e
mov ecx, 0x52c6c4
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 4]
push eax
push edx
mov ecx, 0x52c6c4
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x52c6c4
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, 0x52c6c4
call fcn.0045eab4
mov eax, dword [esi + 0x94]
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [0x52c6c4]
push ecx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 8
mov ecx, 0x52c7a4
mov dword [esi + 0x94], eax
push eax
call fcn.0045e74e
mov ecx, dword [esp + 0x1708]
pop esi
mov dword fs:[0], ecx
add esp, 0x1710
ret

Function at 0x41c860
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 0x41c889
mov ecx, dword [esp + 4]
push eax
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
ret 4
Function at 0x41de6c
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4aad07
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 + 0x121c]
push eax
push 0xffffffffffffffff
push str.AutoRunTime
push 0x521030
call edi
mov ebx, eax
test ebx, ebx
jl 0x41dfcf
mov eax, dword [esi + 0x121c]
push eax
push 0
push str.PrimaryMacro
push 0x521030
call edi
cmp eax, dword [esi + 0x11f0]
jge 0x41dec5
test eax, eax
jl 0x41dec5
mov ecx, dword [esi + 0x11e8]
je 0x41dec7
mov ecx, dword [ecx]
dec eax
jne 0x41debe
jmp 0x41dec7
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 0x41dfb9
push 0
push ecx
lea eax, [edi + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_4
push ebx
lea ecx, [esp + 0x1c]
call fcn.00403c80
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 2
jne 0x41df69
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 0x41dfcf
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.00432ca0
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 0x420d90
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 0x420de5
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 0x420df0
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.00420b10
pop edi
pop esi
add esp, 0x7d4
ret 4
Function at 0x4230d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ab8d3
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], 0x4b6ae8
mov ebx, dword [esp + 0x2c]
mov dword [esi], 0x4b9630
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 0x4231a1
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x58]
test ebx, ebx
jne 0x423143
xor eax, eax
jmp 0x423146
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 0x42317f
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 0x4231b3
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 0x4231f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ab8fb
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], 0x4b9630
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x423280
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 0x423247
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 0x423271
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x423286
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x423286
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4b6ad4
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4b66a0
mov dword [esp + 0x1c], 0xffffffff
call fcn.0045ea36
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4251a9
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 0x425201
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x52b540
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4251f4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x425203
xor eax, eax
pop esi
leave
ret 4

Function at 0x427ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4abe7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.004278e0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 1
call fcn.004279c0
mov esi, dword [esp + 0x38]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 4], 1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.00427960
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x42abe0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ac738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov eax, dword [esp + 0x1c]
push 0x520314
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42ac35
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
cmp eax, 0x1000
jg 0x42ac77
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edi
push 0
push 0x1000
push esi
call ebp
mov al, byte [esi + 0xc]
add esp, 0xc
xor edi, edi
test al, 0x10
jne 0x42aca7
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fgetc]
push esi
call ebx
not eax
add edi, eax
mov al, byte [esi + 0xc]
add esp, 4
test al, 0x10
je 0x42ac95
pop ebx
push 0
push 0x1c
push esi
call ebp
push esi
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x2c]
add esp, 0x20
xor edx, edx
cmp eax, edi
sete dl
lea ecx, [esp + 0x20]
mov esi, edx
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x42b230
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ac7c8
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esi + 8]
mov eax, edi
xor edx, edx
shr eax, 4
div ebp
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], 0
test ecx, ecx
mov ebx, edx
je 0x42b28a
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x42b286
cmp dword [eax + 8], edi
je 0x42b280
mov eax, dword [eax]
test eax, eax
jne 0x42b273
jmp 0x42b286
test eax, eax
mov edi, eax
jne 0x42b2d7
test ecx, ecx
jne 0x42b2b6
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 8], ebp
mov ecx, esi
call fcn.0042b9d0
mov edi, eax
mov eax, dword [esp + 0x20]
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov ecx, dword [esi + 4]
mov edx, dword [ecx + ebx*4]
mov dword [edi], edx
mov eax, dword [esi + 4]
mov dword [eax + ebx*4], edi
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
mov dword [edi + 0xc], ecx
mov edx, dword [esp + 0x28]
push eax
lea ecx, [edi + 0x14]
mov dword [edi + 0x10], edx
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x30]
push ecx
lea ecx, [edi + 0x18]
call sub.MFC42.DLL_CString::operator_3
lea edx, [esp + 0x34]
lea ecx, [edi + 0x1c]
push edx
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x18

Function at 0x42bf20
Capabilities:
Set global application hook

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push edi
call fcn.0043af10
mov edx, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push ecx
mov ecx, eax
call dword [edx + 0x60]
mov ecx, esi
call fcn.0042bfe0
mov eax, dword [0x52ca60]
test eax, eax
jne 0x42bf8c
mov dword [0x52ca5c], esi
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov esi, dword [eax + 0x20]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42bf8c
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 8]
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push edi
push 0x42c060
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x52ca60], eax
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x42c170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac9d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c1b7
lea ecx, [ebp + 8]
mov dword [ebp - 4], eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42c30b
push 1
call dword [sym.imp.UxTheme.dll_SetThemeAppProperties]
xor ecx, ecx
push esi
mov dword [ebp - 0x2c], ecx
push esi
mov dword [ebp - 0x28], ecx
lea edx, [ebp + 8]
push ecx
mov dword [ebp - 0x24], ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], esi
call sub.MFC42.DLL_CString::CString_4
call fcn.0041b040
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, esi
mov ebx, eax
jne 0x42c1fc
xor edi, edi
jmp 0x42c22b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0045f410
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x42c253
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42c30b
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ebx, eax
xor edi, edi
cmp ebx, esi
jbe 0x42c2d6
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push edi
mov edx, dword [eax]
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x42c2d1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x42c2d1
cmp dword [ecx + 0x28], 5
jne 0x42c2ba
cmp dword [ebp - 0x30], esi
jne 0x42c2ba
cmp word [ebp - 0x2c], si
jne 0x42c2ba
cmp word [ebp - 0x2a], si
jne 0x42c2ba
mov edx, ecx
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x28], eax
mov edx, dword [edx + 0xc]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x42c2d1
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x4c]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
inc edi
cmp edi, ebx
jb 0x42c261
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x42c2e3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
call fcn.0042c330
push 7
call dword [sym.imp.UxTheme.dll_SetThemeAppProperties]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42e370
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4acdeb
push eax
mov eax, 0x10014
mov dword fs:[0], esp
call fcn.0045f410
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.uservar.ini
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov dword [esp + 0x1002c], ebx
push eax
call fcn.00460190
mov ecx, eax
call fcn.004609b0
push eax
lea ecx, [esp + 0x1c]
push 0x52c648
push ecx
mov dword [esp + 0x10034], 2
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x10038]
lea edx, [esp + 0x24]
push 0x10000
push edx
push str.blank_value
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x10028], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0xc]
push str.blank_value
push edx
mov dword [esp + 0x10030], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x42e46b
lea eax, [esi + 8]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_3
mov eax, dword [esp + 0x10038]
mov edi, 1
cmp eax, ebx
jne 0x42e4b5
cmp dword [esi + 0x14], edi
jne 0x42e4b5
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esi + 0x34]
add esp, 4
cmp eax, ecx
jb 0x42e4a5
push 0x52b540
lea ecx, [esp + 0x10]
call fcn.0045e74e
jmp 0x42e4b5
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0xc]
lea eax, [edx + eax*4]
push eax
call sub.MFC42.DLL_CString::operator_3
mov esi, dword [esp + 0x10030]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x14], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x10028], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10020]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10020
ret 0xc