joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b484
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40b5a7
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40b4bf
dec eax
je 0x40b4a9
dec eax
je 0x40b4b5
jmp 0x40b4bf
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40b4bf
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40b511
xor ebp, ebp
cmp esi, ebp
jle 0x40b52d
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40b4e4
mov ecx, esi
sub ecx, ebp
jmp 0x40b4e9
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40b52d
add ebp, 0x4000
cmp esi, ebp
jg 0x40b4cb
jmp 0x40b52d
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40b5a3
cmp byte [edi + 0x14], 0
je 0x40b5a3
cmp dword [edi + 0xc], 0
jne 0x40b5a3
lea edx, [edi + 0x17]
mov eax, 0x413940
call fcn.00409864
test al, al
je 0x40b58d
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40b4bf
cmp dword [esp + 4], 0
jbe 0x40b4bf
mov eax, edi
call fcn.0040b7cc
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040b714
jmp 0x40b4bf
lea ecx, [edi + 0x17]
mov eax, 0x413940
xor edx, edx
call fcn.0040984c
jmp 0x40b5a3
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b694
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40b6bb
cmp esi, 0x4e20
jle 0x40b6b1
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40b70c
mov eax, ebx
call fcn.0040b9d4
test al, al
je 0x40b6f3
cmp esi, 0x4e20
jle 0x40b6f3
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040b694
jmp 0x40b70f
cmp dword [ebx + 0xc], 1
jne 0x40b707
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40b707
xor eax, eax
jmp 0x40b70f
or eax, 0xffffffff
jmp 0x40b70f
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ca18
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x4116f8], 0
jne 0x40ca31
call fcn.0040c5f8
mov dword [0x4116f4], eax
inc byte [0x4116f8]
call fcn.0040c5f8
sub eax, dword [0x4116f4]
cmp eax, 0x64
jle 0x40ca6d
cmp dword [0x411878], 0
je 0x40ca68
mov eax, 0x413940
mov edx, 0xff
call fcn.004099f4
mov eax, 0x413940
mov edx, 0xff
call fcn.004099ec
call fcn.004029ac
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40893d
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
call fcn.00408963
xor dword [edx], esi
add ecx, 0xdd27ab96
add edi, ecx
inc edx
inc ecx
mov ecx, 0xc2ca5f01
cmp edx, eax
jne fcn.0040893d
and ecx, ecx
ret
Function at 0x401a50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x425640]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x104], eax
push edi
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCR71.dll_vsprintf]
lea edi, [esp + 0x14]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401a86
mov ax, word [0x41bfc8]
mov cl, byte [0x41bfca]
mov word [edi], ax
lea eax, [esp + 8]
mov byte [edi + 2], cl
mov dword [esp + 4], 0
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ab0
mov ecx, dword [0x425698]
sub eax, edx
push 0
lea edx, [esp + 4]
push edx
push eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x104]
call fcn.004177e1
add esp, 0x108
ret

Function at 0x401e70
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x124
mov eax, dword [0x425640]
push esi
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x12c]
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
push str._r_n___EXCEPTION____r_n
call fcn.00401a50
mov eax, dword [edi + 0xc]
push eax
push str.Exception_at:_________0x_08X
call fcn.00401a50
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xac]
mov eax, dword [esi + 0xa4]
push ecx
mov ecx, dword [esi + 0xb0]
push edx
mov edx, dword [esi + 0xa0]
push eax
mov eax, dword [esi + 0x9c]
push ecx
push edx
push eax
push str.Integer_Registers:____EDI_08X____ESI_08X____EAX_08X____EBX____08X____ECX___08X___EDX___08X
call fcn.00401a50
mov ecx, dword [esi + 0xc8]
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0xc0]
push ecx
mov ecx, dword [esi + 0xc4]
push edx
mov edx, dword [esi + 0xb8]
push eax
mov eax, dword [esi + 0xb4]
push ecx
push edx
push eax
push str.Control_Registers:____EBP_08X____EIP_08X____ESP_08X____EFlags_08X____SegCS_08X___SegSS_08X
call fcn.00401a50
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
add esp, 0x44
lea edx, [esp + 8]
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push str._r_n___MEMORY_STATUS____r_n
call fcn.00401a50
mov ecx, dword [esp + 0x18]
push 0x40
lea eax, [esp + 0xb0]
push eax
push ecx
call fcn.004019a0
add esp, 0x10
push eax
mov eax, dword [esp + 0x14]
push 0x40
lea edx, [esp + 0x70]
push edx
push eax
call fcn.004019a0
mov edx, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0x40
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.004019a0
add esp, 0xc
push eax
push str.Load____________15s__Total_Physical______15s__Available_Physical___15s
call fcn.00401a50
mov ecx, dword [esp + 0x34]
push 0x40
lea eax, [esp + 0xfc]
push eax
push ecx
call fcn.004019a0
add esp, 0x1c
push eax
mov eax, dword [esp + 0x24]
push 0x40
lea edx, [esp + 0xb0]
push edx
push eax
call fcn.004019a0
add esp, 0xc
push eax
push str.Total_Virtual___15s__Available_Virtual___15s
call fcn.00401a50
mov ecx, dword [esp + 0x134]
add esp, 0xc
pop edi
pop esi
call fcn.004177e1
add esp, 0x124
ret
Function at 0x401ff0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x270
mov eax, dword [0x425640]
push esi
push edi
push str._r_n___MODULES_LIST____r_n
mov dword [esp + 0x278], eax
call fcn.00401a50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
xor eax, eax
mov ecx, 0x89
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push eax
push esi
mov dword [esp + 0x50], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40208e
jmp 0x402050
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
push ecx
push 0x40
lea edx, [esp + 0x10]
push edx
push eax
call fcn.004019a0
add esp, 0xc
push eax
lea ecx, [esp + 0x170]
push ecx
push str.Module:___48s__Size:__10s___Base_Adress:_0x_08X
call fcn.00401a50
add esp, 0x10
lea edx, [esp + 0x48]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x402050
mov ecx, dword [esp + 0x274]
call fcn.004177e1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4189c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [0x41b1d8]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4189e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [0x41b1d8]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418b92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov esi, ecx
call fcn.00403930
push 0x411
mov ecx, esi
call sub.MFC71.DLL_CWnd::GetDlgItem
lea ecx, [esp + 0xc]
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x147
push edx
mov dword [esp + 0x30], 0
call ebp
mov ecx, dword [esi + 0x84]
push eax
call sub.MFC71.DLL_CComboBox::GetLBText
mov eax, dword [edi + 0x20]
push 0
push 0
push 0xf0
push eax
call ebp
dec eax
neg eax
sbb al, al
inc al
lea edx, [esp + 0xc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [esp + 0x24], 1
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, eax
mov byte [esp + 0x24], 0
call fcn.00404b60
push 0
mov ecx, esi
call sub.MFC71.DLL_CWnd::ShowWindow
lea ecx, [esp + 0xc]
call dword [0x41b1d8]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret
Function at 0x403f30
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x418bec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x425640]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x114], eax
mov dword [esp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea eax, [esp + 8]
push eax
push 8
push esi
mov dword [esp + 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403f9f
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push ebx
push edx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x403fb5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x128]
push 0x41bfb8
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
jmp 0x40402f
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x41c75c
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], ebx
call dword [0x41b2d0]
push str.TMNT
lea ecx, [esp + 0x14]
call dword [0x41b2d0]
push ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
push esi
mov dword [esp + 0x10], ebx
call edi
mov esi, dword [esp + 0x12c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [0x41b1d8]
pop edi
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x110]
pop ebx
call fcn.004177e1
add esp, 0x11c
ret 4
Function at 0x4045c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x418c5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
mov eax, dword [0x425640]
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x41bfb8
lea ecx, [esp + 0x20]
mov dword [esp + 0x42c], eax
mov dword [esp + 0x24], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
push eax
push 0x20019
push edi
push str.SOFTWARE
push SysStringLen
mov dword [esp + 0x448], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x400
call esi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x4046af
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
push str.Ubisoft
push edx
call esi
test eax, eax
jne 0x4046af
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
push str.TMNT
push ecx
call esi
test eax, eax
jne 0x4046af
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
push str.InstallDir
push edx
call ebp
test eax, eax
jne 0x4046af
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov eax, dword [esp + 0x14]
cmp eax, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4046c0
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4046cb
push eax
call ebx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4046d6
push eax
call ebx
push 0x41bfb8
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x40476d
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push edi
push str.SOFTWARE
push 0x80000001
call esi
test eax, eax
jne 0x40476d
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x20019
push edi
push str.Ubisoft
push eax
call esi
test eax, eax
jne 0x40476d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push edi
push str.TMNT
push edx
call esi
test eax, eax
jne 0x40476d
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
push str.InstallDir
push eax
call ebp
test eax, eax
jne 0x40476d
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x404778
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x404783
push eax
call ebx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x40478e
push eax
call ebx
mov esi, dword [esp + 0x43c]
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [0x41b1d8]
mov ecx, dword [esp + 0x42c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x41c]
pop ebx
call fcn.004177e1
add esp, 0x428
ret 4
Function at 0x4047e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x418c82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
mov dword [esp + 0xc], esi
call fcn.004045c0
push str.TMNTGame.exe
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], esi
call fcn.00402bf0
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call dword [0x41b1d8]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x404853
push 0x41bfb8
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov esi, dword [esp + 0x1c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 4]
call dword [0x41b1d8]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4054a0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x425834
call fcn.00405280
test al, al
je 0x4054b5
xor al, al
pop esi
ret
lea ecx, [esi + 0xc]
call fcn.0040aea0
test al, al
je 0x4054ff
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4054d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
mov al, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18]
cmp eax, 0xea60
jb 0x405506
push 0xdead00
mov ecx, 0x425834
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov al, 1
pop esi
ret
mov dword [esi + 0x18], 0
mov al, 1
pop esi
ret

Function at 0x405510
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.POPError.DAT
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40555a
push 0
lea eax, [esp + 8]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x425834
call fcn.004052d0
pop esi
pop ecx
ret

Function at 0x405a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418e13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x41b758]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x405a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418e43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x41b758]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x405b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418e73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_int__char_]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x41b758]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret