joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411939
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x421628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x42d5cc
lea ecx, [esp + 0x10]
mov dword [esi + 0x391f4], ebx
mov dword [esi + 0x391f8], ebx
mov dword [esi + 0x391fc], ebx
mov dword [esi + 0x39200], ebx
mov dword [esi + 0x39204], ebx
mov dword [esi + 0x3920c], ebx
call fcn.004175e2
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebx
push eax
call fcn.00417e60
add esp, 4
push str...GameListMenu1.dll
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00417786
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x3920c], eax
je 0x411a78
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateRMenuObject
push eax
call edi
mov dword [esi + 0x391f4], eax
mov eax, dword [esi + 0x3920c]
push str.ReleaseRMenuWnd
push eax
call edi
mov ecx, dword [esi + 0x3920c]
push str.AddNewMenu
push ecx
mov dword [esi + 0x391f8], eax
call edi
mov edx, dword [esi + 0x3920c]
push str.CreateRMenu
push edx
mov dword [esi + 0x391fc], eax
call edi
mov dword [esi + 0x39200], eax
mov eax, dword [esi + 0x3920c]
push str.SetLpIGameSite
push eax
call edi
mov ecx, dword [esi + 0x391f4]
mov dword [esi + 0x39204], eax
cmp ecx, ebx
je 0x411a6b
cmp dword [esi + 0x391f8], ebx
je 0x411a6b
cmp dword [esi + 0x391fc], ebx
je 0x411a6b
cmp dword [esi + 0x39200], ebx
je 0x411a6b
cmp eax, ebx
je 0x411a6b
mov edi, 1
jmp 0x411a9e
mov ecx, dword [esi + 0x3920c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
mov dword [esi + 0x3920c], ebx
mov dword [esi + 0x391f4], ebx
mov dword [esi + 0x391f8], ebx
mov dword [esi + 0x391fc], ebx
mov dword [esi + 0x39200], ebx
mov dword [esi + 0x39204], ebx
mov eax, dword [esi + 0x391f4]
cmp eax, ebx
je 0x411ab4
push esi
call eax
add esp, 4
mov dword [esi + 0x39208], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x413358
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x421718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esi + 0x35760], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 0
push eax
call fcn.00417e60
add esp, 4
push str.TetrisRes.dll
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call fcn.00417786
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4133f5
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x35760], eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 4]
jne 0x41342d
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x413520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x421750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00413c30
mov ecx, ebp
call fcn.00415160
push 1
mov ecx, ebp
mov dword [ebp + 0x34e98], 1
call fcn.00413c10
lea edi, [ebp + 0x3861c]
mov esi, dword [ebp + 0x36604]
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x3862c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x38664]
test eax, eax
mov dword [esp + 0x30], edx
je 0x4135b6
test ebp, ebp
jne 0x4135a2
xor ecx, ecx
jmp 0x4135a5
mov ecx, dword [ebp + 0x20]
mov ebx, dword [esp + 0x48]
mov edx, dword [eax]
push ebx
mov ebx, dword [esp + 0x48]
push ebx
push ecx
push eax
call dword [edx + 0xc]
lea ecx, [esp + 0x1c]
xor ebx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0x36604]
mov byte [esp + 0x3c], 3
cmp esi, eax
je 0x41360e
push 0x42c8cc
lea ecx, [esp + 0x1c]
call fcn.004175b8
mov ebx, 1
jmp 0x41361c
push 0x42d5cc
lea ecx, [esp + 0x1c]
call fcn.004175b8
mov ecx, 4
lea esi, [esp + 0x24]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x413640
push str.MIDI
lea ecx, [esp + 0x18]
call fcn.004175b8
mov ebx, 1
jmp 0x41364e
push 0x42d5cc
lea ecx, [esp + 0x18]
call fcn.004175b8
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x3862c]
cmp ecx, eax
je 0x41366c
push 0x42c8b0
lea ecx, [esp + 0x14]
call fcn.004175b8
jmp 0x41367e
push 0x42d5cc
lea ecx, [esp + 0x14]
call fcn.004175b8
test ebx, ebx
je 0x4136cc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push 0x42c888
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
test ebp, ebp
jne 0x4136a7
xor eax, eax
jmp 0x4136aa
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x1c]
push 1
push 0
push 0x42becc
push 0x42bec4
push 0
push 0x42beb4
push ecx
push eax
mov ecx, ebp
call fcn.00411720
mov eax, dword [ebp + 0x357c0]
mov dword [ebp + 0x34e98], 0
test eax, eax
mov dword [ebp + 0x38668], 0
jne 0x41370d
mov eax, dword [ebp + 0x38688]
test eax, eax
je 0x41370d
mov ebp, dword [ebp + 0x3868c]
test ebp, ebp
je 0x41370d
mov edx, dword [ebp]
push 0
push 0
push 0
push 0
push ebp
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x415ce0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x421898
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0xd363
lea ebx, [esi + 0x108]
mov dword [esi + 0xf4], eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
push 0x42cbc8
mov eax, dword [ecx]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x415d49
push 0x10
push 0x42b31c
push 0x42cbb4
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x415e0b
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
push 0x1cc
push ebx
call ebp
push 0
push 0
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi + 0x2d0]
push edi
push 1
lea edx, [eax + eax*8]
lea eax, [edx*4 + 0x1cc]
push eax
push ebx
call ebp
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x30
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
push ecx
mov ecx, dword [esi + 0x118]
push edx
mov edx, dword [esi + 0x11c]
push eax
mov eax, dword [esi + 0x120]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [esp + 0x3c]
push 0x42cb78
push ecx
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x44]
add esp, 0x20
mov ecx, esi
push 0x40
push 0x42cb70
push edx
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, esi
call fcn.00415e20
mov ecx, esi
call fcn.00415f40
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x418292
Capabilities:
Get file version info
Read .ini file

Disassembly:
mov eax, 0x421aa4
call fcn.00420688
sub esp, 0x12c
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_2
push dword [ebp + 8]
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 1
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x138]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x10
cmp eax, ebx
jne 0x4182e1
xor esi, esi
jmp 0x4183fb
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push esi
push 0x42a78c
push eax
call sub.MFC42.DLL_CString::Format
push str.QQGame.EXE
mov byte [esi], bl
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0x14
test eax, eax
jne 0x418311
push str.ConfigConfig.ini
jmp 0x418316
push str.Config.ini
lea eax, [ebp - 0x138]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x138]
pop ecx
push eax
push ebx
push str.Version
push str.Public
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
je 0x418347
mov esi, eax
jmp 0x4183fb
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
cmp esi, ebx
mov byte [ebp - 4], 2
jne 0x41836a
or esi, 0xffffffff
jmp 0x4183ef
lea eax, [esi + 2]
push edi
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push eax
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x42d040
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x1c]
push 0x64
xor edx, edx
pop ebx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, eax
mov edi, ecx
and eax, 0xffff
push dword [ebp - 0x10]
shr edi, 0x10
mov dword [ebp - 0x30], eax
mov eax, edi
div ebx
and ecx, 0xffff
shr esi, 0x10
mov dword [ebp - 0x24], ecx
mov ebx, eax
imul eax, eax, 0x64
sub edi, eax
call sub.MFC42.DLL_operatordelete
imul esi, esi, 0x64
add esi, dword [ebp - 0x30]
pop ecx
lea eax, [esi + esi*4]
lea esi, [ebx + eax*2]
imul esi, esi, 0x64
add esi, edi
pop edi
imul esi, esi, 0x64
add esi, dword [ebp - 0x24]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41b250
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push 0
call fcn.0041ca70
test eax, eax
jne 0x41b262
pop esi
ret 4
mov eax, dword [esi + 4]
push ebx
xor ebx, ebx
push edi
mov eax, dword [eax + 0x10]
cmp eax, 1
jne 0x41b2e2
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x41b36c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call edi
test eax, eax
mov dword [esi + 0x15c], eax
je 0x41b36c
mov ecx, dword [esi + 0xc]
push str.Process32First
push ecx
call edi
test eax, eax
mov dword [esi + 0x160], eax
je 0x41b36c
mov edx, dword [esi + 0xc]
push str.Process32Next
push edx
call edi
test eax, eax
mov dword [esi + 0x164], eax
je 0x41b36c
mov ebx, 1
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
cmp eax, 2
jne 0x41b36c
push str.Psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 8], eax
je 0x41b36c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call edi
test eax, eax
mov dword [esi + 0x14c], eax
je 0x41b36c
mov eax, dword [esi + 8]
push str.EnumProcessModules
push eax
call edi
test eax, eax
mov dword [esi + 0x150], eax
je 0x41b36c
mov ecx, dword [esi + 8]
push str.GetModuleInformation
push ecx
call edi
test eax, eax
mov dword [esi + 0x154], eax
je 0x41b36c
mov edx, dword [esi + 8]
push str.GetModuleFileNameExA
push edx
call edi
test eax, eax
mov dword [esi + 0x158], eax
je 0x41b36c
mov ecx, esi
call fcn.0041b810
test eax, eax
je 0x41b36c
mov ebx, 1
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 8]
mov eax, ebx
pop edi
pop ebx
pop esi
ret 4

Function at 0x41b810
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
xor esi, esi
push eax
mov edi, ecx
push 0xf01ff
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41b852
mov ecx, dword [esp + 8]
push 1
push str.SeDebugPrivilege
push ecx
mov ecx, edi
call fcn.0041b7a0
test eax, eax
je 0x41b852
mov esi, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x41b861
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ecx
ret
Function at 0x41c6b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
je 0x41c788
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41c788
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x41c788
mov edi, dword [esp + 0x18]
test edi, edi
jbe 0x41c788
push ebx
push ebp
push edi
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_operatornew
push 0x42cbc8
push esi
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41c772
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp eax, ecx
jbe 0x41c772
push 0
push ecx
push esi
call ebx
push esi
push edi
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x20
xor esi, esi
test edi, edi
jbe 0x41c76a
mov ebx, dword [esp + 0x1c]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push str._02x
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
inc esi
add ebx, 2
cmp esi, edi
jb 0x41c74d
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x41c77f
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x41cb50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x421e8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [esp + 0x1c], esi
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_2
push 0x42d5cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004175e2
mov bl, 3
push 0x42d5cc
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], bl
call fcn.004175b8
mov eax, dword [esp + 0x34]
cmp dword [eax - 8], esi
jle 0x41cc3b
mov al, byte [esi + eax]
cmp al, 0x5c
mov byte [esp + 0x10], al
je 0x41cbf2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.00417786
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
jmp 0x41cc2d
lea eax, [esp + 8]
push 0x5c
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
push 0x42d5cc
lea ecx, [esp + 0xc]
call fcn.004175b8
mov eax, dword [esp + 0x34]
inc esi
cmp esi, dword [eax - 8]
jl 0x41cbb5
mov esi, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x41cc90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x421ecf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0x10], 0
mov ebx, 1
push 0x42d5cc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.004175e2
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
push ecx
call fcn.0041cb50
add esp, 8
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x41cd1b
mov esi, dword [esp + 0x28]
push 0x42d5cc
mov ecx, esi
call fcn.004175e2
mov dword [esp + 0x10], ebx
jmp 0x41cd64
mov ecx, dword [esp + 8]
mov esi, dword [ecx - 8]
mov ecx, dword [esp + 0x2c]
add eax, esi
mov edx, dword [ecx - 8]
mov esi, eax
cmp eax, edx
jge 0x41cd50
mov dl, byte [esi + ecx]
lea ecx, [esp + 0xc]
mov byte [esp + 0x14], dl
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x2c]
inc esi
cmp esi, dword [ecx - 8]
jl 0x41cd31
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x41efe0
Capabilities:
Access peb ldr_data
Get file version info
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4223b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
xor edi, edi
push str.Unknown_Version
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edi
call fcn.004175e2
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x18], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, edi
mov dword [esp + 0xc], eax
jbe 0x41f114
push ebp
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
push ebp
push ecx
push edi
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41f10a
lea edx, [esp + 0x10]
push ebx
lea eax, [esp + 0x1c]
push edx
push eax
push 0x42d040
push ebp
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x1c]
push 0x42d5cc
mov eax, dword [ecx + 8]
mov edi, eax
and eax, 0xffff
mov ebx, eax
mov eax, dword [ecx + 0xc]
mov esi, eax
and eax, 0xffff
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
shr edi, 0x10
shr esi, 0x10
call fcn.004175e2
mov eax, 0x51eb851f
mov byte [esp + 0x30], 2
mul esi
shr edx, 5
sub edx, 0
je 0x41f0c3
dec edx
je 0x41f0bc
push str.Release
jmp 0x41f0c8
push str.Beta
jmp 0x41f0c8
push str.Alpha
lea ecx, [esp + 0x40]
call fcn.004175b8
mov ecx, dword [esp + 0x20]
mov eax, esi
push ecx
xor edx, edx
mov ecx, 0x64
div ecx
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x44]
push edx
push ebx
push edi
push str._d._d__s_d_build_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
pop ebx
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop ebp
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x403204
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42499c]
sub esi, dword [0x4289a8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x448860], eax
jle 0x403362
push dword [0x4289a4]
call fcn.004031ed
push ebx
push ebx
push dword [0x4289a8]
push dword [0x40a018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x424998], esi
mov dword [0x41490c], ebx
mov ebp, 0x41c998
mov eax, dword [0x4289a0]
sub eax, dword [0x4289a4]
mov edi, 0x4000
cmp eax, edi
jg 0x403279
mov edi, eax
push edi
mov esi, 0x4249a0
push esi
call fcn.004031bb
test eax, eax
je 0x403374
add dword [0x4289a4], edi
mov dword [0x41c928], esi
mov dword [0x41c92c], edi
cmp dword [0x4487ec], ebx
je 0x4032d0
cmp dword [0x4488e0], ebx
jne 0x4032d0
mov eax, dword [0x424998]
sub eax, dword [0x42499c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4289a8]
mov dword [0x41490c], eax
call fcn.0040311c
pop ecx
mov ecx, 0x41c910
mov dword [0x41c930], ebp
mov dword [0x41c934], 0x8000
call fcn.004067fe
test eax, eax
jl 0x403379
mov esi, dword [0x41c930]
sub esi, ebp
je 0x40332e
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40337e
cmp esi, dword [esp + 0x10]
jne 0x40337e
add dword [0x4289a8], esi
cmp dword [0x41c92c], ebx
jne 0x40329f
jmp 0x40333a
cmp dword [0x41c92c], ebx
jne 0x403379
cmp edi, ebx
je 0x403379
mov eax, dword [0x42499c]
mov ecx, eax
sub ecx, dword [0x4289a8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403263
push ebx
push ebx
push eax
push dword [0x40a018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.0040311c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x40336c
push 0xfffffffffffffffd
pop eax
jmp 0x40336c
push 0xfffffffffffffffe
jmp 0x40337b
Function at 0x403382
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4033ae
mov ecx, dword [0x448858]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a018]
mov dword [0x42499c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403204
cmp eax, edi
jl 0x4034a7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a018]
call ebx
test eax, eax
je 0x4034a3
cmp dword [ebp - 4], esi
jne 0x4034a3
push dword [ebp + 8]
add dword [0x42499c], esi
call fcn.00403204
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4034a6
cmp dword [ebp + 0x10], edi
jne 0x403472
cmp dword [ebp + 8], edi
jle 0x40349e
mov esi, 0x4249a0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403422
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a018]
call ebx
test eax, eax
je 0x4034a3
cmp edi, dword [ebp - 4]
jne 0x4034a3
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40346e
cmp dword [ebp + 0x14], edi
jne 0x40346e
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42499c], eax
cmp dword [ebp + 8], 0
jg 0x403415
jmp 0x40349e
push 0xfffffffffffffffe
jmp 0x4034a5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40347d
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a018]
call ebx
test eax, eax
je 0x4034a3
mov eax, dword [ebp - 4]
add dword [0x42499c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4034a6
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10