joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b040
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e704c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e7044]
sub esp, 4
test ebx, ebx
je 0x40b08b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b084
test esi, esi
je 0x40b084
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b060
mov dword [esp], 0x4e704c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b270
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b2c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b398
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b2fe
cmp eax, 4
jne 0x40b320
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b30e
cmp edx, 4
je 0x40b30e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b270

Function at 0x40b910
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b940
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40b964
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d330
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a2abc], 0
jne 0x41d404
mov byte [0x4a2abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d49e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d3fa
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a4179
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d431
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d3cb
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d3f5
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d499
Function at 0x4043e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4142f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.MainWindow.0
mov dword [esi + 8], vtable.MainWindow.1.0
lea ecx, [esi + 0xcc]
mov dword [esp + 0x14], 7
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esi + 0xb8]
push eax
mov byte [esp + 0x18], 6
call fcn.004100f0
xor ebx, ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
lea ecx, [esi + 0x88]
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov byte [esp + 0x14], 3
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 2
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], bl
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.QtGui4.dll_public_virtual:_void___thiscall_QMainWindow::destructor_void_]
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404a20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x414283
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push ecx
mov dword [esp + 0x1c], esp
mov eax, esp
push ecx
mov dword [eax], 0xffffffff
mov eax, esp
mov dword [eax], 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], esp
push eax
mov edi, ecx
call dword [sym.imp.QtCore4.dll_public:_class_QStringList___thiscall_QDir::entryList_class_QFlags_enum_QDir::Filter___class_QFlags_enum_QDir::SortFlag__]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
lea esi, [eax + ecx*4 + 0x14]
lea ebp, [eax + edx*4 + 0x14]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QDir::path_void_]
cmp esi, ebp
mov bl, 1
mov byte [esp + 0x30], 1
mov byte [esp + 0x13], bl
je 0x404b07
mov edi, dword [sym.imp.QtCore4.dll_public:_static_bool___cdecl_QFile::remove_class_QString_const__]
nop
push 0x4175e8
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004013d0
push esi
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x48], 2
call fcn.00401360
push eax
mov byte [esp + 0x4c], 3
call edi
add esp, 0x1c
test al, al
lea ecx, [esp + 0x1c]
sete bl
mov byte [esp + 0x30], 2
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
test bl, bl
je 0x404afc
mov byte [esp + 0x13], 0
add esi, 4
cmp esi, ebp
jne 0x404aa0
mov bl, byte [esp + 0x13]
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x14], 0
je 0x404b59
mov eax, dword [sym.imp.QtCore4.dll_struct_QListData::Data_QListData::shared_null]
lea ecx, [esp + 0x14]
xchg dword [ecx], eax
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
jne 0x404b59
mov ebx, eax
call fcn.00409cf0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x404b70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41475c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push ecx
mov dword [eax], 0xffffffff
mov eax, esp
mov dword [eax], 0x400
lea eax, [esp + 0x20]
mov edi, ecx
mov dword [esp + 0x2c], esp
push eax
mov ecx, ebp
call dword [sym.imp.QtCore4.dll_public:_class_QStringList___thiscall_QDir::entryList_class_QFlags_enum_QDir::Filter___class_QFlags_enum_QDir::SortFlag__]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
lea esi, [eax + ecx*4 + 0x14]
lea ecx, [eax + edx*4 + 0x14]
cmp esi, ecx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x38], 1
je 0x404ce2
mov ebx, dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QDir::absolutePath_void_]
lea ebx, [ebx]
push 0x4175ec
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::operator__char_const__const]
test al, al
je 0x404cd1
push 0x4175f0
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::operator__char_const__const]
test al, al
je 0x404cd1
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call ebx
push 0x4175e8
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x3c], 1
call fcn.004013d0
push esi
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x48], 2
call fcn.00401360
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 4
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 5
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::constructor_class_QString_const__]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov byte [esp + 0x34], 6
call fcn.00404b70
test al, al
je 0x404cae
lea ecx, [esp + 0x10]
call fcn.00404a20
test al, al
je 0x404cae
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QDir::rmdir_class_QString_const__const]
test al, al
jne 0x404cb3
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
add esi, 4
cmp esi, dword [esp + 0x24]
jne 0x404bf0
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x30], 0xffffffff
je 0x404d0a
mov ebx, dword [sym.imp.QtCore4.dll_struct_QListData::Data_QListData::shared_null]
lea eax, [esp + 0x18]
xchg dword [eax], ebx
mov ecx, ebx
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x404d0a
call fcn.00409cf0
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4
Function at 0x40c2e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41372d
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QProcess::exitCode_void_const]
test eax, eax
je 0x40c3e1
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray___thiscall_QProcess::readAllStandardError_void_]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QByteArray_const__]
lea edx, [esp + 8]
push edx
mov ecx, eax
mov byte [esp + 0x34], 1
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QVariant::toString_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
push str.Error
lea ecx, [esp + 8]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push str.SAAT_returned_the_following_message:_n
push ecx
mov byte [esp + 0x3c], 4
call fcn.004039a0
push 0
push 0
push 1
push eax
lea edx, [esp + 0x20]
push edx
push 0
mov byte [esp + 0x54], 5
call dword [sym.imp.QtGui4.dll_public:_static_int___cdecl_QMessageBox::information_class_QWidget___class_QString_const___class_QString_const___int__int__int_]
add esp, 0x24
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 4
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 4]
mov byte [esp + 0x30], 3
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
mov ecx, dword [esp + 0x28]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x40f980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4126a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 4]
mov dword [edi + 0x10], ecx
mov edx, dword [esi + 8]
mov dword [edi + 0x14], edx
mov eax, dword [esi + 0xc]
mov dword [edi + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x30]
xor ebx, ebx
push edx
mov ecx, esi
mov dword [esp + 0x5c], ebx
call dword [sym.imp.QtCore4.dll_public:_class_QModelIndex___thiscall_QModelIndex::parent_void_]
or ecx, 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x58], 2
mov ebp, dword [edi]
mov edx, dword [ebp + 0x38]
mov esi, dword [esi]
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call edx
mov edx, dword [ebp + 0x2c]
push eax
push esi
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 5
push ecx
mov ecx, edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.QtCore4.dll_protected:_void___thiscall_QAbstractItemModel::dataChanged_class_QModelIndex_const___class_QModelIndex_const__]
mov ecx, dword [esp + 0x50]
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret
Function at 0x410b40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x413d4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push 0
lea ecx, [esp + 0x30]
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QMessageBox::constructor_class_QWidget__]
fild dword [ebp + 8]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x7c], 0
jge 0x410b82
fadd dword [0x42a778]
fdiv qword [0x42a770]
sub esp, 8
lea ecx, [esp + 0x20]
fst qword [esp + 0x18]
fstp qword [esp]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_double_]
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
mov byte [esp + 0x80], 1
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QVariant::toString_void_]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 2
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QMessageBox::setText_class_QString_const__]
lea ecx, [esp + 0xc]
mov byte [esp + 0x7c], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
fld qword [esp + 0x10]
fstp dword [esp + 0x10]
push ecx
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0040a570
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7c], 0xffffffff
call dword [sym.imp.QtGui4.dll_public_virtual:_void___thiscall_QMessageBox::destructor_void_]
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4124f0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
lea ecx, [esp + 4]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::constructor_void_]
mov eax, dword [sym.imp.QtCore4.dll_enum_QSysInfo::WinVersion_const_QSysInfo::WindowsVersion]
test byte [eax], 0xf
jne 0x41254c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0xc]
push ecx
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromUtf16_unsigned_short_int_const___int_]
add esp, 0xc
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray___thiscall_QString::toLocal8Bit_void_]
push eax
lea ecx, [esp + 8]
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray_const__]
lea ecx, [esp + 0xc]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
jmp 0x41255d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 8]
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray____thiscall_QByteArray::operator_char_const__]
push 0x30
mov dword [esp + 0xc], 0
call dword [sym.imp.QtCore4.dll_void____cdecl_qMalloc_unsigned_int_]
mov dword [esp + 4], eax
mov dword [eax], 1
mov ecx, dword [esp + 4]
mov eax, 8
mov dword [ecx + 8], eax
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
mov eax, dword [esp + 4]
or dword [eax + 0xc], 1
mov eax, dword [esp + 4]
push 0x20
add eax, 0x10
push 0
push eax
call dword [sym.imp.QtCore4.dll_void____cdecl_qMemSet_void___int__unsigned_int_]
mov eax, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.QtCore4.dll_public:_char____thiscall_QByteArray::data_void_]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call sub.QtCore4.dll_void___cdecl_qWinMain_struct_HINSTANCE_____struct_HINSTANCE_____char___int__int___class_QVector_char____
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 0x18
cmp ecx, 1
je 0x4125f1
mov eax, dword [esp]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
lea ecx, [esp + 8]
call fcn.00412440
mov eax, dword [esp]
mov ecx, dword [esp + 8]
push esi
add eax, 0x10
push eax
push ecx
call fcn.004038f0
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x412627
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x412627
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
lea ecx, [esp + 8]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov eax, esi
pop esi
add esp, 0x14
ret 0x10
Function at 0x10001c12
Capabilities:
Read .ini file

Disassembly:
push esi
sub esp, 0x18
mov byte [0x7bf728], 0
push str.._settings.ini
push 0
push 0x10004119
push str.Windowed
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
and esi, 0xff
je 0x10001c8a
lea eax, [esp + 8]
mov dword [eax], 1
push 4
push eax
push 0x4586f2
call fcn.100016b0
add esp, 0xc
cmp esi, 2
jne 0x10001c8a
lea eax, [esp + 3]
mov byte [eax], 0xe9
push 1
push eax
push 0x45728f
call fcn.100016b0
add esp, 0xc
test al, al
je 0x10001c8a
push 0x1000194b
push 0x45728f
call fcn.10001741
add esp, 8
push str.._settings.ini
push 0
push str.Enable
push str.PostProcessFX
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10001d19
mov byte [0x830a0c], 1
push str.._settings.ini
push 0
push str.Bloom
push str.PostProcessFX
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jle 0x10001d19
cvtsi2ss xmm0, eax
minss xmm0, dword [0x10004004]
movss dword [esp + 4], xmm0
lea eax, [esp + 0x12]
mov byte [eax], 0xba
mov dword [eax + 1], 0
mov byte [eax + 5], 0x90
push 6
push eax
push 0x6523e0
call fcn.100016b0
add esp, 0xc
lea eax, [esp + 0xc]
movss xmm0, dword [esp + 4]
movss dword [eax], xmm0
push 4
push eax
push 0x6523e1
call fcn.100016b0
add esp, 0xc
push str.._settings.ini
push 0
push str.DebugMenu
push 0x100040ea
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10001d40
xor eax, eax
mov byte [0x7c1c54], al
mov byte [0x7c1c55], al
add esp, 0x18
pop esi
ret

Function at 0x10001e11
Capabilities:
Set current directory

Disassembly:
push esi
sub esp, 0x104
cmp dword [esp + 0x110], 1
jne 0x10001e99
mov esi, dword [esp + 0x10c]
call fcn.100017a6
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400128], 0x455cad51
jne 0x10001ea6
mov esi, esp
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10001e76
mov cl, byte [esp]
cmp cl, 0x5c
cmove eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x10001e58
test eax, eax
je 0x10001e76
mov byte [eax], 0
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.10001ec0
mov dword [0x10005310], eax
call fcn.1000195a
call fcn.10001c12
call fcn.10001d45
call fcn.10001808
call fcn.10001838
xor eax, eax
inc eax
add esp, 0x104
pop esi
ret 0xc
push 0x10
push str.GangstaPatch
push str.Youre_using_wrong_game_version__only_v1.00.2_is_usable__nVisit_abandonware_site_for_download_or_find_alternative_way_to_obtain_this_version.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
inc ecx
int 0x29
int3
Function at 0x10001ec0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [0x10005328]
test eax, eax
jne 0x10001f26
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10001f21
mov dword [esp], 0x54535253
mov dword [esp + 0xb], 0x6b6f6f
mov dword [esp + 8], 0x6f486e69
mov dword [esp + 4], 0x4d594957
mov byte [esp], 0x56
xor ecx, ecx
inc ecx
mov dl, byte [ecx + 0x1000404b]
xor byte [esp + ecx], dl
inc ecx
cmp ecx, 0xe
jne 0x10001f01
mov ecx, esp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10005328], eax
jmp 0x10001f26
mov eax, dword [0x10005328]
add esp, 0x10
ret
Function at 0x100025e8
Capabilities:
Resume thread

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [ecx]
test eax, eax
je 0x1000263c
mov esi, ecx
cmp dword [ecx + 8], 0
je 0x1000262d
xor ebx, ebx
inc ebx
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
push dword [eax + ebx*4 - 4]
push 0
push 0x5a
call ebp
test eax, eax
je 0x10002621
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [esi + 8]
jae 0x1000262b
mov eax, dword [esi]
inc ebx
jmp 0x10002603
mov eax, dword [esi]
push eax
push 0
push dword [0x10005324]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebx
pop ebp
ret