joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4235a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535a98
push 0x4c7a62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x4235d8
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
jbe 0x423662
cmp dword [ebp - 0x28], 0x1000
jne 0x42361f
mov eax, dword [ebp - 0x24]
test ah, 1
jne 0x42361f
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
cmp word [esi], 0x5a4d
je 0x42362a
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
lea esi, [edx + ecx]
jmp 0x4235ed
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x40], eax
cmp dword [eax], 0x4550
mov dword [ebp - 4], ebx
jne 0x42361f
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423990
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 4]
push ecx
push edx
push str.speedld
push str.Software360softmgr_softmgrs
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x20], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4239e8
cmp dword [esp], 4
jne 0x4239e8
mov eax, dword [esp + 4]
test eax, eax
jne 0x4239e8
xor eax, eax
add esp, 0xc
ret
mov eax, 1
add esp, 0xc
ret
Function at 0x423c4c
Capabilities:
Read .ini file

Disassembly:
mov ecx, 0x56fbd0
jmp 0x423c30
push 0xffffffffffffffff
push 0x51f144
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 4]
mov dword [esp + 0x120], 0
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
mov byte [esp + 0x12c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push str...download
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_3
lea eax, [esp + 0xc]
push eax
call fcn.00423db0
add esp, 4
push eax
mov ecx, ebp
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x423cf9
push esi
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0xc]
push edx
call fcn.00423be0
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 4
push eax
push 1
push str.DownloadInstall
push str.Options
call edi
lea ecx, [esp + 0xc]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
lea ecx, [esp + 0xc]
test ebp, ebp
setne al
push ecx
mov dword [esi + 8], eax
call fcn.00423be0
mov eax, dword [eax]
add esp, 4
push eax
push 1
push str.TipBeforeDownload
push str.Options
call edi
lea ecx, [esp + 0xc]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
xor edx, edx
lea eax, [esp + 0xc]
test ebp, ebp
setne dl
push eax
mov dword [esi + 0xc], edx
call fcn.00423be0
mov eax, dword [eax]
add esp, 4
push eax
push 1
push str.DelOldFilePerWeek
push str.Options
call edi
lea ecx, [esp + 0xc]
mov edi, eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov dword [esi + 0x10], edi
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x423de0
Capabilities:
Access peb ldr_data
Get ntdll base address
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x51f177
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
lea ecx, [esp + 4]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 8]
mov dword [esp + 0x18], 1
push eax
call fcn.00423be0
add esp, 4
mov eax, dword [eax]
lea ecx, [esp + 4]
push eax
push 0x3e8
push 0x3e8
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x20]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004c73e6
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x4242b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
jne 0x4242c1
pop esi
pop ebp
xor al, al
pop ebx
ret
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4242cf
pop esi
pop ebp
xor al, al
pop ebx
ret
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x4242dd
pop esi
pop ebp
xor al, al
pop ebx
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4242ef
pop esi
pop ebp
xor al, al
pop ebx
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x40
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x424316
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
xor al, al
pop ebx
ret
mov ecx, ebx
push edi
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
push ecx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
pop edi
jne 0x424354
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
xor al, al
pop ebx
ret
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x428a70
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push esi
push eax
push 0
push ecx
push 0x4250c0
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x56fbf4]
mov dword [esp + 4], eax
mov eax, dword [0x56fbf0]
sub ecx, eax
mov esi, eax
sar ecx, 2
cmp ecx, 1
jae 0x428bb4
mov edx, dword [0x56fbec]
test edx, edx
je 0x428ad1
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
jbe 0x428ad1
mov ecx, eax
sub ecx, edx
sar ecx, 2
jmp 0x428ad6
mov ecx, 1
test edx, edx
jne 0x428ade
xor eax, eax
jmp 0x428ae3
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0xc], eax
jge 0x428aef
xor eax, eax
push ebx
push ebp
lea edx, [eax*4]
push edi
push edx
call sub.MFC42.DLL_operatornew
mov ebx, dword [0x56fbec]
add esp, 4
mov ebp, eax
cmp ebx, esi
mov edi, ebp
je 0x428b24
push ebx
push edi
call fcn.00414950
add ebx, 4
add esp, 8
add edi, 4
cmp ebx, esi
jne 0x428b10
lea eax, [esp + 0x10]
mov ecx, 0x56fbe8
push eax
push 1
push edi
call fcn.00419b30
mov ecx, dword [0x56fbf0]
add edi, 4
push edi
push ecx
push esi
mov ecx, 0x56fbe8
call fcn.00480680
mov edx, dword [0x56fbf0]
mov eax, dword [0x56fbec]
push edx
push eax
mov ecx, 0x56fbe8
call fcn.0040d6e0
mov ecx, dword [0x56fbec]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x56fbec]
add esp, 4
lea eax, [ebp + edx*4]
test ecx, ecx
mov dword [0x56fbf4], eax
jne 0x428b8d
xor eax, eax
jmp 0x428b97
mov eax, dword [0x56fbf0]
sub eax, ecx
sar eax, 2
lea ecx, [ebp + eax*4 + 4]
mov dword [0x56fbec], ebp
pop edi
pop ebp
pop ebx
mov dword [0x56fbf0], ecx
mov eax, 1
pop esi
add esp, 0xc
ret
mov edx, eax
sub edx, esi
sar edx, 2
cmp edx, 1
jae 0x428c0f
lea ecx, [esi + 4]
push ecx
push eax
push esi
mov ecx, 0x56fbe8
call fcn.00480680
mov eax, dword [0x56fbf0]
lea edx, [esp + 4]
mov ecx, eax
push edx
sub ecx, esi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, 0x56fbe8
push edx
push eax
call fcn.00419b30
mov ecx, dword [0x56fbf0]
mov eax, esi
cmp esi, ecx
je 0x428c52
mov edx, dword [esp + 4]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x428c00
jmp 0x428c52
push eax
push eax
add eax, 0xfffffffc
mov ecx, 0x56fbe8
push eax
call fcn.00480680
mov eax, dword [0x56fbf0]
mov ecx, eax
add eax, 0xfffffffc
cmp esi, eax
je 0x428c3c
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x428c2d
lea ecx, [esi + 4]
mov eax, esi
cmp esi, ecx
je 0x428c52
mov edx, dword [esp + 4]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x428c45
mov eax, dword [0x56fbf0]
pop esi
add eax, 4
mov dword [0x56fbf0], eax
mov eax, 1
add esp, 0xc
ret
Function at 0x42d050
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x520206
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x536468
mov eax, dword [esi + 0x4c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x24], 6
je 0x42d09d
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esi + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x4c], ebx
mov ecx, esi
call fcn.0042ebb0
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0xc], eax
je 0x42d101
mov edi, dword [eax + 0x10]
cmp edi, ebx
je 0x42d0ed
mov eax, dword [edi + 0x390]
cmp eax, ebx
je 0x42d0e4
push eax
mov ecx, 0x570650
call fcn.004443c0
mov ecx, dword [edi + 0x390]
push ecx
mov ecx, 0x570650
call fcn.00444430
mov dword [edi + 0x390], ebx
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
call fcn.00486430
mov ecx, dword [esi + 0x7c]
mov eax, dword [esp + 0xc]
cmp eax, ecx
jne 0x42d0b1
mov eax, dword [esi + 0x7c]
lea edi, [esi + 0x78]
push eax
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push ecx
push edx
mov ecx, edi
call fcn.004318e0
mov ecx, esi
call fcn.0042ebc0
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0xac]
mov byte [esp + 0x24], 5
call fcn.004c7470
mov eax, dword [esi + 0xa0]
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov eax, dword [esi + 0x90]
push eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov eax, dword [edi + 4]
add esp, 8
mov byte [esp + 0x24], 2
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004318e0
mov eax, dword [edi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [edi + 8]
mov dword [edi + 4], ebx
push eax
mov dword [edi + 0x10], ebx
call sub.MFC42.DLL_operatordelete
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x6c]
push eax
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_operatordelete
add esp, 0xc
lea ecx, [esi + 8]
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov byte [esp + 0x24], bl
call fcn.00430750
lea ecx, [esi + 4]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x42dd80
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x520318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42debf
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0xc]
mov byte [esp + 0x18], 3
push edx
call fcn.00423be0
add esp, 4
mov eax, dword [eax]
mov esi, dword [esp + 8]
push eax
push 0x3e8
push 0x3e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x56f01c
push esi
push str.download
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 4]
pop esi
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42dea3
mov ecx, dword [esp + 0x20]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x42dea3
lea ecx, [esp]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
lea ecx, [esp]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x42e5b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x520368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, dword [esp + 0x30]
xor edi, edi
push ebp
mov dword [esp + 0x2c], edi
call fcn.0042ec10
mov esi, eax
cmp esi, edi
jne 0x42e636
push 0xea0
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, edi
je 0x42e60f
mov ecx, 0xe4
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x3a8
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
jmp 0x42e611
xor esi, esi
cmp esi, edi
je 0x42e636
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [ebx + 0x78]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edi
call fcn.00431990
mov edx, dword [esp + 0x18]
mov dword [edx + 0x10], esi
cmp dword [0x562c78], edi
je 0x42e662
mov eax, dword [0x56fbe0]
mov ecx, dword [0x56fbdc]
mov edx, dword [0x56fbd8]
push eax
push ecx
push edx
mov ecx, 0x571bb0
call fcn.004a9c20
mov dword [0x562c78], edi
cmp esi, edi
je 0x42e6d1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi], ebp
mov dword [esi + 0x110], eax
mov dword [esi + 0x38c], ecx
mov edx, dword [esp + 0x34]
mov edi, 0x104
lea eax, [esi + 4]
mov cl, byte [edx]
test cl, cl
je 0x42e697
mov byte [eax], cl
inc eax
inc edx
dec edi
jne 0x42e688
jmp 0x42e69b
test edi, edi
jne 0x42e69c
dec eax
push 1
push esi
mov ecx, ebx
mov byte [eax], 0
call fcn.0042e700
mov edx, dword [esi]
mov ecx, ebx
push edx
push esi
push 0x12e2
call fcn.0042f110
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x42e6e4
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x430390
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x520558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push str._s._hd
push ecx
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0xc]
push edx
push str._s._qd
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea edx, [esp + 4]
push ecx
push str._s.p2s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 8]
push eax
push str._s.p2p
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0xc
push edx
call esi
test eax, eax
jne 0x4304e3
mov eax, dword [esp + 0x10]
push eax
call esi
test eax, eax
jne 0x4304e3
mov ecx, dword [esp + 0xc]
push ecx
call esi
test eax, eax
jne 0x4304e3
mov edx, dword [esp + 4]
push edx
call esi
test eax, eax
jne 0x4304e3
mov eax, dword [esp + 8]
push eax
call esi
test eax, eax
jne 0x4304e3
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x430550
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x520598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
mov dword [esp + 0x28], 0
call esi
mov ecx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ecx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4305a2
mov edx, dword [esp + 0x2c]
push 4
push 0
push edx
call edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
push str._s._hd
push ecx
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0x14]
push edx
push str._s._qd
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0xc]
push ecx
push str._s.p2s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
add esp, 0xc
lea ecx, [esp + 0x10]
push eax
push str._s.p2p
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call ebp
test eax, eax
je 0x430668
mov ecx, dword [esp + 0x18]
push 4
push 0
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call ebp
test eax, eax
je 0x43067e
mov eax, dword [esp + 0x14]
push 4
push 0
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call ebp
test eax, eax
je 0x430694
mov edx, dword [esp + 0xc]
push 4
push 0
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x4306aa
mov ecx, dword [esp + 0x10]
push 4
push 0
push ecx
call edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x431170
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x520628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x14], 0
call fcn.004d2230
mov eax, dword [eax + 0x104]
test eax, eax
je 0x431288
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x431288
mov eax, dword [ecx]
lea edx, [esp + 8]
push edx
push str.icon_dloading.ico
call dword [eax + 0x24]
test eax, eax
je 0x431288
mov eax, dword [esp + 8]
test eax, eax
je 0x4311db
mov eax, dword [eax]
jmp 0x4311dd
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x431288
mov eax, dword [esp + 8]
test eax, eax
je 0x4311f8
mov esi, dword [eax]
jmp 0x4311fa
xor esi, esi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x10
push 0x20
push 0x20
mov eax, dword [eax + 0x6c]
push 1
push esi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
je 0x431288
mov ecx, dword [ebx + 0xb0]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov esi, dword [esp + 8]
test esi, esi
je 0x431272
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x431272
test esi, esi
je 0x431272
mov eax, dword [esi]
test eax, eax
je 0x431259
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x431269
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov esi, dword [esp + 8]
test esi, esi
je 0x4312c8
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4312c8
test esi, esi
je 0x4312c8
mov eax, dword [esi]
test eax, eax
je 0x4312af
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4312bf
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xc]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret