joyce8/EMBER2024-capa huggingface dataset:
Function at 0x626ae4
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x1003e5bc]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x1003a3fc
push esi
call fcn.00631174
mov ebx, eax
add esp, 8
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x626b49
push esi
push 0x1003a400
call fcn.00630fd4
add eax, 0x40
push eax
call fcn.0063143f
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0062fc5c
mov esp, ebp
pop ebp
ret
push ebx
push 0x400
lea eax, [esp + 0x80]
mov dword [esp + 0x1c], 0
push 1
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.00631393
add esp, 0x10
test eax, eax
je 0x626bbf
push eax
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x14]
call fcn.006261c4
push ebx
push 0x400
lea eax, [esp + 0x84]
push 1
push eax
call fcn.00631393
add esp, 0x14
test eax, eax
jne 0x626b95
lea ecx, [esp + 0x10]
call fcn.00626284
push 0x21
call fcn.006309b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x626c05
push 0x1003a414
call fcn.00630fd4
add eax, 0x40
push eax
call fcn.0063143f
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0062fc5c
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
xor esi, esi
movdqu xmmword [ebx], xmm0
mov edi, ebx
movdqu xmmword [ebx + 0x10], xmm0
mov byte [ebx + 0x20], 0
movzx eax, byte [esp + esi + 0x68]
push eax
push 0x1003a424
push edi
call fcn.006308d8
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x626c19
push dword [esp + 0xc]
call fcn.006315bd
mov ecx, dword [esp + 0x480]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0062fc5c
mov esp, ebp
pop ebp
ret
Function at 0x40ca78
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c8e0
mov eax, dword [0x481618]
cmp byte [eax], 0
je 0x40caf4
mov eax, dword [0x4813c8]
call fcn.0040325c
call fcn.00402c14
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409a80
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cb3c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cb2a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x481364]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x482664]
call fcn.00405e14
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d398
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d46e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ac8
lea eax, [ebp - 8]
call fcn.00404f40
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ef0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d458
mov eax, ebx
call fcn.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d451
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ef0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d43b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d480
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d43b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d458
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d475
lea eax, [ebp - 8]
call fcn.00404a30
ret

Function at 0x40dac4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40db28
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404ca0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004091c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db2f
lea eax, [ebp - 0xc]
call fcn.00404a30
ret
Function at 0x41fae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x482884
cmp dword [edi], 0
jne 0x41fb5c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x482880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4804bc
mov ecx, 2
call fcn.00402cb4
mov edx, 0x41fab8
lea eax, [esi + 5]
call fcn.0041fad8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fad8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fb31
mov dword [0x482880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421148
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42114e
ret

Function at 0x4237cc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42381d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423804
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4237f4
jmp 0x42381d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x423805
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462cf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov byte [ebp - 5], 0
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov dword [esi], eax
mov eax, ebx
call fcn.00404ef0
push eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
push eax
push 0
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x462d63
push ebx
push 0
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x462d63
push ebx
push 0
call sub.kernel32.dll_SizeofResource
mov dword [esi], eax
cmp dword [esi], 0
je 0x462d63
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [edi], eax
cmp dword [edi], 0
setne byte [ebp - 5]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x463ba0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.00404ef0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x463c3e
mov eax, dword [ebp - 0xc]
call fcn.00402a88
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x463c37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404ef0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x463c21
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x463c48
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x463c21
mov eax, dword [ebp - 0x10]
mov ax, word [eax]
mov word [ebp - 2], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463c3e
mov eax, dword [ebp - 8]
call fcn.00402ab8
ret
mov ax, word [ebp - 2]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471838
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x471868
cmp dword [esp + 4], 6
jb 0x471868
call fcn.00431c2c
call fcn.00431d0c
test al, al
je 0x471868
mov al, 1
jmp 0x47186a
xor eax, eax
add esp, 0x94
ret
Function at 0x47ac30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ad85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47acc6
xor eax, eax
push ebp
push 0x47acbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x47aca0
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00404c28
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x10]
call fcn.00409a80
inc eax
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x47ac7e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47acc6
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsA
ret
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x47ad67
inc esi
xor ebx, ebx
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
call fcn.00404cf0
test eax, eax
jle 0x47ad5f
mov eax, dword [ebp - 8]
call fcn.00404ef0
mov edi, eax
push edi
push edi
call sub.user32.dll_OemToCharA
lea edx, [ebp - 8]
mov ecx, 1
mov eax, 0x47ad9c
call fcn.00404fd8
mov edx, dword [ebp - 8]
mov eax, 0x47ada8
call fcn.00405034
test eax, eax
jne 0x47ad43
mov eax, dword [ebp - 8]
call fcn.00404cf0
mov ecx, eax
inc ecx
lea edx, [ebp - 8]
mov eax, 0x47ad9c
call fcn.00404fd8
jmp 0x47ad52
lea edx, [ebp - 8]
mov ecx, eax
mov eax, 0x47ad9c
call fcn.00404fd8
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x20]
inc ebx
dec esi
jne 0x47acdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ad8c
lea eax, [ebp - 0x14]
call fcn.00404a30
lea eax, [ebp - 8]
call fcn.00404a30
ret
Function at 0x10001fea
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x10002039
mov esi, ecx
mov edi, dword [esp + 0x1c]
mov ebp, esp
push 0
push ebp
push edi
push dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
test eax, eax
setne bl
mov edx, dword [ebp]
cmp edx, edi
sete al
and al, bl
test ecx, ecx
je 0x1000203b
cmp edx, edi
jne 0x1000203b
cmp byte [esp + 0x20], 0
je 0x1000203b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
jmp 0x1000203b
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x1000236e
Capabilities:
Read .ini file

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [esp + 0x14]
mov word [ecx + 4], 0
xor ecx, ecx
mov edi, str.Walk
mov eax, 0x6dc190
push ecx
push edi
call eax
add esp, 8
mov dword [esi], eax
mov eax, 0x42c1a0
mov ecx, ebx
call eax
mov edx, str.._settings.ini
mov ecx, 0x200
mov ebx, 0x7fcbc8
mov eax, str.Bind
push edx
push ecx
push ebx
push 0x10007475
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
sub esp, 0x28
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x10007130]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov edi, 0x733458
mov dword [esp], edi
mov dword [esp + 0x24], 1
mov eax, 0x42c8b0
mov ecx, dword [esp + 0x3c]
call eax
mov ebp, str.WallCover
mov eax, str.._settings.ini
push eax
mov eax, 0x200
push eax
push ebx
push 0x100075fd
push ebp
mov eax, str.Bind
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x42d8e0
push ebx
push edi
call eax
add esp, 8
mov ebx, eax
xor eax, eax
push eax
push ebp
mov eax, 0x6dc190
call eax
add esp, 8
mov edx, 0x42c500
mov ecx, dword [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x2c]
movzx eax, al
mov eax, dword [edx + eax*4]
mov byte [eax + 0x2c], bl
mov eax, 0x42c1f0
call eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1000520c
Capabilities:
Read .ini file

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov byte [0x7bf728], 0
mov esi, str.._settings.ini
push esi
push dword [0x100090c4]
push str.EmissionRate
push str.ParticleEmitter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x100090c4], eax
push esi
push 0x200
push 0x7fcbc8
push 0
push str.LanguageID
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [0x7fcbc8]
test al, al
je 0x10005276
lea ecx, [esp + 2]
mov byte [ecx], al
push 1
push ecx
push 0x6deaae
call fcn.10004218
add esp, 0xc
push str.._settings.ini
push 0
push str.Mode
push str.Windowed
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x1000531c
mov esi, eax
lea eax, [esp + 4]
mov dword [eax], 1
push 4
push eax
push 0x4586f2
call fcn.10004218
add esp, 0xc
cmp esi, 2
jne 0x100052cd
push 0x10003b98
push 0x45728f
push 0xe9
call fcn.10004311
add esp, 0xc
lea esi, [esp + 3]
mov byte [esi], 0xbd
xor edi, edi
inc edi
push edi
push esi
push 0x6546f1
call fcn.10004218
add esp, 0xc
mov byte [esi], 0x9d
push edi
push esi
push 0x6546f7
call fcn.10004218
add esp, 0xc
mov bl, 1
mov byte [esi], bl
push edi
push esi
push 0x65495a
call fcn.10004218
add esp, 0xc
mov byte [esi], bl
push edi
push esi
push 0x654abc
call fcn.10004218
add esp, 0xc
push str.._settings.ini
push 0
push str.DebugMenu
push 0x100072f9
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10005343
xor eax, eax
mov byte [0x7c1c54], al
mov byte [0x7c1c55], al
add esp, 8
pop esi
pop edi
pop ebx
ret
Function at 0x1000534a
Capabilities:
Read .ini file

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword fs:[0x30]
and byte [eax + 0x68], 0x8f
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x100053be
mov esi, eax
xor ecx, ecx
dec ecx
mov edx, 4
mul edx
mov edi, eax
cmovo edi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x100053ae
xor eax, eax
mov ecx, dword [edi + eax*4]
and dword [ecx + 0x40], 0xbfffff9f
mov dword [ecx + 0x44], 0
inc eax
cmp esi, eax
jne 0x10005398
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push str.._settings.ini
push 1
push str.TapePlayerAuto
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x100053ee
mov eax, esp
mov byte [eax], 0
push 1
push eax
push 0x43274f
call fcn.10004218
add esp, 0xc
push str.._settings.ini
push 2
push str.Captions
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jg 0x1000542c
mov esi, eax
mov eax, esp
mov word [eax], 0x35eb
push 2
push eax
push 0x4bd08a
call fcn.10004218
add esp, 0xc
test esi, esi
setne byte [0x81d844]
mov esi, str.._settings.ini
mov edi, str.Scarface
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push dword [0x100090a8]
push str.RefreshRate
push edi
call ebx
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x100090a8], ecx
xor ebp, ebp
inc ebp
push esi
push ebp
push str.VSync
push edi
call ebx
test eax, eax
mov eax, 0x80000000
cmovne eax, ebp
mov dword [0x100090ac], eax
mov esi, esp
mov dword [esi], 0x100090c8
mov edi, 4
push edi
push esi
push 0x70791b
call fcn.10004218
add esp, 0xc
mov dword [esi], 0x100091c0
push edi
push esi
push 0x657346
call fcn.10004218
add esp, 0xc
mov dword [esi], 0x10009708
push edi
push esi
push 0x708899
call fcn.10004218
add esp, 0xc
mov edi, 0x6ddb15
push 7
push edi
call fcn.1000425e
add esp, 8
mov word [esi], 0x6a
push 2
push esi
push edi
call fcn.10004218
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100054f5
Capabilities:
Set current directory

Disassembly:
push esi
sub esp, 0x104
cmp dword [esp + 0x110], 1
jne 0x10005671
mov esi, dword [esp + 0x10c]
call fcn.10004ce5
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400128], 0x455cad51
jne 0x1000567e
mov esi, esp
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10005562
mov cl, byte [esp]
cmp cl, 0x5c
cmove eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x10005544
test eax, eax
je 0x10005562
mov byte [eax], 0
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
test eax, eax
je 0x10005587
push str.wine_get_version
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10005587
call eax
mov esi, eax
mov dword [0x10009ec8], esi
mov ecx, 0x100090a4
push str.GangstaPatch.log
call fcn.10001fa8
call fcn.10005698
mov dword [0x10009f14], eax
call fcn.10004204
mov esi, 0xe8
push 0x100054e0
push 0x702bac
push esi
call fcn.10004311
add esp, 0xc
call fcn.10005713
call fcn.10004ddc
call fcn.1000520c
call fcn.1000534a
push 0x10001f87
push 0x401167
push esi
call fcn.10004311
add esp, 0xc
call fcn.100034c3
mov ecx, 0x100090a4
push str.INFO
call fcn.10002046
mov ecx, 0x100090a4
push 1
push 0x57
push str.GangstaPatch_has_been_successfully_initialized.__Build_Date:_Tue_Sep__3_23:03:58_2024__n
call fcn.10001fea
cmp dword [0x10009ec8], 0
je 0x10005671
mov ecx, 0x100090a4
push str.INFO
call fcn.10002046
mov ecx, 0x100090a4
push 0
push 0x27
push str.Running_under_Linux_with_Wine_version:
call fcn.10001fea
xor edx, edx
dec edx
mov eax, dword [0x10009ec8]
cmp byte [eax + edx + 1], 0
lea edx, [edx + 1]
jne 0x10005644
mov ecx, 0x100090a4
push 0
push edx
push eax
call fcn.10001fea
mov eax, esp
mov byte [eax], 0xa
xor edx, edx
inc edx
mov ecx, 0x100090a4
push edx
push edx
push eax
call fcn.10001fea
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 0x10005698
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10009f40]
test eax, eax
jne 0x1000570f
lea eax, [esp + 0x10]
mov byte [eax + 8], 0
mov dword [eax + 4], 0x32336c65
mov dword [eax], 0x6e72656b
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000570a
mov dword [esp], 0x676e6147
mov dword [esp + 0xb], 0x6b6f6f
mov dword [esp + 8], 0x6f486e69
mov dword [esp + 4], 0x4d617473
mov byte [esp], 0x56
xor ecx, ecx
inc ecx
mov dl, byte [ecx + 0x10007201]
xor byte [esp + ecx], dl
inc ecx
cmp ecx, 0xe
jne 0x100056ea
mov ecx, esp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10009f40], eax
jmp 0x1000570f
mov eax, dword [0x10009f40]
add esp, 0x1c
ret
Function at 0x40c5b3
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x418e2c
call fcn.00412454
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41a654
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41a708
push 4
mov ebx, 0x41a644
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.0040338f
mov dword [esi + 0x3c], 0x41a798
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.0040338f
mov dword [edi], 0x41a7a0
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b1f6
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040bc33
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b1f6
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040bc33
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b1f6
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040bc33
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b1f6
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040bc33
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040bc33
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x410350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040f406
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040f3bb
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040f3f6
mov byte [edx + 0x54], bh
cmp dword [eax + 4], ebp
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x411d60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.0041300f
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.00411d30
pop esi
ret 4