joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abb50
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
xor esi, esi
call edi
test ax, ax
jge 0x4abb68
mov esi, 1
push 2
call edi
test ax, ax
jge 0x4abb74
or esi, 2
push 4
call edi
test ax, ax
jge 0x4abb80
or esi, 0x10
push 0x10
call edi
test ax, ax
jge 0x4abb8c
or esi, 4
push 0x11
call edi
test ax, ax
jge 0x4abb98
or esi, 8
mov eax, esi
pop edi
pop esi
ret

Function at 0x4ad790
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x52b21b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x10], esi
mov byte [esi + 0x10], al
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esp + 0x1c], edi
mov dword [esi], 0x53abcc
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.00445670
mov dword [esi + 0x20], eax
call fcn.0041e290
push 0x567fe0
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x28], eax
je 0x4ad81d
push 0x567fc8
push eax
call edi
mov ecx, dword [esi + 0x28]
push 0x567fb0
push ecx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x30], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x567f94
push str.Kernel32.dll
call ebx
push eax
call edi
push 0x567f78
push 0x567f70
mov dword [esi + 0x34], eax
call ebx
push eax
call edi
mov ecx, esi
mov dword [esi + 0x38], eax
call fcn.004ad8a0
lea edx, [esi + 0x48]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ad900
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x56f090
call sub.MFC42.DLL_CString::operator_3
lea edx, [esp + 0x14]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x14]
mov ecx, 0x56f08c
push eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.0041e3b0
add esp, 8
lea edx, [esp + 0x14]
mov ecx, 0x56f088
push edx
call sub.MFC42.DLL_CString::operator_3
mov ecx, 0x56f090
call sub.MFC42.DLL_CString::MakeLower
mov ecx, 0x56f08c
call sub.MFC42.DLL_CString::MakeLower
mov ecx, 0x56f088
call sub.MFC42.DLL_CString::MakeLower
mov ecx, esi
call fcn.004adcf0
mov ebp, dword [esp + 0x11c]
xor ebx, ebx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad9eb
mov ecx, dword [esi + 0x18]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x4ad9eb
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, ebp
mov edi, dword [edx + ebx*4]
push edi
push 1
push eax
call fcn.004aea00
test edi, edi
je 0x4ad9e8
mov ecx, edi
call fcn.00464f30
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
inc ebx
jmp 0x4ad9ae
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov eax, edx
cmp eax, edx
je 0x4ada1c
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x4ad9f7
mov edx, dword [esi + 0x18]
mov dword [esi + 0x18], ecx
pop edi
pop esi
pop ebp
mov dword [esp + 4], edx
pop ebx
add esp, 0x108
ret 4
mov eax, dword [esi + 0x18]
mov dword [esi + 0x18], ecx
pop edi
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x108
ret 4

Function at 0x4ada40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52b238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 0x20]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], ebp
mov edi, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edi, eax
je 0x4adab1
lea esi, [edi + 0x2c]
cmp esi, 0x2c
je 0x4adaa4
mov ecx, dword [esi]
cmp dword [ecx - 8], ebp
je 0x4adaa4
mov edx, dword [esp + 0x18]
push esi
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.004198b0
mov eax, dword [ebx + 8]
add edi, 0x64
add esi, 0x64
cmp edi, eax
jne 0x4ada87
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, 0x5718d0
call fcn.0046eb60
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp esi, edi
mov dword [esp + 0x28], 0xffffffff
je 0x4adaeb
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, edi
jne 0x4adad9
mov esi, dword [esp + 0x14]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x24]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x4ae420
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52b448
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4ae4bd
mov eax, dword [edi + 0x20]
push 0x568000
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4ae4bd
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [edi + 0x20]
push 0
push 0x208
push 0x208
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call fcn.00422db0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4ae4ac
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0x2c]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4

Function at 0x4af390
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52b6b8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
lea eax, [esp + 0x14]
lea ecx, [esi + 0xbc]
push eax
mov dword [esp + 0x10], 4
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0xc0]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x1c]
lea ecx, [esi + 0xc4]
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x20]
lea ecx, [esi + 0xc8]
push eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0xcc]
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esi + 0xb8], ecx
lea ecx, [esp + 0x14]
mov dword [esi + 0xb0], edx
mov dword [esi + 0xd4], eax
mov byte [esp + 0xc], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xc], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x24
Function at 0x4b2360
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
jne 0x4b2394
mov eax, dword [esp + 8]
test eax, eax
jne 0x4b2394
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x4b2db0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x318
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x328]
push 0x56f01c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 0x104
mov edi, 0x56221c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x220]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x12c]
push edx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x4b2ec0
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.004b2ed0
test eax, eax
je 0x4b2ec0
mov eax, dword [esp + 0x328]
lea edx, [esp + 0x32c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call fcn.004b28b0
test eax, eax
je 0x4b2ec0
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x318
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x318
ret 8
Function at 0x4b2f20
Capabilities:
Get session user name
Get user security identifier

Disassembly:
sub esp, 0x31c
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x32c]
push 0x56f01c
stosw word es:[edi], ax
push ebp
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 0x104
lea ecx, [esp + 0x120]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4b302f
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x228]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x130]
push eax
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x4b302f
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.004b2ed0
test eax, eax
je 0x4b302f
lea eax, [esp + 0x330]
lea ecx, [esp + 0x1c]
push eax
push ebp
push ecx
mov ecx, esi
call fcn.004b28b0
test eax, eax
je 0x4b302f
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x31c
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x31c
ret 8

Function at 0x4b3040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x218]
lea ecx, [esp + 0xc]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0xc]
mov dword [esp + 4], 0
push edx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b3119
mov ecx, 0x40
lea edi, [esp + 0x111]
mov byte [esp + 0x110], al
lea edx, [esp + 0x110]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
mov dword [esp + 8], 4
push ecx
push edx
stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x568704
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b310f
mov eax, dword [esp + 8]
test eax, eax
jbe 0x4b310f
cmp byte [esp + 0x110], 1
jne 0x4b310f
mov ecx, dword [esp + 4]
push ecx
call sym.SoftManager.exe__RegCloseKey360_4
mov eax, 1
pop edi
add esp, 0x210
ret 4
mov edx, dword [esp + 4]
push edx
call sym.SoftManager.exe__RegCloseKey360_4
xor eax, eax
pop edi
add esp, 0x210
ret 4
Function at 0x4b67b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52bcdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
push edi
mov esi, ecx
push eax
push 0x13d
mov dword [esp + 0x10], esi
call fcn.0048a430
lea ecx, [esi + 0x324]
mov dword [esp + 0x1c], 0
call fcn.004010c0
lea ecx, [esi + 0x3fc]
mov byte [esp + 0x1c], 1
call fcn.004010c0
lea ecx, [esi + 0x4d4]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x4d8]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x4dc]
mov byte [esp + 0x1c], 4
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x53b2bc
lea edi, [esi + 0x51c]
mov byte [esp + 0x1c], 5
mov ecx, edi
call sub.MFC42.DLL_CImageList::CImageList
push 0
push 0
push 0x21
push 0x29
push 0x29
mov ecx, edi
mov byte [esp + 0x30], 6
mov dword [esi], 0x53b1e0
call sub.MFC42.DLL_CImageList::Create
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x53bdb8
push 0x13f
push 2
push 0x13f
mov byte [esp + 0x28], 7
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 0x520]
lea eax, [esp + 0xc]
push 0xff00ff
neg eax
sbb eax, eax
and eax, edi
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], str.e_fL7
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 8
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x4b7090
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x572080]
test eax, eax
jne 0x4b714d
push esi
push edi
push 0x568968
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x56894c
push esi
call edi
push 0x568930
push esi
mov dword [0x572068], eax
call edi
push 0x56890c
push esi
mov dword [0x57206c], eax
call edi
push 0x5688e8
push esi
mov dword [0x572070], eax
call edi
push 0x5688c4
push esi
mov dword [0x572074], eax
call edi
push 0x5688b4
push esi
mov dword [0x572078], eax
call edi
mov ecx, dword [0x572068]
pop edi
test ecx, ecx
mov dword [0x57207c], eax
pop esi
je 0x4b7143
mov ecx, dword [0x57206c]
test ecx, ecx
je 0x4b7143
mov ecx, dword [0x572070]
test ecx, ecx
je 0x4b7143
mov ecx, dword [0x572074]
test ecx, ecx
je 0x4b7143
mov ecx, dword [0x572078]
test ecx, ecx
je 0x4b7143
test eax, eax
je 0x4b7143
mov eax, 1
mov dword [0x572080], eax
ret
mov eax, 2
mov dword [0x572080], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
ret
Function at 0x4c5bf0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x52d298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0xc], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
call fcn.004e47d0
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call dword [edx + 0x40]
call fcn.004d9c20
mov ecx, eax
call fcn.004da930
lea edx, [esp + 0xc]
push edx
call fcn.004d9c20
mov ecx, eax
call fcn.004da950
mov edi, dword [esp + 0x30]
lea eax, [esi + 0x14]
push eax
push edi
mov ecx, esi
call fcn.004c8240
call fcn.004d9c20
mov ecx, eax
call fcn.004da940
mov ecx, dword [edi + 0x20]
push 1
push ebx
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4c90c9
mov edx, dword [esp + 0x18]
lea ecx, [edx + eax - 1]
mov edx, dword [esp + 0x14]
mov eax, ecx
shr eax, 9
cmp edx, eax
ja 0x4c90a1
sub eax, edx
mov edx, dword [esp + 0x10]
and ecx, 0x1ff
mov eax, dword [edx + eax*4]
lea ecx, [eax + ecx*8]
call fcn.0040d4b0
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x4c90c5
mov dword [esp + 0x18], ebx
cmp eax, ebx
jne 0x4c908a
mov esi, dword [esp + 0x14]
cmp esi, ebx
jbe 0x4c90e6
mov ecx, dword [esp + 0x10]
dec esi
mov edx, dword [ecx + esi*4]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, ebx
ja 0x4c90d1
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x4c9140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52d2b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov al, byte [esp + 0x48]
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov byte [esp + 0x20], al
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0xc], esi
call fcn.004e47d0
lea ecx, [esp + 0x20]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, eax
call dword [edx + 0x34]
mov eax, dword [esp + 0x30]
cmp eax, esi
jbe 0x4c9259
push ebp
mov edx, dword [esp + 0x30]
lea edi, [esp + 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
lea eax, [edx + esi]
mov ecx, eax
shr ecx, 9
mov ebp, ecx
shl ebp, 9
sub eax, ebp
mov dword [esp + 0x54], eax
mov eax, dword [edi + 8]
cmp eax, ecx
ja 0x4c91e7
sub ecx, eax
mov dword [esp + 0x14], edx
add edx, esi
mov eax, edx
lea edi, [esp + 0x24]
shr eax, 9
mov ebp, eax
shl ebp, 9
sub edx, ebp
mov dword [esp + 0x14], edx
mov edx, dword [edi + 8]
cmp edx, eax
ja 0x4c920a
sub eax, edx
mov ebp, dword [esp + 0x58]
mov edx, dword [ebx]
push ebp
mov ebp, dword [esp + 0x24]
mov ebp, dword [ebp + 4]
mov ecx, dword [ebp + ecx*4]
mov ebp, dword [esp + 0x58]
lea ecx, [ecx + ebp*8]
push ecx
mov ecx, dword [edi + 4]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
jb 0x4c91bb
xor esi, esi
pop ebp
cmp eax, esi
je 0x4c929a
mov edx, dword [esp + 0x2c]
lea ecx, [edx + eax - 1]
mov edx, dword [esp + 0x28]
mov eax, ecx
shr eax, 9
cmp edx, eax
ja 0x4c9272
sub eax, edx
mov edx, dword [esp + 0x24]
and ecx, 0x1ff
mov eax, dword [edx + eax*4]
lea ecx, [eax + ecx*8]
call fcn.0040d4b0
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x4c9296
mov dword [esp + 0x2c], esi
cmp eax, esi
jne 0x4c925b
mov edi, dword [esp + 0x28]
cmp edi, esi
jbe 0x4c92b7
mov ecx, dword [esp + 0x24]
dec edi
mov edx, dword [ecx + edi*4]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp edi, esi
ja 0x4c92a2
mov eax, dword [esp + 0x24]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 0x14
Function at 0x4cbba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52d7c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.004cb6c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [esp + 0x30]
mov byte [esp + 0x24], 2
mov ecx, ebp
call fcn.0051aa20
mov esi, dword [eax]
test esi, esi
je 0x4cbc1d
mov eax, dword [esi + 4]
test eax, eax
jne 0x4cbc18
mov eax, dword [esi]
push eax
call fcn.004c7eee
test eax, eax
mov dword [esi + 4], eax
jne 0x4cbc18
cmp dword [esi], 0
je 0x4cbc18
push 0x8007000e
call fcn.004c7dcc
mov esi, dword [esi + 4]
jmp 0x4cbc1f
xor esi, esi
push esi
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push 0x56b334
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
push eax
call fcn.004cbb50
add esp, 0x20
test eax, eax
jne 0x4cbcb4
push 0x50
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x24], 3
je 0x4cbc75
mov ecx, eax
call fcn.004cd9d0
mov edi, eax
jmp 0x4cbc77
xor edi, edi
mov edx, dword [esi]
mov eax, dword [esi + 4]
sub esp, 0x10
mov byte [esp + 0x34], 2
mov ecx, esp
push edi
mov dword [ecx], edx
mov edx, dword [esi + 8]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004e47d0
mov ecx, eax
call fcn.004ce210
mov ecx, dword [esp + 0xc]
push edi
push ecx
call fcn.004cbb70
add esp, 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push edx
call fcn.004cb880
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004cb710
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.004cb760
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1c
ret
Function at 0x4cc870
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x52d89e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
lea eax, [esp + 0x10c]
push edi
push eax
push 0x104
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push 0
push 0x56b3b4
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
test esi, esi
mov dword [esp + 0x21c], 0
je 0x4cc913
lea eax, [esp + 0xc]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call fcn.004c7e79
test eax, eax
mov dword [esi], eax
jne 0x4cc915
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x4cc915
push 0x8007000e
call fcn.004c7dcc
jmp 0x4cc915
xor esi, esi
mov edi, dword [esp + 0x224]
mov dword [esp + 0x21c], 0xffffffff
test esi, esi
mov dword [edi], esi
jne 0x4cc937
push 0x8007000e
call fcn.004c7dcc
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x4cc950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52d8be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov ecx, dword [esp + 0x224]
push esi
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea edx, [esp + 0x118]
push 0
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
push 0
lea edx, [esp + 0x12c]
push 0
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__makepath]
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 0x2c
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x220], 0
je 0x4cca16
lea edx, [esp + 0x10]
mov dword [esi + 4], 0
push edx
mov dword [esi + 8], 1
call fcn.004c7e79
test eax, eax
mov dword [esi], eax
jne 0x4cca18
lea eax, [esp + 0x10]
test eax, eax
je 0x4cca18
push 0x8007000e
call fcn.004c7dcc
jmp 0x4cca18
xor esi, esi
mov edi, dword [esp + 0x228]
mov dword [esp + 0x220], 0xffffffff
test esi, esi
mov dword [edi], esi
jne 0x4cca3a
push 0x8007000e
call fcn.004c7dcc
mov ecx, dword [esp + 0x218]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret