joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4469a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x498ac3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048a5a3
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048fd15
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004913d3
test eax, eax
je 0x446abc
mov ecx, dword [esp + 0x3c]
call fcn.0048fd42
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x446a80
push edi
mov ecx, esi
call fcn.0048d304
mov ecx, esi
call fcn.00446c20
cmp dword [esp + 0x38], 1
jne 0x446ab5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048d46e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4494e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x449513
push esi
call fcn.0044c5e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44950c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x449599
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x449582
mov eax, dword [esi + 8]
test eax, eax
je 0x449537
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44957e
cmp eax, 2
je 0x449582
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44952a
cmp eax, 3
je 0x44955d
cmp eax, 1
jne 0x44952a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44952a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44952a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004495c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4495a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004495c0
add esp, 4
pop esi
ret
Function at 0x45d7d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00463be0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x45d8c9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.00416080
test eax, eax
jne 0x45d8c9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.00416080
test eax, eax
jne 0x45d8c9
lea edx, [esp + 0x10]
push 0x4c2748
push edx
call fcn.00479a90
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d89a
lea eax, [esp + 0x10]
push 0x4c2744
push eax
call fcn.00479a90
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d89a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x45d89d
mov byte [esi], 0
push 0x4c1f0c
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x463b20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x499978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x463bd0
mov eax, dword [0x4c3b98]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0048939b
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004893ea
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00489347
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x463bb7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x463bb7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00488f6b
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x466cd0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x499e00
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x466e77
mov ecx, dword [0x4c3b98]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x466dcc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004659f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004890a4
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00488f6b
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4c1f0c
call fcn.00488fd9
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00465db0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004890a4
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00488f6b
lea ecx, [esp + 0xc]
call fcn.0048947f
mov ecx, dword [esp + 0xc]
push 0x4c294c
push ecx
call fcn.004789b4
add esp, 8
test eax, eax
je 0x466df4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x466d2d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00488f6b
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00488f6b
jmp 0x466e7b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00466a70
test eax, eax
push 0
je 0x466e5f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00465110
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x466e45
cmp eax, 0x64
jg 0x466e33
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x466dd0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x466dd0
cmp eax, 0x64
jge 0x466dcc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x466dd0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00465110
mov esi, eax
jmp 0x466dd0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x466e85
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x48b398
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48b3d0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00489412
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004893ea
jmp 0x48b3dc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48ca8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48cacf
call fcn.00492a3e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48cacf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48cac6
xor eax, eax
jmp 0x48cad7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048cadd
pop edi
pop esi
pop ebx
ret 4

Function at 0x492f6e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x492f9c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492fba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492ed4
jmp 0x492fba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492fba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492ed4
test edi, edi
mov eax, edi
jne 0x492fa4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401986
Capabilities:
Clear file content
Get file size

Disassembly:
mov eax, 0x4af408
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
call fcn.00401a05
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x4019ec
mov dword [ebp - 0x18], esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4019e5
cmp eax, 0xf4240
jbe 0x4019e5
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b2e
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, 0x4af46c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetInstallFolder_void_]
mov dword [esp], str.TMDLLSSBuddyCall.exe
push eax
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
call fcn.00454178
push esi
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x401b8e
or esi, 0xffffffff
jmp 0x401cbd
push 0x4c3e94
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp - 0x14], esi
mov edi, str.TSBuddy_shellopencommand
push 0x20006
push edi
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401cfb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401c18
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x401bfe
xor eax, eax
cmp dword [ebp - 0x14], esi
je 0x401bf4
push dword [ebp - 0x14]
call ebx
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x14], ecx
je 0x401c18
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x401b86
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
jmp 0x401b86
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x18]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
push esi
push 0x4c3dbc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp dword [ebp - 0x14], esi
je 0x401c57
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
push 0x20006
push str.TSBuddy
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
call fcn.00401cfb
test eax, eax
jne 0x401bfe
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
mov al, byte [0x4c3dbc]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xd]
push eax
push 1
push esi
push str.URL_Protocol
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x14], esi
je 0x401cac
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x401cbd
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c01c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4afc2c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 4
pop edi
push edi
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40c0d0
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
add eax, 0x12
mov dword [ebp - 0x20], eax
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x4c5574
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00454dc5
add esp, 0x18
mov dword [ebp - 0x18], edi
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x28], esi
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b0226
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040f430
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_4
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x4c5bec
call fcn.0040f6b0
push 0x4c3dbc
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40ecc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x60]
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x70]
push 0
push 0
push 0
push eax
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40ed32
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov eax, 0x21
pop esi
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x40ed5f
dec eax
je 0x40ed56
sub eax, 0xbe
je 0x40ed4d
xor eax, eax
add esp, 0x54
ret
mov eax, 0xb
add esp, 0x54
ret
mov eax, 3
add esp, 0x54
ret
mov eax, 2
add esp, 0x54
ret
Function at 0x40f150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b0316
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040f430
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_4
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x4c5c54
call fcn.0040f6b0
push 0x4c3dbc
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x431033
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4b3d00
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x68
push ebx
push esi
push edi
mov esi, ecx
push 0x18
xor ebx, ebx
and byte [ebp - 0x74], bl
pop ecx
xor eax, eax
lea edi, [ebp - 0x73]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_4
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push 0x4fa784
push eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x4310da
push dword [ebp + 0x18]
lea eax, [ebp - 0x74]
push 0x64
push eax
push ebx
push 0x4fa9b4
push dword [ebp - 0x10]
call edi
cmp eax, ebx
jle 0x4310da
lea eax, [ebp - 0x74]
lea ecx, [ebp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
push dword [ebp + 0x14]
lea ecx, [esi + 0x36c]
mov byte [ebp - 4], 2
call fcn.00431eb5
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push dword [ebp + 0x18]
lea eax, [ebp - 0x74]
push 0x64
push eax
push ebx
push str.iconName
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x74]
lea ecx, [ebp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 0x10]
add esi, 0x44
push eax
lea eax, [ebp + 8]
push esi
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebx + 4]
shl esi, 2
mov eax, dword [esi + eax]
and dword [eax + 0x14], 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebx + 4]
mov ecx, dword [esi + eax]
add ecx, 0x1c
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push dword [ebp + 0x18]
lea eax, [ebp - 0x74]
push 0x64
push eax
push 0
push str.tipsinfo
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4311a2
lea eax, [ebp - 0x74]
lea ecx, [ebp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 6
push eax
mov eax, dword [ebx + 4]
mov ecx, dword [esi + eax]
add ecx, 0x18
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
Function at 0x431bee
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4b3e50
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
push 0x4fa7c4
lea eax, [ebp - 0x10]
lea edi, [esi + 0x44]
push edi
push eax
call sub.MFC42.DLL_operator_3
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.00454178
mov eax, dword [esi + 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x431c9e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x431c9e
push 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [edi]
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
push eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x431c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x431d4d
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x58]
call fcn.00454178
mov eax, dword [esi + 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x431d27
lea ecx, [ebp - 0x20]
call fcn.004542c8
mov esi, dword [esi + 0x3c]
push ebx
push 0x1002
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x431ce9
xor esi, esi
jmp 0x431cec
push 1
pop esi
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x431d4d
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret