joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002773
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10091365
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x10112038]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CDWordArray::CDWordArray
push 0x14
pop eax
xor ebx, ebx
push 2
mov dword [esp + 0xb4], ebx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCR90.dll_calloc]
pop ecx
pop ecx
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x100028ba
cmp dword [esp + 0x1c], 3
jne 0x100028ba
push ebx
push dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push edi
call sub.mfc90u.dll_CMemFile::CMemFile
push ebx
push 0x1000
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xc0], 1
call sub.mfc90u.dll_CArchive::CArchive
push 0xffffffffffffffff
mov byte [esp + 0xb4], 2
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], ebx
call sub.mfc90u.dll_CDWordArray::SetSize
push 0xffffffffffffffff
push 5
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CDWordArray::SetSize
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CDWordArray::Serialize
lea ecx, [esp + 0x5c]
call sub.mfc90u.dll_CArchive::Close
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CMemFile::Close
cmp dword [esp + 0x28], ebx
jg 0x10002879
call fcn.1008dc84
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ecx]
mov dword [edx], eax
cmp dword [esp + 0x28], 1
jle 0x10002874
mov eax, dword [esp + 0x24]
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb0], 1
call fcn.1008dca8
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], bl
call fcn.1008dc9c
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 2
mov dword [esi + 0x18], 8
cmp edi, ebx
je 0x100028db
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
or dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.1008dccc
xor eax, eax
cmp dword [esp + 0x18], ebx
jne 0x100028f5
inc eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10003c8f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10112038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xa
lea eax, [ebp - 0x18]
push eax
push 9
push 0x400
mov esi, 0x409
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x10003ccf
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call dword [sym.imp.MSVCR90.dll_wcstoul]
add esp, 0xc
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008e7ae
leave
ret
Function at 0x10004420
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x100978ba
call fcn.1008f84a
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call sym.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STGetTrialPayURLFromSetupScript_void_
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.TRIALPAY
call dword [0x100b6094]
lea eax, [ebp - 0x10]
push eax
call sym.ASOHelper.dll_bool___cdecl_STGetPublishedURL_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
pop ecx
pop ecx
push 3
mov eax, 0x100be7bc
push eax
push eax
push dword [ebp - 0x10]
push 0x100b7f34
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.1008f922
ret
Function at 0x1000456b
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x100978ba
call fcn.1008f84a
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call sym.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STGetWebsiteURLFromSetupScript_void_
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.WEBSITE
call dword [0x100b6094]
lea eax, [ebp - 0x10]
push eax
call sym.ASOHelper.dll_bool___cdecl_STGetPublishedURL_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
pop ecx
pop ecx
push 3
mov eax, 0x100be7bc
push eax
push eax
push dword [ebp - 0x10]
push 0x100b7f34
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.1008f922
ret
Function at 0x100048b0
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x100978ba
call fcn.1008f84a
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call sym.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STGetHELP_EMAIL_URLFromSetupScript_void_
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 3
mov eax, 0x100be7bc
push eax
push eax
push dword [ebp - 0x10]
push 0x100b7f34
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.1008f922
ret
Function at 0x1000776b
Capabilities:
Create process on windows

Disassembly:
push 0x10
mov eax, 0x100a1808
call fcn.1008f84a
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 1
push eax
call sym.ASOHelper.dll_public:_static_enum_ASO_TRIAL_VERSION_STATUS___cdecl_CSystweakApp::GetASOStatus_unsigned_long_int___bool_
pop ecx
pop ecx
cmp eax, 0x278d7
jne 0x1000779d
call sym.ASOHelper.dll_void___cdecl_STRenewAdvancedSystemOptimizer_void_
jmp 0x10007859
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [ebp - 4], 1
call dword [sym.imp.aso3sys.dll_Ordinal_8]
test al, al
je 0x100077bc
lea edi, [ebp - 0x10]
call fcn.1004e10f
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x10007832
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call sym.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STGetBuyNowURLFromSetupScript_void_
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
pop ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call dword [0x100b6030]
lea eax, [ebp - 0x10]
push eax
call sym.ASOHelper.dll_bool___cdecl_STGetPublishedURL_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 3
mov eax, 0x100be7bc
push eax
push eax
push dword [ebp - 0x10]
push 0x100b7f34
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.1008f922
ret
Function at 0x10007868
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x100a17c9
call fcn.1008f84a
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call sym.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STGetReNewURLFromSetupScript_void_
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
pop ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x100b8034
call dword [0x100b6094]
lea eax, [ebp - 0x10]
push eax
call sym.ASOHelper.dll_bool___cdecl_STGetPublishedURL_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
pop ecx
pop ecx
push 3
mov eax, 0x100be7bc
push eax
push eax
push dword [ebp - 0x10]
push 0x100b7f34
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.1008f922
ret
Function at 0x1000878e
Capabilities:
Get common file path

Disassembly:
push 0x41c
mov eax, 0x100902de
call fcn.1008f8b3
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], esi
push esi
push eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], esi
call sub.MSVCR90.dll_memset
xor eax, eax
lea edi, [ebp - 0x420]
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
push esi
push esi
push esi
push esi
push esi
push 3
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR90.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x420]
push eax
mov ecx, ebx
call dword [0x100b6094]
mov dword [ebp - 4], esi
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
push 0x5c
mov ecx, ebx
mov dword [ebp - 0x424], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp eax, esi
je 0x1000883e
push 0x100b805c
mov ecx, ebx
call dword [0x100b5fbc]
mov eax, ebx
call fcn.1008f936
ret
Function at 0x1000a36c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10112038]
xor eax, ebp
mov dword [ebp + 0x398], eax
push esi
mov esi, dword [ebp + 0x3a8]
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x78], ax
xor edi, edi
lea eax, [ebp - 0x76]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a4]
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1000a3d8
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_4]
inc edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x398]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1008e7ae
add ebp, 0x39c
leave
ret

