joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412780
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b18d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push 0x4db948
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 8]
push 0x104
push eax
mov dword [esp + 0x11c], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x4127de
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x412830
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b1905
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push 0x4db948
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 8]
push 0x104
push eax
mov dword [esp + 0x11c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x41288e
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x413fd0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x413fef
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
ret 0x10
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0x10

Function at 0x4140c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov edx, dword [esp + 0x414]
xor eax, eax
cmp edx, eax
mov dword [esp], eax
jne 0x4140dc
mov edx, 0x4db948
push esi
mov esi, dword [esp + 0x41c]
cmp esi, eax
jne 0x414112
mov eax, dword [esp + 0x414]
mov esi, dword [esp + 0x40c]
push edx
mov edx, dword [esp + 0x414]
push eax
push edx
push esi
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, esi
pop esi
add esp, 0x404
ret 0x14
push edi
mov byte [esp + 0xc], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x41c]
push 0x400
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push edx
mov edx, dword [esp + 0x424]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x410]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop edi
pop esi
add esp, 0x404
ret 0x14

Function at 0x414300
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4

Function at 0x414320
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x298]
mov edx, dword [esp + 8]
sub esp, 0x100
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x108]
push 0x100
push ecx
push edx
push eax
push 0x4d68a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 5
push 0
lea ecx, [esp + 8]
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x100
ret 8
Function at 0x415c20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push ecx
push edx
mov byte [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415c91
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x120]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x100
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 0x114]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x415cb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b2587
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push 0x104
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x124]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
lea edx, [esp + 0x1c]
push reloc.WSOCK32.dll_bind
push edx
call fcn.00415c20
add esp, 0x10
mov ebp, dword [esp + 0x238]
lea eax, [esp + 0x20]
push eax
push str._WinDir_
lea esi, [ebp + 0x44]
mov dword [esp + 0x238], 0
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x124]
push ecx
push str._SystemDir_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
push str._ProgramDir_
call sub.MFC42.DLL_CString::Replace
mov eax, dword [edi + 0x290]
add edi, 0x290
push eax
push str._Share_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp + 0x40]
mov eax, 0xd1b71759
mul ecx
shr edx, 0xd
cmp edx, 4
mov byte [esp + 0x230], 1
jne 0x415dad
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push str._Local_
call sub.MFC42.DLL_CString::Replace
jmp 0x415e77
push str._run.exe
lea ecx, [esp + 0x14]
call fcn.0045526c
mov ecx, dword [esp + 0x10]
push ecx
push str._Local_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
push 0x7c
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 2
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, 0xffffffff
je 0x415e66
lea edx, [edi + 1]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
lea ecx, [esp + 0x1c]
push edi
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], 3
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x18]
lea ecx, [ebp + 0x48]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x228
ret 4
Function at 0x4193f0
Capabilities:
Read file via mapping

Disassembly:
push ebx
lea ebx, [ecx + 0x72c]
push esi
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
push str.__GLIEDOWN_MAPFILE_NAME__
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x419444
push edi
push 0x400
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x41943c
push edi
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret
Function at 0x41be30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2f46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CString::CString_5
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_5
lea ebx, [esi + 8]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_5
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 7
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 8
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 9
call sub.MFC42.DLL_CString::CString_5
mov ecx, esi
mov byte [esp + 0x1c], 0xa
call sub.MFC42.DLL_CString::Empty
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::Empty
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x28]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x38]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call sub.MFC42.DLL_CString::Empty
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41d070
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b30c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x41d0a3
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0x4d6160
lea eax, [esp + 8]
push 0x4dbcc8
push eax
call sub.MFC42.DLL_operator_1
push str.RunItemFlag.ini
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 4]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push edx
push 0
push esi
push str.RUNFLAG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
mov dword [esp + 0x10], 0xffffffff
test eax, eax
sete cl
mov esi, ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41d2f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x41d33d
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x41d32e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41d32e
push eax
push eax
push str.stopapp
push esi
push str.open
push eax
call ebx
mov eax, dword [ebp + 0xc]
add esi, 0x314
cmp esi, eax
jne 0x41d306
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x41e510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push str.HANDCURSOR
push 0x740e
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41e56e
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
add esi, 0x80
push esi
push 0x20
push 0x20
push 0
push 6
push eax
call dword [sym.imp.USER32.dll_CreateCursor]
mov dword [edi + 0x60], eax
pop edi
pop esi
ret

Function at 0x420780
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b33e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x4d6160
lea eax, [esp + 0x18]
push 0x4dbcc8
mov ebp, ecx
push eax
call sub.MFC42.DLL_operator_1
push str.YAssistContract.txt
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0x4d74b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x420844
mov edx, dword [edi + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 8
test esi, esi
je 0x420844
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea ecx, [ebp + 0x64]
mov byte [esi + ebx], 0
push esi
call sub.MFC42.DLL_CString::operator_1
push esi
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x420940
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b3428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x4d6160
lea eax, [esp + 0x18]
push 0x4dbcc8
mov ebp, ecx
push eax
call sub.MFC42.DLL_operator_1
push str.ZCOMContract.txt
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0x4d74b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x420a04
mov edx, dword [edi + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 8
test esi, esi
je 0x420a04
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea ecx, [ebp + 0x64]
mov byte [esi + ebx], 0
push esi
call sub.MFC42.DLL_CString::operator_1
push esi
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x423770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b3cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov esi, ecx
call fcn.00465c20
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CWindowDC::CWindowDC
xor eax, eax
mov dword [esp + 0xc], 0x4bd540
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], eax
push str.Verdana
push 0x20
push eax
push eax
push eax
push 1
push eax
push eax
push eax
push 0x2bc
push eax
push eax
push 0xfffffffffffffff9
push 0xfffffffffffffff6
mov byte [esp + 0x68], 1
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CDC::SelectObject_1
push 1
lea ecx, [esp + 0x18]
mov esi, eax
call sub.MFC42.DLL_CDC::SetBkMode
push 0xd2d2d2
lea ecx, [esp + 0x18]
mov edi, eax
call sub.MFC42.DLL_CDC::SetTextColor
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [0x4dbcb0]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
xor eax, eax
mov al, byte [0x4dbcb2]
push ecx
xor ecx, ecx
push edx
mov cl, byte [0x4dbcb3]
push eax
push ecx
lea edx, [esp + 0x18]
push str.Version:__d._d._d._d
push edx
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x20]
add esp, 0x18
mov edx, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [0x4dc528]
push eax
mov eax, dword [0x4dc52c]
push eax
push ecx
lea ecx, [esp + 0x24]
call dword [edx + 0x64]
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SelectObject_1
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SetBkMode
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xc], 0x4bd504
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0x4bd4f0
mov dword [esp + 0x30], 0xffffffff
call fcn.00455470
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4288d0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4b42d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
push str.NewGL.dat
lea eax, [esp + 0x14]
push 0x4dbcc8
push eax
call sub.MFC42.DLL_operator_1
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebx
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x42899d
push str.NewGL.ini
lea edx, [esp + 0x10]
push 0x4dbcc8
push edx
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0xc]
push ebx
push 0x1001
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x428981
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::GetLength
mov edi, eax
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4289cf
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 2
call fcn.0045535c
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call fcn.0045535c
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push edi
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Read
xor ecx, ecx
cmp edi, ebx
mov dl, 0x42
jle 0x4289f9
mov al, cl
mov bl, 0xa
imul bl
add al, dl
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jl 0x4289e2
xor ebx, ebx
push edi
push esi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Write
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
mov ecx, 0x4dbcdc
call fcn.00444660
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, 0x4dbcdc
call fcn.00444860
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 2
call fcn.0045535c
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call fcn.0045535c
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x428a90
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4b42f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
mov bl, 0x42
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [0x4dbf8c]
mov ecx, dword [0x4dbcc8]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._sMyGame__s.dat
push edx
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [0x4dbf8c]
mov ecx, dword [0x4dbcc8]
add esp, 0x10
lea edx, [esp + 0x10]
push eax
push ecx
push str._sMyGame__s.ini
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x24]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebp, eax
or edi, 0xffffffff
cmp ebp, edi
jne 0x428b2a
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x428b4b
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x428b62
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push ebp
call esi
push edi
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x24], edi
jmp 0x428c02
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 0
push ebp
call esi
push 0
push 0
push ebp
mov edi, eax
call esi
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
test edi, edi
je 0x428bc3
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
xor ecx, ecx
test edi, edi
jle 0x428bac
mov al, cl
mov dl, 0xa
imul dl
add al, bl
mov bl, byte [ecx + esi]
xor bl, al
mov byte [ecx + esi], bl
inc ecx
cmp ecx, edi
jl 0x428b97
mov eax, dword [esp + 0x18]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push ebp
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, 0x4dbe18
call fcn.00444660
mov edx, dword [esp + 0x10]
mov ecx, 0x4dbe18
push edx
call fcn.00444860
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret