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

Disassembly:
sub esp, 0x11c
mov eax, dword [0x42b008]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x12c]
push edi
mov edi, ecx
push esi
test eax, eax
je 0x402352
push eax
lea eax, [esp + 0x24]
push str._s_s
push eax
call fcn.00401180
add esp, 0x10
jmp 0x402364
lea eax, [esp + 0x20]
push 0x426a44
push eax
call fcn.00401180
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.004012a0
push eax
lea eax, [edi + 0x110]
push 0x104
push eax
call fcn.00410fc0
add esp, 0xc
mov ecx, esi
call fcn.00401250
push eax
lea ebp, [edi + 0xc]
push 0x104
push ebp
call fcn.00410fc0
add esp, 0xc
lea eax, [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4023cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x214], eax
xor eax, eax
jmp 0x40243b
mov ecx, esi
call fcn.00401250
push eax
push 0x104
push ebp
call fcn.00410fc0
add esp, 0xc
mov ecx, edi
call fcn.00401ff0
lea esi, [eax + 1]
mov ecx, esi
call fcn.004011a0
push eax
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00401da0
push 0
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push esi
mov esi, dword [esp + 0x20]
and ebp, 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
and ebp, eax
jne 0x40242b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x214], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004011d0
mov eax, ebp
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040acdd
add esp, 0x11c
ret 8

Function at 0x403130
Capabilities:
Identify system language via api

Disassembly:
push esi
push ecx
push str.default_s
push 0x431178
call fcn.00401180
xor esi, esi
add esp, 0xc
cmp dword [0x430dac], esi
jle 0x40317a
mov edi, edi
mov eax, dword [0x430da8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
push 0x431178
call fcn.004110d3
add esp, 8
test eax, eax
je 0x403234
inc esi
cmp esi, dword [0x430dac]
jl 0x403150
mov edx, 0x430b50
mov ecx, 0x431178
call fcn.00401920
mov esi, eax
test esi, esi
jne 0x403210
call fcn.004014d0
mov esi, 0x426ad8
test eax, eax
jne 0x4031a6
mov esi, str.Error._Failed_to_read_default_settings_file_
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x403080
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0x10
push 0x426a98
push esi
push 0
mov dword [0x42c4cc], eax
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.00401980
mov esi, eax
mov ecx, 0x431178
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx + 0xb], al
test al, al
jne 0x4031e1
mov ecx, 0x430b50
mov edx, esi
sub edx, ecx
jmp 0x403200
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx + 0x10f], al
test al, al
jne 0x403200
mov eax, dword [0x430dac]
mov ecx, 0x430da8
inc eax
push eax
call fcn.0040a970
mov eax, dword [0x430da8]
mov ecx, dword [0x430dac]
mov dword [eax + ecx*4 - 4], esi
mov eax, esi
pop esi
ret
mov eax, dword [0x430da8]
mov eax, dword [eax + esi*4]
pop esi
ret
Function at 0x403240
Capabilities:
Identify system language via api

Disassembly:
push ecx
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0xc], edx
push edi
mov edi, ecx
cmp dword [0x430ddc], esi
jle 0x40327b
mov eax, dword [0x430dd8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
push edi
call fcn.004110d3
add esp, 8
test eax, eax
je 0x40332a
inc esi
cmp esi, dword [0x430ddc]
jl 0x403255
mov edx, 0x430b50
mov ecx, edi
call fcn.00401920
mov ecx, edi
mov ebx, eax
call fcn.00403130
mov ebp, eax
test ebx, ebx
jne 0x403338
lea edx, [ebp + 0x110]
lea ecx, [ebp + 0xc]
call fcn.00401920
push dword [esp + 0x10]
mov ebx, eax
push 0
push str.Language
mov ecx, ebx
call fcn.00402a20
lea edx, [ebx + 0xc]
mov ecx, edx
sub ecx, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x4032c3
lea eax, [ebx + 0x110]
mov ecx, ebx
push eax
push edx
call fcn.00402310
test eax, eax
jne 0x403426
call fcn.004014d0
mov esi, 0x426bd0
test eax, eax
jne 0x4032fa
mov esi, str.Error._Failed_to_save_settings_file_
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x403080
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0x10
push 0x426a98
push esi
push 0
mov dword [0x42c4cc], eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403426
mov eax, dword [0x430dd8]
mov eax, dword [eax + esi*4]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push str.Version
mov ecx, ebx
call fcn.00402460
push eax
mov ecx, ebx
call fcn.004027a0
push 0
push 0
push str.Version
mov ecx, ebp
mov esi, eax
call fcn.00402460
push eax
mov ecx, ebp
call fcn.004027a0
cmp esi, eax
je 0x403426
lea edx, [ebp + 0x110]
lea ecx, [ebp + 0xc]
call fcn.00401920
mov esi, eax
push ebx
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.00401a70
push 0
push 0
push str.Version
mov ecx, ebp
call fcn.00402460
push eax
mov ecx, ebp
call fcn.004027a0
push eax
push 0
push str.Version
mov ecx, esi
call fcn.004029c0
push 0x430b50
push edi
mov ecx, esi
call fcn.00402310
test eax, eax
jne 0x403408
call fcn.004014d0
mov esi, 0x426bd0
test eax, eax
jne 0x4033d9
mov esi, str.Error._Failed_to_save_settings_file_
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x403080
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0x10
push 0x426a98
push esi
push 0
mov dword [0x42c4cc], eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [esp + 0x10]
mov ecx, ebx
call fcn.004019e0
mov ecx, dword [ebx]
call fcn.004011d0
push 0x225
push ebx
call fcn.0040b1b3
add esp, 8
mov ebx, esi
mov eax, dword [0x430ddc]
mov ecx, 0x430dd8
inc eax
push eax
call fcn.0040a970
mov eax, dword [0x430dd8]
mov ecx, dword [0x430ddc]
pop edi
pop esi
pop ebp
mov dword [eax + ecx*4 - 4], ebx
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x4035f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x42b008]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
mov byte [esp + 0x2c], 0
mov byte [esp + 0x23], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [esp + 8], ebx
cmp ebx, 0xffffffff
je 0x4036d0
push esi
push edi
push 0
push 0
push 0x25c6dc
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x18]
push eax
push 0xa
lea eax, [esp + 0x24]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
call ebx
neg eax
push 9
sbb esi, esi
lea eax, [esp + 0x1c]
push str._hd3_.dll
push eax
and esi, 1
call fcn.00411020
add esp, 0xc
neg eax
sbb edi, edi
not edi
push 0
push 0
push 0x955b7
and edi, esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1b]
push eax
push esi
call ebx
neg eax
push esi
sbb eax, eax
xor ebx, ebx
and eax, edi
cmp byte [esp + 0x13], 0xcd
setne bl
dec ebx
and ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040acdd
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop ebx
xor ecx, esp
call fcn.0040acdd
add esp, 0x1c
ret
Function at 0x404240
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x13c
mov eax, dword [0x42b008]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, ecx
push edi
xor edi, edi
mov ebx, 0x298
push edi
call esi
push 1
mov dword [esp + 0x18], eax
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x100]
push eax
push 0x40
push 0xd
push dword [0x42c4d8]
call esi
push edi
push edi
push 0x14b
push dword [0x42c4d8]
call esi
cmp ebp, 3
je 0x404372
cmp ebp, 0x1f4
je 0x404372
cmp ebp, 5
je 0x404372
mov ebx, dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
lea eax, [esp + 0x20]
push eax
push edi
push edi
mov dword [esp + 0x98], edi
call ebx
test eax, eax
je 0x40447b
jmp 0x4042e0
mov ecx, dword [esp + 0x8c]
inc edi
lea eax, [ecx - 0x320]
cmp eax, 0xc80
ja 0x40435b
mov edx, dword [esp + 0x90]
lea eax, [edx - 0x258]
cmp eax, 0xd48
ja 0x40435b
push edx
push ecx
lea eax, [esp + 0xc8]
mov byte [esp + 0xc8], 0
push str._dx_d
push eax
call fcn.00401180
add esp, 0x10
lea eax, [esp + 0xc0]
push eax
push 0
push 0x14c
push dword [0x42c4d8]
call esi
cmp eax, 0xffffffff
jne 0x40435b
lea eax, [esp + 0xc0]
push eax
push 0
push 0x143
push dword [0x42c4d8]
call esi
lea eax, [esp + 0x20]
push eax
push edi
push 0
call ebx
test eax, eax
jne 0x4042e0
jmp 0x40447b
mov ecx, dword [esp + 0x10]
mov ebp, 3
imul edi, dword [esp + 0x14], 0x298
lea eax, [ecx - 0x298]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x18], eax
imul eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
nop
mov eax, edi
cdq
idiv ecx
cmp eax, 0x320
jge 0x4043b1
mov eax, 0x320
push ebx
push eax
lea eax, [esp + 0xc8]
mov byte [esp + 0xc8], 0
push str._dx_d
push eax
call fcn.00401180
add esp, 0x10
lea eax, [esp + 0xc0]
push eax
push 0
push 0x143
push dword [0x42c4d8]
call esi
add ebx, dword [esp + 0x18]
add edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
sub ebp, 1
jne 0x4043a0
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0xc0]
mov edi, ecx
mov byte [esp + 0xc0], 0
push edi
push ebx
push str._dx_d
push eax
call fcn.00401180
add esp, 0x10
lea eax, [esp + 0xc0]
push eax
push 0
push 0x143
push dword [0x42c4d8]
call esi
imul eax, ebx, 0x258
cdq
idiv edi
cmp eax, 0x320
jge 0x404449
mov eax, 0x320
push 0x258
push eax
lea eax, [esp + 0xc8]
push str._dx_d
push eax
call fcn.00401180
add esp, 0x10
lea eax, [esp + 0xc0]
push eax
push 0
push 0x143
push dword [0x42c4d8]
call esi
lea eax, [esp + 0x100]
push eax
push 0
push 0xc
push dword [0x42c4d8]
call esi
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040acdd
add esp, 0x13c
ret
Function at 0x404ab0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x194
mov eax, dword [0x42b008]
xor eax, esp
mov dword [esp + 0x18c], eax
mov eax, dword [0x430b40]
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x404ad8
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
push 0x40
push 1
push 0x21
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
mov dword [0x430b40], eax
cmp dword [0x430da0], esi
jle 0x404bc4
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
lea ecx, [ecx]
push 0x101
push 0x160
lea eax, [esp + 0x40]
push eax
mov eax, dword [0x430d9c]
push 0
push dword [eax + esi*4]
call ebp
mov eax, dword [esp + 0x38]
test eax, eax
je 0x404b3e
push eax
push 0xffffffffffffffff
push dword [0x430b40]
call ebx
mov eax, dword [0x430d9c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 7
mov dword [esp + 0x18], esi
mov eax, dword [eax + esi*4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x401
push dword [0x430d8c]
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call edi
inc esi
cmp esi, dword [0x430da0]
jl 0x404b10
mov eax, dword [0x430b40]
push eax
push 0
push 0x402
push dword [0x430d8c]
call edi
push 0x12
push 0
push 0x153
push dword [0x430d8c]
call edi
cmp dword [0x430da0], 0
jle 0x404c39
mov esi, dword [0x42c814]
mov ecx, esi
push 0
push 0
push str.SelectedExe
call fcn.00402460
push eax
mov ecx, esi
call fcn.004027a0
mov esi, eax
test esi, esi
js 0x404c1a
cmp esi, dword [0x430da0]
jl 0x404c1c
xor esi, esi
push 0
push esi
push 0x14e
push dword [0x430d8c]
call edi
mov dword [0x42c6fc], esi
mov eax, 1
jmp 0x404c3b
xor eax, eax
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040acdd
add esp, 0x194
ret
Function at 0x405a70
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
sub esp, 0xa8
mov eax, dword [0x42b008]
xor eax, esp
mov dword [esp + 0xa0], eax
push edi
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
push 0x42c4e0
push 0
push 4
push 0
push 0
push 0
push 0x426962
push ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
jne 0x405b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x64]
push str.Can_not_create_process__ERROR_CODE___u
push eax
call fcn.00401180
add esp, 0xc
lea eax, [esp + 0x60]
push edi
push str.Heroes_III_HD_Launcher
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x405b7d
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xa4]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040acdd
add esp, 0xa8
ret
Function at 0x405bb0
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
sub esp, 0xbc
mov eax, dword [0x42b008]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], 0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push edx
push ecx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
jne 0x405cab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x7c]
push str.Can_not_create_process__ERROR_CODE___u
push eax
call fcn.00401180
add esp, 0xc
lea eax, [esp + 0x78]
push esi
push str.Heroes_III_HD_Launcher
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x405dd3
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [esp + 0xc]
push eax
push 4
push 0xa
push 0x65c6dc
push dword [esp + 0x20]
call edi
push 0
push 0xa
and esi, eax
lea eax, [esp + 0x74]
push eax
push 0x65c6dc
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 9
and esi, eax
lea eax, [esp + 0x70]
push str.Mss32.dll
push eax
call fcn.00410e9d
add esp, 0xc
test eax, eax
je 0x405d29
push 9
lea eax, [esp + 0x70]
push str._HD3_.dll
push eax
call fcn.00410e9d
add esp, 0xc
test eax, eax
je 0x405d29
push 7
lea eax, [esp + 0x70]
push str.unknown
push eax
call fcn.00410e9d
add esp, 0xc
test eax, eax
jne 0x405da2
push 0
push 9
push str._HD3_.dll
push 0x65c6dc
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
test esi, eax
je 0x405d90
push dword [esp + 0x10]
push 0xa
push 0x65c6dc
push dword [esp + 0x20]
call edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.0040acdd
add esp, 0xbc
ret
push str.Heroes_III_HD_Launcher
push str.HD_Library_injecting_error___
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push dword [esp + 0x10]
push 0xa
push 0x65c6dc
push dword [esp + 0x20]
call edi
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
mov ecx, dword [esp + 0xbc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040acdd
add esp, 0xbc
ret
Function at 0x405df0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
mov ebp, ecx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ef5
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x208
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
test eax, eax
je 0x405eee
cmp dword [esp + 0x10], 0x238bf2
jne 0x405eee
push 0
push 0
push 0x210
push esi
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
test eax, eax
je 0x405eee
cmp dword [esp + 0x10], 0x239000
jne 0x405eee
push 0
push 0
push 0x22f
push esi
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
test eax, eax
je 0x405eee
cmp dword [esp + 0x10], 0x2396900
jne 0x405eee
push 0
push 0
push 0x237
push esi
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
test eax, eax
je 0x405eee
cmp dword [esp + 0x10], 0x2400000
jne 0x405eee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Heroes3.exe
push str._HD3_Data
push str._s_s
push 0x430930
call fcn.00401180
add esp, 0x10
mov eax, 0x430930
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x406790
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x430dd0]
push esi
test eax, eax
je 0x4068fd
mov ecx, dword [0x42c6fc]
cmp ecx, eax
jge 0x4068fd
test ecx, ecx
js 0x4068fd
mov eax, dword [0x430dcc]
cmp dword [eax + ecx*4], 0
je 0x4068fd
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xce
push dword [0x42c818]
call esi
push 0
push 0x42c810
push 0xb0
push dword [0x42c818]
mov dword [0x430a34], eax
call esi
cmp byte [0x42c4dd], 0
je 0x4068fd
push 0x42c928
push 0x4000
push 0xd
push dword [0x42c818]
call esi
test eax, eax
jle 0x4068fd
mov eax, dword [0x430dcc]
mov ecx, dword [0x42c6fc]
push edi
push 0x42c928
mov ecx, dword [eax + ecx*4]
call fcn.00401b10
mov ecx, dword [0x430dcc]
mov eax, dword [0x42c6fc]
push 1
push 0
push str.Graphics.Resolution
mov esi, dword [ecx + eax*4]
mov ecx, esi
call fcn.00402460
push eax
mov ecx, esi
call fcn.004027a0
mov ecx, dword [0x42c6fc]
mov edi, eax
mov edx, dword [0x430dcc]
push 1
push 1
push str.Graphics.Resolution
mov esi, dword [edx + ecx*4]
mov ecx, esi
call fcn.00402460
push eax
mov ecx, esi
call fcn.004027a0
lea ecx, [edi - 0x320]
cmp ecx, 0xc80
ja 0x4068a0
cmp eax, 0x258
jl 0x4068a0
cmp eax, 0xfa0
jle fcn.004068f5
mov edx, dword [ebp - 0x75]
in al, dx
Function at 0x40a350
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x534
mov eax, dword [0x42b008]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
push ebp
mov ebp, ecx
mov edx, ebp
push esi
push edi
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x40a370
sub edx, ecx
lea ebx, [edx - 1]
test ebx, ebx
js 0x40a517
lea edi, [ebp + 1]
mov ecx, 0xfffffffb
add edi, ebx
sub ecx, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
jmp 0x40a3a0
mov al, byte [edi - 1]
mov dword [esp + 0x18], ebx
cmp al, 0x3c
jne 0x40a3b6
cmp byte [ebx + ebp + 1], 0x23
je 0x40a517
cmp ebx, 4
jle 0x40a506
cmp al, 0x65
je 0x40a3cb
cmp al, 0x45
jne 0x40a506
mov al, byte [ebx + ebp - 1]
cmp al, 0x78
je 0x40a3db
cmp al, 0x58
jne 0x40a506
mov al, byte [ebx + ebp - 2]
cmp al, 0x65
je 0x40a3eb
cmp al, 0x45
jne 0x40a506
cmp byte [edi - 4], 0x2e
jne 0x40a506
lea eax, [ecx + edi]
xor edx, edx
test eax, eax
js 0x40a417
mov edi, edi
mov cl, byte [eax + ebp]
cmp cl, 0x20
je 0x40a414
cmp cl, 0x22
je 0x40a414
sub eax, 1
jns 0x40a400
jmp 0x40a417
lea edx, [eax + 1]
mov esi, ebx
lea eax, [edx + ebp]
sub esi, edx
inc esi
push esi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040de50
add esp, 0xc
cmp esi, 0x104
jae 0x40a57b
mov byte [esp + esi + 0x2c], 0
nop
mov al, byte [edi]
cmp al, 0x22
je 0x40a44a
cmp al, 0x20
jne 0x40a44d
inc edi
jmp 0x40a440
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a4bd
push 0
push 0
push 0x25c6dc
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x20]
push eax
push 0xa
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a4b6
push 9
lea eax, [esp + 0x24]
push str._HD3_.dll
push eax
call fcn.00411020
add esp, 0xc
test eax, eax
je 0x40a532
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [0x430da0], esi
jle 0x40a4fe
jmp 0x40a4d0
mov ecx, dword [0x430d9c]
mov ecx, dword [ecx + esi*4]
call fcn.00401250
push eax
lea ecx, [esp + 0x30]
call fcn.00401250
push eax
call fcn.004110d3
add esp, 8
test eax, eax
je 0x40a544
inc esi
cmp esi, dword [0x430da0]
jl 0x40a4d0
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
dec edi
dec ebx
cmp dword [esp + 0x18], 0
mov dword [esp + 0x10], edi
jg 0x40a3a0
xor eax, eax
mov ecx, dword [esp + 0x540]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040acdd
add esp, 0x534
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x2c]
call fcn.00405a70
jmp 0x40a519
mov eax, dword [0x430db4]
push edi
push dword [eax + esi*4]
lea eax, [esp + 0x138]
push str.__s___s
push eax
call fcn.0040acc0
add esp, 0x10
lea ecx, [esp + 0x2c]
call fcn.00405df0
lea edx, [esp + 0x130]
mov ecx, eax
call fcn.00405bb0
jmp 0x40a519
call fcn.0040ae0f
int3
Function at 0x417f49
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417c09