joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406140
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x412fdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x4152bc
lea ecx, [esi + 0x114]
mov dword [esp + 0x10], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x100]
mov byte [esp + 0x10], 0x19
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xfc]
mov byte [esp + 0x10], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xf8]
mov byte [esp + 0x10], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xf4]
mov byte [esp + 0x10], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xf0]
mov byte [esp + 0x10], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xec]
mov byte [esp + 0x10], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xe8]
mov byte [esp + 0x10], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xd4]
mov byte [esp + 0x10], 0x12
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xc0]
mov byte [esp + 0x10], 0x11
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xac]
mov byte [esp + 0x10], 0x10
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 0xf
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x84]
mov byte [esp + 0x10], 0xe
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x70]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CStringArray::CStringArray
mov byte [esp + 0x10], 0xa
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408ac0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x8c0
push esi
push edi
push 2
lea eax, [esp + 0xcc]
push 0x400
push eax
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x18], 0x50
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push str.Everyone
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [esp + 0x8d0]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xd0]
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov edi, dword [esp + 0x8cc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 4
lea ecx, [esp + 0x4dc]
push 4
push ecx
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea edx, [esp + 0xc8]
push 0
push edx
push 0
push 0
push 4
lea eax, [esp + 0x4dc]
push 4
push eax
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea ecx, [esp + 0x8cc]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
add esp, 0x8c0
ret 8
Function at 0x409150
Capabilities:
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x413276
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x238]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x234], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x23c]
mov byte [esp + 0x230], 2
push ecx
lea ecx, [esp + 0x14]
call fcn.0041235e
lea edx, [esp + 0x10]
lea ecx, [esp + 0x238]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x10000000
push ecx
lea eax, [esp + 0x240]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00409380
mov ecx, dword [esp + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0x238]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push edx
call ebp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x409327
lea eax, [esp + 0xc]
push eax
push 0x415330
push 1
push 0
push 0x415320
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4092d6
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x415340
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x4092d6
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x240]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0xc]
push 0x4189d4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea esi, [edi + 0x20]
push str.IEXPLORE.exe
lea edx, [esp + 0x1c]
push esi
push edx
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push eax
push ecx
mov edx, dword [ecx]
mov byte [esp + 0x238], 3
call dword [edx + 0x50]
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
mov esi, dword [esi]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x244]
test eax, eax
je 0x409327
mov eax, dword [esp + 0x238]
push 1
push eax
call ebp
push 0x80000000
push ecx
lea edx, [esp + 0x240]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00409380
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x238]
mov byte [esp + 0x230], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x23c]
mov dword [esp + 0x230], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x228]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x228
ret 0x10
Function at 0x40b060
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x413580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x28]
mov bl, 1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::operator
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0xc]
push 0x100
push 0x100
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
add esi, 0x24
lea ecx, [esp + 0x10]
push esi
call sub.MFC42.DLL_CString::CString_2
push str.MicrosoftIdentitieskfclg.dll
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::operator_2
mov esi, dword [esp + 0x10]
push 0x100
push 0x100
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str._ProtectFile
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.0041235e
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x40c940
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4137bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [esp + 0x230]
push edi
mov edi, ecx
push 0x10000000
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
call fcn.00409380
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push esi
call ebx
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
push 0
mov dword [esp + 0x230], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x40ca73
lea eax, [esp + 0x14]
push eax
push 0x415330
push 1
push 0
push 0x415320
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40ca3b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x415340
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x40ca3b
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
test eax, eax
jne 0x40ca3b
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x44]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
push esi
call ebx
push 0x80000000
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
call fcn.00409380
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x224
ret 4
Function at 0x40d130
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40d169
push ebx
mov bl, byte [esp + 0x1c]
mov al, byte [eax + esi]
mov dl, byte [esp + 0x18]
mov cl, byte [esp + 0x14]
add al, dl
xor al, cl
mov ecx, edi
sub al, bl
push eax
push esi
call sub.MFC42.DLL_CString::SetAt
mov eax, dword [edi]
inc esi
cmp esi, dword [eax - 8]
jl 0x40d146
pop ebx
pop edi
pop esi
ret 0x10
Function at 0x40d650
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4138a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x10], esi
lea ecx, [esp + 8]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_4
push 0x100
push 0x100
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push 0xf003f
push ebx
push str.SOFTWAREKingsaft
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d6d3
mov esi, dword [esp + 0xc]
jmp 0x40d702
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREKingsaft
push 0x80000002
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40d727
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edi
push eax
mov dword [esp + 0x18], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.filepath
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x40d73f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40d7d0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4138e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0041230a
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x48]
push 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x418394
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x48]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40d853
push 0x418394
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
push 0x4191ac
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40d92b
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [eax + 0x40]
test eax, eax
jne 0x40d91f
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40d91f
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::GetFilePath
push 0x4191a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40d911
push 0x10000000
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00409380
mov eax, dword [esp + 0x48]
push eax
call edi
mov ecx, dword [esp + 0x48]
and al, 0xfe
push eax
push ecx
call ebp
mov edx, dword [esp + 0x48]
push edx
call ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40d88b
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 4
Function at 0x40dc20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x41395e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
mov esi, ecx
push 0xf003f
push ecx
lea eax, [esp + 0x144]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov dword [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00408ac0
mov edi, dword [esp + 0x138]
lea ecx, [esp + 0x14]
push edi
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x134]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edi
push edx
mov byte [esp + 0x140], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40dcb2
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dd87
lea ecx, [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ecx
mov ecx, dword [esp + 0xc]
push 0
push 0
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x34]
push edx
push eax
push 0
mov dword [esp + 0x28], 0x100
push ecx
call edi
test eax, eax
je 0x40dce9
cmp eax, 0xea
jne 0x40dd66
lea edx, [esp + 0x13c]
push 0x418394
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator_1
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
push eax
push ecx
mov byte [esp + 0x13c], 2
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.0040dc20
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x1c]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
mov dword [esp + 0x28], 0x100
push edx
jmp 0x40dcdc
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x13c]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x128
ret 0xc
Function at 0x40ddd0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x413978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
push 0x100
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40de98
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edi
push edx
push eax
mov eax, dword [esp + 0x1c]
push str.Favorites
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call sub.MFC42.DLL_AfxGetEmptyString
mov edx, dword [eax]
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
mov ecx, esi
push eax
mov dword [esp + 0x24], 0
call fcn.0040deb0
mov ecx, dword [esp + 8]
push ecx
mov ecx, esi
call fcn.0040fa50
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40e3a0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x413a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0040eb90
mov edx, dword [esp + 0x20]
push 0x41a6e8
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40e499
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::Left
push str.SharedAccountConfigConfig.ini
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
push 0x10000000
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00409380
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x20]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x20]
mov esi, dword [esi + 0x44]
push edx
push esi
push str.HomePage
push str.Startup
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x40e4c0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x413a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0040eb90
mov edx, dword [esp + 0x20]
push 0x41a6e8
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40e5b9
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::Left
push str.TheWorld.ini
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
push 0x10000000
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00409380
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x20]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x20]
mov esi, dword [esi + 0x44]
push edx
push esi
push str.HomePage
push str.option
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4