Function at 0x1000a602
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x234
mov eax, 0x100901de
call fcn.1008f8e9
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x1000a625
push 0xfffffffffffffffc
pop eax
jmp 0x1000a684
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000a636
xor eax, eax
inc eax
jmp 0x1000a684
mov byte [ebp - 4], 1
mov edi, dword [edi]
lea eax, [ebp - 0x240]
push eax
push edi
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
call sub.mfc90u.dll_CFile::GetStatus
cmp eax, esi
jne 0x1000a631
xor eax, eax
jmp 0x1000a684
call fcn.1008f945
ret

Function at 0x1000a68a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1000a694
sub eax, ecx
sar eax, 1
jne 0x1000a6a8
xor eax, eax
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000a6ba
or eax, eax
leave
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
leave
ret
Function at 0x1000ad71
Capabilities:
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x7d0]
sub esp, 0x850
mov eax, dword [0x10112038]
xor eax, ebp
mov dword [ebp + 0x7cc], eax
mov eax, dword [ebp + 0x7d8]
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x7dc]
push esi
push edi
mov dword [ebp - 0x60], eax
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov esi, 0x410
push esi
push eax
mov word [ebp + 0x3b8], ax
lea eax, [ebp + 0x3ba]
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
lea ecx, [ebp + 0x3b8]
add esp, 0x18
mov edx, eax
sub ecx, eax
movzx esi, word [edx]
mov word [ecx + edx], si
inc edx
inc edx
test si, si
jne 0x1000aded
mov ecx, dword [eax - 0xc]
xor edx, edx
mov word [ebp + ecx*2 + 0x3ba], dx
mov edx, dword [ebx]
lea edi, [ebp - 0x5c]
mov ecx, edx
sub edi, edx
movzx esi, word [ecx]
mov word [edi + ecx], si
inc ecx
inc ecx
test si, si
jne 0x1000ae11
mov ecx, dword [edx - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, 0xa0
push edi
xor edx, edx
push eax
mov word [ebp + ecx*2 - 0x5a], dx
call esi
push edi
push dword [ebx]
call esi
lea eax, [ebp + 0x3b8]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov eax, 0x4614
mov word [ebp - 0x70], ax
xor esi, esi
lea eax, [ebp - 0x80]
inc esi
push eax
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x1000ae6d
mov eax, esi
jmp 0x1000ae74
call fcn.1000a09a
xor eax, eax
mov ecx, dword [ebp + 0x7cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008e7ae
add ebp, 0x7d0
leave
ret
Function at 0x1000ae8c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0x220
push 0x100d8e78
call fcn.1008faa8
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x22c], 0
mov byte [ebp - 0x225], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov dword [ebp - 0x230], ebx
or eax, 0xffffffff
cmp ebx, eax
je 0x1000afa5
cmp ebx, 0x10
je 0x1000afa5
push ebx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call edi
test eax, eax
je 0x1000afb5
test bl, 1
je 0x1000af01
push 0x80
push esi
call edi
test eax, eax
je 0x1000afb5
mov byte [ebp - 0x225], 1
mov byte [ebp - 0x224], 0
push 0x207
push 0
lea eax, [ebp - 0x223]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1000af23
sub eax, ecx
sar eax, 1
push eax
push esi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR90.dll_wcstombs]
add esp, 0xc
push 0x12
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000af67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x22c], eax
jmp 0x1000af6e
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
cmp byte [ebp - 0x225], 0
je 0x1000af80
push dword [ebp - 0x230]
push esi
call edi
cmp ebx, 0xffffffff
je 0x1000af99
cmp dword [ebp - 0x22c], 0x20
je 0x1000af99
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1000afbf
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x1000afbf
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000afbf
mov dword [ebp - 4], 0xfffffffe
or eax, 0xffffffff
call fcn.1008faf0
ret
Function at 0x1000afc5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x234
mov eax, 0x10093faa
call fcn.1008f8e9
xor esi, esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov eax, dword [eax - 0xc]
cmp eax, esi
je 0x1000b092
cmp eax, 3
jl 0x1000b092
dec eax
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
movzx eax, ax
push 0x5c
pop ecx
cmp cx, ax
jne 0x1000b03d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000b071
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
call sub.mfc90u.dll_CFile::GetStatus
cmp eax, esi
je 0x1000b071
test byte [ebp - 0x220], 0x10
je 0x1000b071
test bl, 0x10
je 0x1000b071
xor esi, esi
inc esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
jmp 0x1000b09d
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
call fcn.1008f945
ret

Function at 0x1000b198
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10112038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp edi, 0x104
jbe 0x1000b1be
xor eax, eax
jmp 0x1000b212
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x210]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x1000b1df
and dword [esi + 0xc], 0
xor eax, eax
mov word [ebp + edi*2 - 0x20e], ax
lea eax, [ebp - 0x210]
push esi
mov dword [esi + 4], 3
mov dword [esi + 8], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1008e7ae
leave
ret 8