joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40afb0
Capabilities:
Access peb ldr_data
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b0df8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push esi
cmp bl, 6
push edi
jne 0x40b002
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 8
call esi
push 0
push 2
push 0
push 8
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
cmp bl, 7
jne 0x40b030
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40b014
call sub.MFC42.DLL_CWnd::SetFocus
push 0xd
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov si, ax
push 0
push 0
and esi, 0xff
push 0
jmp 0x40b1b4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40b19f
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b19f
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x28]
push ecx
push edx
push 0xb0
push eax
call edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x10]
mov ebx, 1
push ecx
mov ecx, esi
mov byte [esp + 0x20], bl
call fcn.00409f80
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00454d1e
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x2c]
mov ecx, esi
push edx
call fcn.00409ee0
mov eax, dword [esp + 0x28]
inc eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esi + 0x20]
push 0xb1
push eax
call edi
push 0
push 0
mov ecx, dword [esi + 0x20]
push 0xb7
push ecx
call edi
mov edx, dword [esi + 0x20]
push ebx
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
push ebx
call dword [sym.imp.USER32.dll_VkKeyScanA]
push 0
mov byte [esp + 0x28], al
mov esi, dword [esp + 0x28]
push 0
push 0
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push esi
call edi
push 0
push 2
push 0
push esi
call edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x40c840
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0040d980
test eax, eax
jne 0x40c873
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x40c690
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c873
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret

Function at 0x4114d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1637
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push 0x4db968
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0xc]
mov ebx, 1
push eax
mov dword [esp + 0x28], ebx
call fcn.00411470
mov ecx, dword [esp + 0x10]
push str.Game
push ecx
mov byte [esp + 0x30], 2
call fcn.004111e0
mov edx, eax
add esp, 0xc
test edx, edx
je 0x4115bb
push edi
mov edi, str.Game
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x10]
not ecx
dec ecx
sub edx, esi
add ecx, edx
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0x10]
push ecx
call fcn.00411650
add esp, 4
mov edx, dword [esp + 0x10]
mov byte [esp + 0x24], 4
mov eax, dword [edx - 8]
test eax, eax
je 0x4115fb
push 0x4d665c
lea ecx, [esp + 0x14]
call fcn.0045518c
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
push ecx
jmp 0x411600
lea edx, [esp + 8]
push edx
mov esi, dword [esp + 0x30]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4127c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b1875
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push 0x4db968
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 0x41281e
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 0x412870
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b18a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push 0x4db968
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 0x4128ce
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 0x414010
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41402f
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 0x414100
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov edx, dword [esp + 0x414]
xor eax, eax
cmp edx, eax
mov dword [esp], eax
jne 0x41411c
mov edx, 0x4db968
push esi
mov esi, dword [esp + 0x41c]
cmp esi, eax
jne 0x414152
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 0x414340
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 0x414360
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 0x415cb0
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 0x415d21
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 0x415d40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b2537
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.00415cb0
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 0x415e3d
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push str._Local_
call sub.MFC42.DLL_CString::Replace
jmp 0x415f07
push str._run.exe
lea ecx, [esp + 0x14]
call fcn.0045518c
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 0x415ef6
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 0x419490
Capabilities:
Read file via mapping

Disassembly:
push ebx
lea ebx, [ecx + 0x730]
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 0x4194e4
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 0x4194dc
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 0x41bf30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2ef6
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 ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_5
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0xc]
mov byte [esp + 0x1c], 2
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, ebx
call sub.MFC42.DLL_CString::Empty
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::Empty
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 dword [esi + 0x40], edi
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 0x41d180
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b3070
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 0x41d1b3
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 0x4dbce8
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 0x41d400
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 0x41d44d
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x41d43e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41d43e
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 0x41d416
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x41e620
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 0x41e67e
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 0x420850
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b3398
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 0x4dbce8
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 0x4d74d4
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 0x420914
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 0x420914
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 0x420a10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b33d8
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 0x4dbce8
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 0x4d74d4
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 0x420ad4
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 0x420ad4
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 0x4289a0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4b4280
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 0x4dbce8
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 0x428a6d
push str.NewGL.ini
lea edx, [esp + 0x10]
push 0x4dbce8
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 0x428a51
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 0x428a9f
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 2
call fcn.0045527c
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.0045527c
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 0x428ac9
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 0x428ab2
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, 0x4dbcfc
call fcn.00444420
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, 0x4dbcfc
call fcn.00444620
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 2
call fcn.0045527c
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.0045527c
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