joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419d00
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3d1a
push eax
mov al, byte [esp + 0x10]
mov dword fs:[0], esp
sub esp, 8
test al, al
je 0x419d90
mov eax, dword [0x52fef0]
test eax, eax
jne 0x419eaf
push 0xa8
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x419d55
push 0
mov ecx, eax
call fcn.0043ed30
jmp 0x419d57
xor eax, eax
push 0
push 0x90
mov ecx, eax
mov dword [esp + 0x18], 0xffffffff
mov dword [0x52fef0], eax
call sub.MFC42u.DLL_CDialog::Create
mov ecx, dword [0x52fef0]
push 5
call sub.MFC42u.DLL_CWnd::ShowWindow
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov ecx, dword [0x52fef0]
test ecx, ecx
je 0x419dab
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [0x52fef0], 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4e28c0
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov dword [esp + 0x18], 1
mov ecx, esp
mov dword [esp + 8], esp
push 0x4d15f8
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov byte [esp + 0x1c], 2
mov ecx, esp
mov dword [esp + 0x10], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerTHCLockSeting
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x1c], 0xffffffff
call fcn.00423e30
add esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4e28c0
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov dword [esp + 0x18], 3
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x4d15f0
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov byte [esp + 0x1c], 4
mov ecx, esp
mov dword [esp + 0xc], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerTHCLockSeting
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x1c], 0xffffffff
call fcn.00423e30
add esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4cf474
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov dword [esp + 0x18], 5
mov ecx, esp
mov dword [esp + 0xc], esp
push str.lock_flag
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov byte [esp + 0x1c], 6
mov ecx, esp
mov dword [esp + 0xc], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerTHCLockSeting
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x1c], 0xffffffff
call fcn.00423e30
add esp, 0xc
push 5
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x41ca50
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x41cab2
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41cad0
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov al, byte [esp + 0x18]
push 0
test al, al
jne 0x41cac8
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x423850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x424
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, dword [esp + 0x43c]
push edi
mov dword [esp + 0x1c], ebx
cmp ebx, 1
mov eax, 0x101
jne 0x423873
mov eax, ebx
mov edx, dword [esp + 0x43c]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
mov eax, dword [esp + 0x440]
push ebp
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423a49
mov ecx, 0x81
lea edi, [esp + 0x26]
mov word [esp + 0x24], bp
push ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ebp
stosw word es:[edi], ax
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ebp
lea eax, [esp + 0x34]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x423a3e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22e]
mov word [esp + 0x22c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x14]
lea eax, [esp + 0x22c]
push edx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423a0d
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
jle 0x42397f
lea ecx, [edi + 1]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00401460
mov edx, dword [eax]
lea ecx, [esp + 0x22c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x20]
mov ebx, eax
call sub.MFC42u.DLL_CString::CString
test ebx, ebx
je 0x423a0d
mov eax, dword [esi + 8]
add edi, 7
cmp edi, eax
jl 0x42393e
mov ecx, dword [esi + 8]
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esi + 8]
lea edx, [esp + 0x22c]
push edx
push eax
mov ecx, esi
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
cmp dword [esp + 0x438], 0x80000002
jne 0x4239ba
mov ecx, dword [esi + 8]
push str.HKEY_LOCAL_MACHINE
push ecx
jmp 0x4239c3
mov edx, dword [esi + 8]
push 0x4d3234
push edx
mov ecx, esi
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esp + 0x43c]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
mov edx, dword [esi + 8]
push 0x4d2ba0
push edx
mov ecx, esi
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esi + 8]
push 0x4d2ba0
push eax
mov ecx, esi
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
mov ecx, dword [esi + 8]
push 0x4d2ba0
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
push 0
lea edx, [esp + 0x1c]
push 0
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x34]
inc ebp
push eax
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x4238e5
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, 2
mov dword [esp + 0x1c], ebx
jl 0x423867
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x423a70
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4b4c8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
xor esi, esi
lea ecx, [esp + 4]
mov dword [esp + 0x10], esi
mov word [esp + 0xa], si
mov word [esp + 8], 1
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 1
call fcn.004b0208
lea eax, [esp + 0x14]
mov byte [esp + 0x30], 2
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call fcn.00423850
lea ecx, [esp + 0x20]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.WS2_32.dll_bind
call fcn.00423850
lea edx, [esp + 0x2c]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push reloc.WS2_32.dll_bind
call fcn.00423850
lea eax, [esp + 0x38]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call fcn.00423850
lea ecx, [esp + 0x44]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.WS2_32.dll_accept
call fcn.00423850
lea edx, [esp + 0x50]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerRun
push reloc.WS2_32.dll_accept
call fcn.00423850
add esp, 0x48
lea eax, [esp + 0x14]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorerRun
push reloc.WS2_32.dll_accept
call fcn.00423850
lea ecx, [esp + 0x20]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push reloc.WS2_32.dll_accept
call fcn.00423850
mov eax, dword [esp + 0x34]
add esp, 0x18
cmp eax, esi
jle 0x423bab
lea edx, [esp + 0xc]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.00401460
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x34], 3
call fcn.004b0394
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x423b68
mov esi, dword [esp + 0x38]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esp + 4]
mov byte [esp + 0x30], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x423c00
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4b4ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x230]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [esp + 0x220], 0
mov dword [esp + 0x10], 2
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x228]
lea eax, [esp + 0x14]
push eax
push 0x20119
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423cc4
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x1fe
push eax
push esi
push ecx
call ebp
push 0
lea edx, [esp + 0x1c]
push 0
push edx
mov edi, eax
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CStringArray::SetAtGrow_1
inc esi
cmp edi, 0x103
jne 0x423c67
mov edx, dword [esp + 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x423c3f
lea ecx, [esp + 0x22c]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x214
ret

Function at 0x423d10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov ecx, dword [esp + 0x410]
lea eax, [esp]
push edi
push eax
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dx, word [0x9b0220]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], dx
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x41c]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
pop edi
add esp, 0x40c
ret

Function at 0x423da0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov ecx, dword [esp + 0x414]
mov edx, dword [esp + 0x410]
lea eax, [esp]
push edi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x420]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
pop edi
add esp, 0x40c
ret
Function at 0x423e30
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b4cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
push reloc.WS2_32.dll_accept
mov dword [esp + 0x20], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edx, dword [esp + 0x24]
push edx
call fcn.00428a70
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call fcn.00428c40
mov edx, dword [esp + 0xc]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x423ef0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b4d08
push eax
mov dword fs:[0], esp
push esi
push edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 2
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [esp + 0x24]
push eax
call fcn.00428a70
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 4
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x24]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call fcn.00428c40
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x10], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x423fb0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
ret
Function at 0x4250b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b4e9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], eax
mov ecx, 0x1ff
lea edi, [esp + 0x16]
mov word [esp + 0x14], ax
mov dword [esp + 0x81c], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x82c]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00428ae0
mov esi, dword [eax]
mov edx, dword [esp + 0x830]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x82c], 2
call fcn.00428ae0
mov ecx, dword [esp + 0x840]
mov eax, dword [eax]
add esp, 0x10
lea edx, [esp + 0x14]
push ecx
push 0x400
push edx
push esi
push eax
push str.HEADER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x81c], 1
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x824]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x830]
mov byte [esp + 0x81c], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x814]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x818
ret

Function at 0x425250
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x854
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x864]
test al, al
je 0x42527f
mov dword [esp + 0x40], 1
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x85c]
push 0x3fc
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x58]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x425306
mov al, byte [esp + 0x85c]
test al, al
je 0x4252f0
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
pop esi
lea ecx, [esp + 0x858]
call sub.MFC42u.DLL_CString::CString
add esp, 0x854
ret
Function at 0x4255a0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
push ecx
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4cf610
call sub.MFC42u.DLL_CString::CString_2
lea eax, [ebp - 0x10]
push eax
call fcn.004275b0
add esp, 8
lea ecx, [ebp + 8]
lea edx, [ebp - 0x10]
push ecx
lea eax, [ebp - 0x14]
mov bl, 2
push edx
push eax
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
mov al, byte [ebp + 0x10]
test al, al
je 0x425620
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
test eax, eax
mov edi, eax
je 0x42564a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.004b0be0
mov eax, esp
push esi
push edi
push eax
call sub.MFC42u.DLL_AfxW2AHelper
push 0x4d0e50
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x425691
mov edx, dword [ebp + 0xc]
push edx
call fcn.00428bd0
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call fcn.00428c40
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x1c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425f50
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b5176
push eax
mov dword fs:[0], esp
sub esp, 0x664
push esi
mov esi, dword [esp + 0x678]
push 0
push esi
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
je 0x425f9b
xor eax, eax
pop esi
mov ecx, dword [esp + 0x664]
mov dword fs:[0], ecx
add esp, 0x670
ret
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CFileFind::CFileFind
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
push esi
lea eax, [esp + 0x350]
push str._s.
push eax
mov dword [esp + 0x680], 0
call edi
add esp, 0xc
lea ecx, [esp + 0x34c]
push 0
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CFileFind::FindFile
test eax, eax
je 0x4260a7
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_wcscpy]
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], eax
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
jne 0x42609a
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42u.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x67c], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x34]
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x678], 0
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x40]
test eax, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0x4d0098
je 0x42607f
lea ecx, [esp + 0x1cc]
push ecx
call edi
lea edx, [esp + 0x1d0]
push edx
call fcn.00425f50
add esp, 0x14
jmp 0x42609a
lea ecx, [esp + 0x4ec]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x4e0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x425feb
pop ebp
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CFileFind::Close
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
mov dword [esp + 0x670], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x4260e8
call fcn.004b0508
xor eax, eax
pop esi
mov ecx, dword [esp + 0x664]
mov dword fs:[0], ecx
add esp, 0x670
ret
call fcn.004b0508
mov ecx, dword [esp + 0x668]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x670
ret
Function at 0x4264d0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b51e8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [edi]
add esp, 4
mov ax, word [ecx + eax*2 - 2]
cmp ax, 0x5c
je 0x426511
push 0x4cf2c0
mov ecx, edi
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [edi]
mov ebx, dword [sym.imp.MSVCRT.dll__waccess]
push 0
push eax
call ebx
add esp, 8
test eax, eax
je 0x42659f
xor esi, esi
inc esi
mov ecx, edi
push esi
push 0x5c
call sub.MFC42u.DLL_CString::Find_3
mov esi, eax
cmp esi, 0xffffffff
je 0x42659f
lea edx, [esp + 0x1c]
push esi
push edx
mov ecx, edi
call sub.MFC42u.DLL_CString::Left
mov eax, dword [esp + 0x1c]
push 0
push eax
call ebx
add esp, 8
test eax, eax
je 0x426567
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42657a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
jmp 0x426527
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret