joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100eca62
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x10]
mov dword [esp + 0x18], 0
cmp dword [edi + 0xc], esi
jbe 0x100019a4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
cmp ebx, dword [edi + 0x10]
jbe 0x100019b8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
push esi
push ecx
push ebx
push eax
lea edx, [esp + 0x34]
push edx
mov esi, edi
call fcn.100099e0
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Tokenize]
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x10001a3b
lea ebx, [esp + 0x14]
call fcn.10009200
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Tokenize]
push eax
mov ecx, ebx
mov byte [esp + 0x3c], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 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]
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
jne 0x100019f7
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 0xc]
lea ecx, [esp + 0x14]
sar esi, 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]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001b20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100e9eea
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov dword [esp + 8], 0
call dword [0x100f3984]
push 1
push 0x23
mov dword [esp + 0x1c], 0
push 0x104
mov ecx, esi
mov dword [esp + 0x14], 1
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push str.GlarysoftMalwareHunter
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10001baf
mov eax, dword [esi]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x10002f80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100eddd8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x10122d90]
mov edx, dword [eax + 0x14]
mov ecx, 0x10122d90
push 0xffffffffffffffff
mov dword [esp + 0x14], ecx
call edx
lea ecx, [ebp + 8]
mov dword [esp + 0x30], 0
mov eax, dword [0x10122d88]
mov ebx, dword [0x10122d70]
push ecx
lea edx, [esp + 0x20]
push edx
mov edi, 0x10122d70
mov dword [esp + 0x20], eax
call fcn.10008f90
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x10002ff7
cmp eax, ebx
je 0x10002ffd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
cmp dword [esi + 4], eax
je 0x100030b8
lea eax, [ebp + 8]
mov esi, 0x10122d70
call fcn.100d47f0
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x100]
add esi, 0x100
test ecx, ecx
je 0x1000303a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
mov edx, dword [esi]
test edx, edx
jne 0x10003030
mov eax, dword [esi]
test eax, eax
jne 0x10003086
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [0x10122d90]
mov eax, dword [edx + 0x1c]
mov ecx, 0x10122d90
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [0x10122d90]
mov eax, dword [edx + 0x1c]
mov ecx, 0x10122d90
call eax
mov eax, 0xfffffff7
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [0x10122d90]
mov eax, dword [edx + 0x1c]
mov ecx, 0x10122d90
call eax
mov eax, 0xfffffffa
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100076a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x100ef7e9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.100017e0
push eax
push ebx
mov edi, str.Log_
mov dword [esp + 0x20], 0
call fcn.10008ef0
add esp, 8
mov ecx, esi
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, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000770b
mov eax, dword [ebx]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x100079c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100ec870
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x1011f07c]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
call fcn.100076a0
push eax
lea eax, [esp + 0x18]
push eax
mov edi, 0x100f4ea0
mov dword [esp + 0x288], 0
call fcn.10008ef0
add esp, 8
mov ecx, ebx
mov byte [esp + 0x280], 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]
lea ebx, [esp + 0x10]
call fcn.10007620
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 3
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007b2d
mov ebx, dword [sym.imp.MSVCR90.dll__wcsicmp]
mov esi, dword [sym.imp.MSVCR90.dll_wcsrchr]
jmp 0x10007a80
test byte [esp + 0x24], 0x10
jne 0x10007b0e
lea eax, [esp + 0x50]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
jne 0x10007aa1
lea eax, [esp + 0x50]
jmp 0x10007aa6
add eax, 2
je 0x10007b0e
push 0x2e
push eax
call esi
add esp, 8
test eax, eax
je 0x10007b0e
push str..log
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10007b0e
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
je 0x10007b0e
lea eax, [esp + 0x50]
lea edx, [eax + 2]
jmp 0x10007ae0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007ae0
sub eax, edx
sar eax, 1
cmp eax, 0x11
jne 0x10007b0e
mov eax, 0x5f
cmp word [esp + 0x58], ax
jne 0x10007b0e
cmp word [esp + 0x5e], ax
jne 0x10007b0e
cmp word [esp + 0x64], ax
je 0x10007b74
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10007a80
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x18]
push 0
mov ecx, esi
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 ecx, [esp + 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, [esp + 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]
mov eax, esi
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.100e78b2
add esp, 0x274
ret
lea ebx, [esp + 0x20]
call fcn.100076a0
mov esi, dword [esp + 0x18]
push eax
push esi
lea edi, [esp + 0x58]
mov byte [esp + 0x288], 4
call fcn.10008ef0
add esp, 8
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x10007b37
Function at 0x100083e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100f2790
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], vtable.CFileData.0
call dword [0x100f3984]
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call dword [0x100f3984]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov dword [esp + 0x24], vtable.CScanData.0
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], vtable.CScanFileData.0
mov dword [esp + 0x40], ebx
call dword [0x100f3984]
lea ecx, [esp + 0x50]
call dword [0x100f3984]
mov byte [esp + 0x60], 1
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x1000849f
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0xc]
call edx
mov ecx, eax
call sub.mfc90u.dll_CRuntimeClass::CreateObject
mov dword [esp + 0x40], eax
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call edx
mov edx, dword [ebp + 0xc]
push 0x10122d40
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.1001bfc0
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x60], bl
call fcn.1001c170
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], vtable.CFileData.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]
lea ecx, [esp + 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]
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000b4b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov dword [esi + 0x124], eax
mov ecx, dword [esi + 0x124]
test ecx, ecx
je 0x100035aa
add esi, 0x158
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor eax, eax
pop esi
add esp, 8
ret
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 4]
sub eax, dword [esi + 0x158]
mov ecx, dword [esp + 8]
sbb ecx, dword [esi + 0x15c]
add dword [esi + 0x150], eax
adc dword [esi + 0x154], ecx
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x10003580
Function at 0x1000bb70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push esi
push edi
lea ecx, [esp + 8]
call dword [0x100f3984]
lea esi, [esp + 0x10]
call fcn.100017e0
push eax
lea eax, [esp + 0x10]
push eax
mov edi, str.CloudscanMHCloudSvc.exe
call fcn.10008ef0
add esp, 8
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0xc]
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 ecx, esi
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 ecx, dword [esp + 8]
push 0
push 0
push str._RegServer
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call sub.MHFilterDll.dll_Ordinal_1
lea ecx, [esp + 8]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x1000bbf0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push esi
push edi
lea ecx, [esp + 8]
call dword [0x100f3984]
lea esi, [esp + 0x10]
call fcn.100017e0
push eax
lea eax, [esp + 0x10]
push eax
mov edi, str.CloudscanMHCloudSvc.exe
call fcn.10008ef0
add esp, 8
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0xc]
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 ecx, esi
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 ecx, dword [esp + 8]
push 0
push 0
push str._UnregServer
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call sub.MHFilterDll.dll_Ordinal_2
lea ecx, [esp + 8]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x1000bea0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eb11d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x44]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call sub.mfc90u.dll_CFile::CFile
mov eax, dword [ebp + 8]
push ebx
push 0x20
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call sub.mfc90u.dll_CFile::Open
test eax, eax
je 0x1000c013
lea ecx, [ebp - 0x34]
call sub.mfc90u.dll_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
push ebx
push ebx
push ebx
push 0x8000002
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x1000bffb
lea ecx, [ebp - 0x44]
call sub.mfc90u.dll_CFile::GetLength
mov ecx, edx
xor edx, edx
mov edi, eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x1000bf4c
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
mov eax, dword [esi + 8]
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
jb 0x1000bfa6
ja 0x1000bf5c
cmp edi, eax
jb 0x1000bfa6
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [ebp - 0x28]
push edx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x1000bfea
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [esi]
push ecx
push edx
push edi
call eax
xor ebx, ebx
test eax, eax
push edi
sete bl
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 8]
xor ecx, ecx
sub dword [ebp - 0x24], eax
sbb dword [ebp - 0x20], ecx
add dword [ebp - 0x2c], eax
adc dword [ebp - 0x28], ecx
test ebx, ebx
je 0x1000bf46
jmp 0x1000bfea
test ebx, ebx
jne 0x1000bfea
mov ecx, edi
or ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], 1
je 0x1000bfea
mov eax, dword [ebp + 8]
push edi
push edx
mov edx, dword [ebp - 0x28]
push edx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1000bfe3
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edi
push ebx
call edx
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1000bfea
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], 0
lea ecx, [ebp - 0x44]
call sub.mfc90u.dll_CFile::Close
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
call sub.mfc90u.dll_AfxTryCleanup
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.100e6fb6
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000cc80
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x100eb092
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea esi, [esp + 0x10]
call fcn.100017e0
push eax
lea eax, [esp + 0x10]
push eax
mov edi, str._settings.dat
mov dword [esp + 0x24], 0
call fcn.10008ef0
add esp, 8
push eax
mov ecx, ebx
mov byte [esp + 0x20], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0xc]
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 ecx, esi
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, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x1000cd10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x100eba09
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 4]
test eax, eax
jne 0x1000cd5d
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_____::CStringT_wchar_t_class]
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret 8
lea ecx, [esp + 4]
call dword [0x100f3984]
mov dword [esp + 0x10], 0
mov eax, dword [edi]
push eax
push 0x400
push 0x400
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push 0x100f4f74
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [esp + 4]
push eax
mov ecx, esi
call dword [0x100f3988]
lea ecx, [esp + 4]
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
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret 8
Function at 0x1000dd70
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100e9d14
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CInOutFileStream.0
mov dword [esi + 4], vtable.CInOutFileStream.1.0
mov dword [esp + 0x18], 2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1000ddd3
mov eax, dword [ecx]
mov edx, dword [eax + 0x54]
call edx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1000ddcc
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], 0
lea edi, [esi + 0x10]
je 0x1000ddf9
mov ecx, dword [esi + 0x14]
neg ecx
push ecx
push 0x101226fc
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x1c]
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, [esi + 0x18]
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 ecx, edi
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 ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1000eb60
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x1011f07c]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, edx
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000eb80
sub eax, esi
sar eax, 1
jne 0x1000eba9
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100e78b2
add esp, 0x210
ret
push 0x104
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 8]
push ecx
mov ecx, edi
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100e78b2
add esp, 0x210
ret
Function at 0x1000f660
Capabilities:
Check if file exists
Create thread

Disassembly:
sub esp, 0x20
push edi
mov edi, eax
test edi, edi
je 0x1000f68c
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000f670
sub eax, edx
sar eax, 1
je 0x1000f68c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000f695
xor eax, eax
pop edi
add esp, 0x20
ret 4
push ebx
mov ebx, dword [esp + 0x2c]
cmp dword [ebx + 0x14], 0
push esi
lea esi, [ebx + 0x14]
je 0x1000f6af
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x20
ret 4
push edi
lea ecx, [ebx + 0xc]
mov dword [ebx + 0x10], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push 0
push 0
push ebx
push 0x1000f640
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x1000f73e
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x4ff
push 0xffffffffffffffff
push 0
push esi
push 1
call edi
test eax, eax
je 0x1000f72f
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
call ebp
push 0x4ff
push 0xffffffffffffffff
push 0
push esi
push 1
call edi
test eax, eax
jne 0x1000f702
mov ebx, dword [esp + 0x34]
pop ebp
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [ebx + 0x10]
pop esi
pop ebx
pop edi
add esp, 0x20
ret 4