joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4241c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x454a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push str.SoftwareTENCENTQQGameDDP
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push reloc.MagicShow.dll_Ordinal_1
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42421d
mov esi, dword [esp + 8]
jmp 0x424254
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push reloc.MagicShow.dll_Ordinal_1
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42427e
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x24]
push 4
push eax
push 4
push 0
push ecx
push esi
mov dword [esp + 0x3c], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x42427e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8

Function at 0x4242b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x454a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push str.SoftwareTENCENTQQGameDDP
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push ebx
push ecx
push reloc.MagicShow.dll_Ordinal_1
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x42437d
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push ebx
push edx
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x424372
cmp esi, ebx
je 0x42433c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
cmp esi, ebx
je 0x42437d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x42eea0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x48
push ebx
mov ebx, ecx
mov ecx, 0x48bb38
call fcn.00416d40
cmp eax, 1
jne 0x42f064
mov ecx, dword [ebx + 0x50]
push ebp
push esi
push edi
call fcn.00415650
push eax
mov ecx, 0x48bb38
call fcn.004171d0
mov ecx, dword [0x48f138]
dec eax
je 0x42eefa
dec eax
je 0x42eeec
dec eax
jne 0x42ef08
mov esi, dword [ecx + 0x30c8]
mov edi, dword [ecx + 0x30d8]
jmp 0x42ef10
mov esi, dword [ecx + 0x30c4]
mov edi, dword [ecx + 0x30d4]
jmp 0x42ef10
mov esi, dword [ecx + 0x30c0]
mov edi, dword [ecx + 0x30d0]
jmp 0x42ef10
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x18]
lea eax, [edi + 0x1e]
push 0
add ecx, 0x9d4
lea ebp, [esi + 8]
mov dword [esp + 0x1c], eax
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
ja 0x42ef47
mov ecx, dword [0x48f138]
push 0
push 0
push 0
push str.resother_spool.mif
add ecx, 0x9d4
call sym.twinrpg.exe_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
mov edx, dword [0x48f138]
push 0
push 0
add esi, 0xfffffffe
push edi
push esi
lea ecx, [edx + 0x9d4]
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov dword [esp + 0x10], ebp
lea ebp, [ebx + 0xa8]
mov dword [esp + 0x14], 8
mov ebx, dword [esp + 0x18]
xor esi, esi
mov al, byte [esi + ebp + 0x40]
test al, al
je 0x42f037
xor edx, edx
mov dl, byte [esi + ebp]
dec edx
cmp edx, 0xffffffff
je 0x42f037
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1c]
push 0
rep stosd dword es:[edi], eax
mov eax, 0xd
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [edx + edx*2]
lea ecx, [edx + eax*4]
mov edx, dword [0x48f138]
mov dword [esp + 0x20], ecx
lea ecx, [edx + 0x9b0]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
ja 0x42f019
push str._fruit_CTwinItemPlayerInfo::DrawStone_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [0x48eb94]
push 0
cmp al, 1
push 0
push 0
jne 0x42f003
mov eax, dword [0x48f138]
push str.res_stone_fruit_small.mif
lea ecx, [eax + 0x9b0]
jmp 0x42f014
mov ecx, dword [0x48f138]
push str.res_stone_animal_small.mif
add ecx, 0x9b0
call sym.twinrpg.exe_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
mov eax, dword [esp + 0x10]
mov ecx, dword [0x48f138]
lea edx, [esp + 0x1c]
add ecx, 0x9b0
push edx
push 0
push ebx
push eax
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
inc esi
add ebx, 0xd
cmp esi, 8
jl 0x42ef79
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ebp, 8
add ecx, 0xd
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x42ef73
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4
Function at 0x438510
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x455563
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
call sym.twinrpg.exe_char_const____cdecl_QGEG::HELPER::GetRootPath_void_
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
call fcn.004438c0
mov esi, dword [0x4d82d8]
mov dword [esp + 0x24], 0
test esi, esi
jne 0x438586
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov byte [esp + 0x24], 1
je 0x438573
mov ecx, eax
call fcn.0043cd70
jmp 0x438575
xor eax, eax
mov esi, eax
mov byte [esp + 0x24], 0
test esi, esi
mov dword [0x4d82d8], esi
je 0x4385ac
lea eax, [edi + 8]
add edi, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00443980
mov edx, dword [esi]
push 0
push 0
lea eax, [esp + 0x14]
push str.EngineCfg.xml
push eax
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00443940
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x438a90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
cmp eax, ebx
je 0x438b37
mov byte [eax + 1], bl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], bl
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push str._s_config.ini
lea eax, [esp + 0x114]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x10c]
push ecx
push ebx
push str.InitGdiPlus
push str.MinigameLoader
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
pop edi
pop ebx
setne al
add esp, 0x208
ret
mov al, bl
pop edi
pop ebx
add esp, 0x208
ret
Function at 0x43d4b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4558f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
call fcn.00443ed0
mov ecx, dword [edi + 0x4c]
lea eax, [edi + 0x2c]
mov esi, ecx
mov dword [esp + 0x28], 0
sub esi, eax
neg esi
sbb esi, esi
and esi, ecx
test esi, esi
je 0x43d51a
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add eax, 8
add ecx, 8
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004440b0
mov ecx, esi
call fcn.004475c0
mov esi, eax
test esi, esi
jne 0x43d4f6
mov ecx, dword [ebx + 0x28]
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x20]
mov edx, dword [ecx]
add eax, 8
push eax
call dword [edx + 4]
test al, al
jne 0x43d560
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x43d4f2
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00443fb0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00443fb0
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x43d590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.00443ed0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov esi, dword [ebx + 0x4c]
lea eax, [ebx + 0x2c]
cmp esi, eax
je 0x43d5f4
test esi, esi
je 0x43d5f4
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add eax, 8
add ecx, 8
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004440b0
mov ecx, esi
call fcn.004475c0
mov esi, eax
test esi, esi
jne 0x43d5d0
mov ecx, dword [edi + 0x28]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 0x20]
mov edx, dword [ecx]
add eax, 8
push eax
call dword [edx + 4]
mov ecx, ebx
call fcn.004463d0
mov esi, eax
test esi, esi
je 0x43d62a
push esi
mov ecx, edi
call fcn.0043d590
mov ecx, esi
call fcn.00446480
mov esi, eax
test esi, esi
jne 0x43d615
mov ecx, dword [edi + 0x28]
mov eax, dword [ebx + 0x20]
add eax, 8
mov edx, dword [ecx]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00443fb0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x440ea0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x46914c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov edi, eax
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebx
push esi
call sub.MFC42.DLL_operatornew
push edi
mov ebx, eax
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call sub.zlib1.dll_compressBound
push eax
mov dword [esp + 0x50], eax
call sub.MFC42.DLL_operatornew
add esp, 0x40
lea ecx, [esp + 0x10]
mov ebp, eax
push esi
push ebx
push ecx
push ebp
call sub.zlib1.dll_compress
add esp, 0x10
test eax, eax
jne 0x440f26
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push esi
push ebp
push eax
call fcn.00449640
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4471f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4560f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00445d40
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ebx + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0044a8f0
mov eax, dword [esi]
push 0x46914c
add eax, 8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4473da
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebp
add esp, 0x1c
test edi, edi
jne 0x447284
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4473e9
mov dword [esp + 0x10], 0x4d8410
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.0044a840
lea ecx, [edi + 1]
push ecx
call sub.MFC42.DLL_operatornew
push esi
mov ebp, eax
push 1
push edi
push ebp
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x4472fe
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.0044b910
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0x4d8410
mov dword [esp + 0x1c], 0xffffffff
je 0x4473e9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4473e9
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov byte [edi + ebp], 0
mov cl, byte [ebp]
add esp, 4
mov eax, ebp
test cl, cl
mov esi, ebp
je 0x447373
mov cl, byte [esi]
cmp cl, 0xa
jne 0x447333
mov edx, esi
lea ecx, [esp + 0x10]
sub edx, eax
inc edx
push edx
push eax
call fcn.0044a9d0
inc esi
mov eax, esi
jmp 0x44736e
cmp cl, 0xd
jne 0x44736d
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x44734b
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0044a9d0
lea eax, [esp + 0x24]
push 1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0xa
call fcn.0044a9d0
cmp byte [esi + 1], 0xa
jne 0x44732e
add esi, 2
mov eax, esi
jmp 0x44736e
inc esi
cmp byte [esi], 0
jne 0x447317
sub esi, eax
je 0x447382
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.0044a9d0
push ebp
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
add esp, 4
add ecx, 8
push eax
push 0
push ecx
mov ecx, ebx
call dword [edx + 8]
mov al, byte [ebx + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
test al, al
mov eax, dword [esp + 0x10]
je 0x4473c6
cmp eax, 0x4d8410
je 0x4473e9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4473e9
cmp eax, 0x4d8410
je 0x4473d6
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
jmp 0x4473eb
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.0044b910
xor al, al
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x449000
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_2
mov esi, ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x449040
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x208
ret 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x449067
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x208
ret 8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
push ebx
mov ebx, dword [esp + 0x220]
stosw word es:[edi], ax
test ebx, ebx
stosb byte es:[edi], al
je 0x4490d7
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x114]
push ebp
push ecx
stosb byte es:[edi], al
call fcn.00443cf0
add esp, 8
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push ebx
push edx
push 0x466d04
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
jmp 0x4490e5
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.00443cf0
add esp, 8
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
pop ebx
jne 0x44911b
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x208
ret 8
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x449150
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi]
push eax
call edi
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x208
ret 8
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [eax + 0x10]
cmp ecx, edx
ja 0x449194
mov edx, dword [esi + 0x10]
add edx, eax
lea eax, [esi + 0x1c]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x18]
add eax, 0x10
mov dword [esi + 0x18], eax
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x208
ret 8

Function at 0x449600
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push esi
push 1
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x44962e
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x44987a
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4562e1
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp eax, ebx
je 0x449894
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
add esp, 4
test eax, eax
jg 0x4498cb
mov edi, dword [esp + 0x50]
mov ebp, dword [sym.imp.MSVCRT.dll__open]
push 0x8002
push edi
call ebp
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4498cb
push 0x8002
push edi
call ebp
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4498cb
mov dword [esi], ebx
xor al, al
jmp 0x449968
mov ecx, dword [esi]
lea eax, [esi + 0x14]
push 0x10
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__read]
mov dl, byte [esp + 0x5c]
add esp, 0xc
mov byte [esp + 0x10], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov al, byte [esp + 0x50]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
push ecx
mov ecx, esi
call fcn.00449b00
test al, al
je 0x449942
lea edi, [esi + 4]
mov eax, dword [edi + 8]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov ecx, edi
call fcn.0044a1f0
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00449b30
test al, al
jne 0x449920
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x449966
mov al, byte [ecx - 1]
cmp al, bl
je 0x44995c
cmp al, 0xff
je 0x44995c
dec al
mov byte [ecx - 1], al
jmp 0x449966
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x449b30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x18]
inc edx
mov eax, edx
mov dword [ebx + 0x24], edx
cmp eax, ecx
jl 0x449b55
xor al, al
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx]
push ebp
push esi
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__lseek]
mov eax, dword [ebx]
mov esi, dword [sym.imp.MSVCRT.dll__read]
lea edx, [esp + 0x1e]
push 2
push edx
push eax
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
movsx ecx, word [esp + 0x2a]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call esi
movsx edi, word [esp + 0x36]
add esp, 0x24
cmp edi, 0xfffffffd
mov dword [esp + 0x14], edi
jbe 0x449bb5
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x120]
xor edx, edx
mov ecx, dword [ebp + 4]
cmp ecx, edx
je 0x449be4
mov al, byte [ecx - 1]
test al, al
je 0x449be4
cmp al, 0xff
je 0x449be4
cmp edi, edx
jne 0x449c0a
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
jmp 0x449c3e
cmp edi, edx
jne 0x449bf4
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x449c3e
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x449c00
cmp eax, edi
jae 0x449c13
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov ecx, edi
mov edi, dword [ebp + 4]
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov esi, dword [sym.imp.MSVCRT.dll__read]
mov dword [ebp + 8], eax
mov byte [ecx + eax], 0
mov eax, dword [ebx]
lea edx, [ebp + 0x10]
push 4
push edx
push eax
call esi
mov edx, dword [ebx]
lea ecx, [ebp + 0x14]
push 4
push ecx
push edx
call esi
mov ecx, dword [ebx]
lea eax, [ebp + 0x18]
push 4
push eax
push ecx
call esi
mov edx, dword [ebx]
add ebp, 0x1c
push 4
push ebp
push edx
call esi
mov eax, dword [ebx]
push eax
call dword [sym.imp.MSVCRT.dll__tell]
add esp, 0x34
mov dword [ebx + 0x28], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x44cf9d
Capabilities:
Get file version info

Disassembly:
mov eax, 0x456698
call fcn.00452590
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
push ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString_1
cmp esi, ebx
mov byte [ebp - 4], 1
jne 0x44cfdb
or esi, 0xffffffff
jmp 0x44d067
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 ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4696b0
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x14]
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 - 0x2c], eax
mov eax, edi
div ebx
and ecx, 0xffff
shr esi, 0x10
mov dword [ebp - 0x20], ecx
mov ebx, eax
imul eax, eax, 0x64
sub edi, eax
call sub.MFC42.DLL_operatordelete
imul esi, esi, 0x64
add esi, dword [ebp - 0x2c]
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 - 0x20]
xor ebx, ebx
lea ecx, [ebp - 0x18]
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 0x44f213
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x44f26f
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret