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

Disassembly:
push 0xffffffffffffffff
push 0x405cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esi + 0x24]
mov bl, 1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x402102
lea ecx, [esp + 0xc]
push str.Users_
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0x20]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00405822
push str.AppDataRoamingMicrosoftInternet_ExplorerQuick_Launch
jmp 0x402152
lea edx, [esp + 0xc]
push str.Documents_and_Settings_
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.00405822
push str.Application_DataMicrosoftInternet_ExplorerQuick_Launch
lea ecx, [esp + 0xc]
call fcn.00405828
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x409480
call fcn.00405858
push 0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.004021c0
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
Function at 0x403160
Capabilities:
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x405e26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x238]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x234], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x23c]
mov byte [esp + 0x230], 2
push ecx
lea ecx, [esp + 0x14]
call fcn.00405822
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_1
mov ecx, esi
call fcn.00403ef0
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 0x403328
lea eax, [esp + 0xc]
push eax
push 0x407268
push 1
push 0
push 0x407258
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4032e2
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x407278
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x4032e2
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x28]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esp + 0xc]
push 0x409768
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea edi, [esi + 0x14]
push str.IEXPLORE.exe
lea edx, [esp + 0x1c]
push edi
push edx
call sub.MFC42.DLL_operator_2
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 edi, dword [edi]
push edi
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 + 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_1
mov ecx, esi
call fcn.00403ef0
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 8
Function at 0x403380
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x405e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov dword [esp + 0x18], ecx
push esi
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.lnkfile
push 0x80000000
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 0x1e
call esi
lea ecx, [esp + 0x14]
push ecx
push 0x1e
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push edx
push 0
push str.IsShortcut
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x40341f
mov ecx, dword [esp + 0x10]
push str.IsShortcut
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x1e
push eax
push 0xf003f
push 0
push str.piffile
push 0x80000000
call esi
lea ecx, [esp + 0x14]
push ecx
push 0x1e
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push edx
push 0
push str.IsShortcut
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x403486
mov ecx, dword [esp + 0x10]
push str.IsShortcut
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
push edx
call ebp
test edi, edi
je 0x403495
test esi, esi
jne 0x4034a0
mov eax, dword [esp + 0x20]
mov dword [eax + 8], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x403c90
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x405f1b
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 fcn.00405858
mov ecx, edi
call fcn.00403ef0
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 fcn.00405858
push 0
mov dword [esp + 0x230], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x403dc3
lea eax, [esp + 0x14]
push eax
push 0x407268
push 1
push 0
push 0x407258
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x403d8b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x407278
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x403d8b
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 0x403d8b
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x28]
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 fcn.00405858
mov ecx, edi
call fcn.00403ef0
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 0x403e00
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 0x403fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x405f46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
lea esi, [ecx + 0x28]
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x104
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
mov dword [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
mov byte [esp + 0x124], 1
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftAdvanced_INF_Setup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040b5
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.EnableJava
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0xc]
push edx
mov edi, eax
call sub.MFC42.DLL_CString::operator
test edi, edi
pop edi
jne 0x4040b5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4040b5
push 0x4098b0
lea ecx, [esp + 8]
call fcn.00405828
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.00405822
jmp 0x4040c3
push 0x4098ac
lea ecx, [esp + 8]
call fcn.00405828
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x11c]
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x404110
Capabilities:
Enumerate internet cache

Disassembly:
push 0xffffffffffffffff
push 0x405f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
push eax
push 0
mov ebp, ecx
push str.visited:
mov dword [esp + 0x20], 0
call edi
push 0x10000000
push 0x100
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esp + 0x14]
mov ebx, eax
push ecx
push 0x40
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea edx, [esp + 0x14]
mov esi, eax
push edx
push esi
push str.visited:
call edi
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString_2
test edi, edi
mov dword [esp + 0x20], 0
je 0x404250
test esi, esi
je 0x404250
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push str.360.cn
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
jne 0x404211
push str.bbs.ikaka.com
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
jne 0x404211
push str.bbs.crsky.com
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
jne 0x404211
push str.bbs.aikaba.com
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
jne 0x404211
push str.kpfans
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
jne 0x404211
push str.bbs.kaspersky
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
je 0x40421f
mov ecx, dword [ebp + 0x1c]
inc ecx
mov eax, ecx
mov dword [ebp + 0x1c], ecx
cmp eax, 0x18
jae 0x404250
push 0x3e8
push 0x40
push ebx
mov dword [esp + 0x20], 0x3e8
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404250
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x40419e
push edi
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4042a0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x405f88
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 edi
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.004043f0
mov edx, dword [esp + 0x24]
push 0x409bb8
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 8
test eax, eax
je 0x40439c
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Left
push str.TheWorld.ini
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
push 0x10000000
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403ef0
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x24]
and al, 0xfe
push eax
push ecx
call edi
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x28]
push edx
push eax
push str.HomePage
push str.option
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x24]
push 1
push eax
call edi
push 0x80000000
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403ef0
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret 4
Function at 0x404710
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x406028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], 0
test eax, eax
je 0x404766
push str.Users_
lea ecx, [esp + 0xc]
call fcn.00405828
lea eax, [esi + 0x20]
lea ecx, [esp + 8]
push eax
call fcn.00405822
push str.AppDataRoamingTencentTencentTraveler100TtConf.dat
jmp 0x404786
push str.Documents_and_Settings_
lea ecx, [esp + 0xc]
call fcn.00405828
lea ecx, [esi + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00405822
push str.Application_DataTencentTencentTraveler100TtConf.dat
lea ecx, [esp + 0xc]
call fcn.00405828
push 0x10000000
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403ef0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push ecx
call edi
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x28]
push edx
push eax
push str.strHomePageUrl
push str.COMMON
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 8]
push 1
push eax
call edi
push 0x80000000
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403ef0
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret
Function at 0x404830
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x406058
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 edi
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.004043f0
mov edx, dword [esp + 0x24]
push 0x409bb8
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x404952
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Left
push str.SharedAccountConfigConfig.ini
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
push 0x10000000
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403ef0
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push ecx
call edi
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x28]
push edx
push eax
push str.HomePage
push str.Startup
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x24]
push 1
push eax
call edi
push 0x80000000
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403ef0
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret 4
Function at 0x40597d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407248
push 0x405900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x409cac], 0xffffffff
or dword [0x409cb0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x409ca4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x409ca0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x409ca8], eax
call fcn.00405ab5
cmp dword [0x409bb0], 0
jne 0x405a00
push 0x405ab2
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00405aa0
push 0x40901c
push 0x409018
call sub.MSVCRT.dll__initterm
mov eax, dword [0x409c9c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x409c98]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x409014
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00405480
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x10004b4d
Capabilities:
Accept command line arguments
Get system information on windows

Disassembly:
mov eax, dword [0x1000bb70]
push esi
mov dword [0x1000bb60], eax
push 0x40
mov ecx, dword [eax + 0x3c]
push 0x3000
add ecx, eax
push 0x400
mov dword [0x1000bb88], ecx
push 0
mov ecx, dword [ecx + 0x30]
add ecx, eax
mov dword [0x1000bb5c], ecx
mov esi, dword [ecx + 4]
call esi
mov dword [0x1000bb74], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
movzx eax, byte [esi + 3]
movzx ecx, byte [esi]
sub ecx, eax
jne 0x10004b86
movzx eax, byte [esi + 3]
movzx ecx, byte [esi]
sub ecx, eax
pop esi
je 0x10004bac
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
ret
jmp fcn.10005dbb

Function at 0x10006913
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000a970
cmp edx, dword [eax]
je 0x10006935
add eax, 8
inc ecx
cmp eax, 0x1000aa00
jl 0x10006926
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000a970]
jne 0x10006a63
mov eax, dword [0x1000bc6c]
cmp eax, 1
je 0x10006a3d
test eax, eax
jne 0x10006966
cmp dword [0x1000bc70], 1
je 0x10006a3d
cmp edx, 0xfc
je 0x10006a63
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000699d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10007360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10007450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100069e0
lea eax, [ebp - 0x1a4]
push eax
call fcn.10007450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10009384
push edi
call fcn.10007c70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10007360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10007370
lea eax, [ebp - 0xa0]
push 0x10009364
push eax
call fcn.10007370
push dword [esi + 0x1000a974]
lea eax, [ebp - 0xa0]
push eax
call fcn.10007370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10007be5
add esp, 0x2c
pop edi
jmp 0x10006a63
lea eax, [ebp + 8]
lea esi, [esi + 0x1000a974]
push 0
push eax
push dword [esi]
call fcn.10007450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret