joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405158
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x40519e
sub ebx, 0x429750
mov ax, word [ebx + edi*2 + 0x429750]
mov ecx, esi
xor ax, word [edi*2 + 0x429750]
movzx eax, ax
push eax
call fcn.00401b9c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x40517c
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x405c3d
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [esp + 0x28]
call fcn.004018de
push 0x10
pop edi
cmp dword [esp + 0x3c], edi
lea edx, [esp + 0x28]
push dword [esi + 0x10]
cmovae edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
xor ebp, ebp
mov dword [esp + 0x4c], 0x67452301
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], 0xefcdab89
mov dword [esp + 0x54], 0x98badcfe
mov dword [esp + 0x58], 0x10325476
call fcn.00407e6f
lea ecx, [esp + 0x40]
call fcn.00407efb
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebp
lea esi, [esp + 0x98]
mov word [esp + 0x10], ax
movzx eax, byte [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00401b9c
inc esi
dec edi
jne 0x405cbd
push dword [esp + 0x20]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.0040198d
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.00402572
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.00401e61
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x9c
ret
Function at 0x408b15
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x408b5b
sub ebx, 0x429a10
mov ax, word [ebx + edi*2 + 0x429a10]
mov ecx, esi
xor ax, word [edi*2 + 0x429a10]
movzx eax, ax
push eax
call fcn.00401b9c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x408b39
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x408b63
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x408ba9
sub ebx, 0x429990
mov ax, word [ebx + edi*2 + 0x429990]
mov ecx, esi
xor ax, word [edi*2 + 0x429990]
movzx eax, ax
push eax
call fcn.00401b9c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x408b87
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x409f52
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
lea eax, [ebp - 0x2b0]
push ebx
push esi
push edi
push 0x208
push eax
mov bh, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40a076
and dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
cmp word [ebp - 0x2b0], ax
je 0x409fa1
lea eax, [ebp - 0x2b0]
push eax
call fcn.0040ed9b
pop ecx
push eax
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402853
push 0xc
mov edx, 0x495cc0
lea ecx, [ebp - 0xa8]
call fcn.00408b15
push 0xd
mov edx, str.F_
lea ecx, [ebp - 0x90]
call fcn.00408b15
push 0xb
mov edx, 0x495d50
lea ecx, [ebp - 0x78]
call fcn.00408b15
push 0xc
mov edx, str.F8
lea ecx, [ebp - 0x60]
call fcn.00408b15
xor esi, esi
lea edi, [ebp - 0xa8]
push 0x4295ec
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00407bce
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00401ef0
push eax
lea ecx, [ebp - 0x30]
call fcn.00401b33
lea ecx, [ebp - 0x30]
call fcn.004097de
push 0
push 1
lea ecx, [ebp - 0x30]
mov bl, al
call fcn.00402572
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00402572
test bl, bl
jne 0x40a051
inc esi
add edi, 0x18
cmp esi, 4
jl 0x409ffb
jmp 0x40a053
xor bh, bh
push 3
lea esi, [ebp - 0x48]
pop edi
push 0
sub esi, 0x18
push 1
mov ecx, esi
call fcn.00402572
dec edi
jns 0x40a059
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.00402572
pop edi
pop esi
mov al, bh
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ba54
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x40ba5f
xor eax, eax
jmp 0x40bb37
push ebx
push esi
mov esi, dword [esp + 0xc]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40bb18
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ab70]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ab70]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ab70]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ab70]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ab70]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ab70]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ab70]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ab70]
dec edi
jne 0x40ba7b
pop edi
test esi, esi
je 0x40bb31
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ab70]
inc edx
dec esi
jne 0x40bb1c
not ecx
pop esi
mov eax, ecx
pop ebx
ret 4

Function at 0x40bb3a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x42ab70]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x42ab70]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x40ca4e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
jne 0x40ca63
push 0xffffffffffffff9a
pop eax
jmp 0x40cb8c
push ebp
xor ebp, ebp
cmp dword [edi + 0x18], ebp
jne 0x40ca6f
push 0xffffffffffffff9a
jmp 0x40ca94
cmp dword [edi + 0x7c], ebp
je 0x40ca79
call fcn.0040cdc2
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
call fcn.0040c8af
test eax, eax
je 0x40ca9a
push 0xffffffffffffff99
pop eax
jmp 0x40cb8b
push esi
push 0x7e
call fcn.0040ff17
mov esi, eax
pop ecx
test esi, esi
je 0x40cac4
push 0x4000
call fcn.0040ff17
mov dword [esi], eax
mov dword [esi + 0x4c], ebp
pop ecx
test eax, eax
jne 0x40cacc
push esi
call fcn.0040ecd4
pop ecx
push 0xffffffffffffff98
pop eax
jmp 0x40cb8a
mov dword [esi + 0x40], ebp
xor ecx, ecx
cmp dword [edi + 0x34], ebp
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
sete cl
mov dword [esi + 0x50], ebp
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], ebp
test ecx, ecx
jne 0x40cb14
lea ecx, [esi + 4]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call fcn.0040bd10
test eax, eax
jne 0x40cb14
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40cb37
mov al, byte [edi + 0x39]
jmp 0x40cb3a
mov al, byte [edi + 0x3f]
mov byte [esi + 0x7d], al
xor eax, eax
cmp byte [esi + 0x6c], al
push 0xc
pop ecx
cmovne eax, ecx
mov dword [esi + 0x79], eax
mov dword [esi + 0x6d], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
test ebx, ebx
je 0x40cb75
mov dl, byte [ebx]
test dl, dl
je 0x40cb75
lea ecx, [esi + 0x6d]
call fcn.0040bb3a
inc ebx
jne 0x40cb64
mov eax, dword [esp + 0x10]
add eax, 0x1e
add eax, dword [edi + 0x78]
and dword [esi + 8], ebp
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x7c], esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
Function at 0x41f37b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041218c
mov dword [ebp - 0x14], eax
cmp dword [0x49753c], esi
jne 0x41f46e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41f3fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41f54e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41f54e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f54e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x49753c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x497540], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x497544], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x49754c], eax
test eax, eax
je 0x41f46b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x497548], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41f493
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41f486
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41f4a8
push 4
pop eax
jmp 0x41f550
cmp dword [ebp - 0x14], esi
je 0x41f4a8
push dword [0x49753c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41f48d
mov eax, dword [0x497548]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41f506
cmp dword [0x49754c], edi
je 0x41f506
push eax
call ebx
push dword [0x49754c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41f506
test eax, eax
je 0x41f506
call ecx
test eax, eax
je 0x41f4fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41f4fb
test byte [ebp - 8], 1
jne 0x41f506
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41f536
mov eax, dword [0x497540]
cmp eax, edi
je 0x41f533
push eax
call ebx
test eax, eax
je 0x41f533
call eax
mov esi, eax
test esi, esi
je 0x41f533
mov eax, dword [0x497544]
cmp eax, edi
je 0x41f533
push eax
call ebx
test eax, eax
je 0x41f533
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x49753c]
call ebx
test eax, eax
je 0x41f54e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41f550
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041066d
mov esp, ebp
pop ebp
ret
Function at 0x4011f3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov ebx, 0x1f4
push eax
push ebx
push 2
push 0
push 0
push 0x10
mov esi, ecx
call fcn.00401a44
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push eax
call edi
push 0x7d0
mov ecx, esi
call fcn.004011c3
mov ecx, esi
call fcn.0040117b
test al, al
je 0x40125c
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0xf060
push 0x112
call fcn.00401a44
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c3
mov ecx, esi
call fcn.0040117b
test al, al
je 0x40128a
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 0x12
call fcn.00401a44
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c3
mov ecx, esi
call fcn.0040117b
test al, al
je 0x4012b8
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 2
call fcn.00401a44
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c3
mov esi, dword [esi + 0x10]
test esi, esi
je 0x4012c8
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401b65
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0
and dword [ebx + 4], 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x401be1
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x401bc2
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp + 8]
je 0x401bc8
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401ba0
jmp 0x401bd6
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.004025f4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x401be3
xor al, al
pop edi
pop ebx
leave
ret
Function at 0x401c15
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
call fcn.00402687
and dword [esi + 0x130], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [esi + 0x134]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.00401d44
mov ecx, esi
call fcn.0040249b
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00401d2a
mov ebx, 0x42c460
push ebx
push edi
call fcn.0041bca0
add esp, 0x10
jmp 0x401c87
push ebx
push edi
call fcn.0041bca0
inc eax
push eax
push edi
call fcn.0041c440
push ebx
push edi
call fcn.0041bca0
add esp, 0x18
test eax, eax
jne 0x401c6e
mov ebx, 0x42c45c
push ebx
push edi
call fcn.0041bca0
pop ecx
pop ecx
jmp 0x401cb4
push ebx
push edi
call fcn.0041bca0
inc eax
push eax
push edi
call fcn.0041c440
push ebx
push edi
call fcn.0041bca0
add esp, 0x18
test eax, eax
jne 0x401c9b
push edi
call fcn.0041c3c0
lea eax, [eax + esi + 0x21]
mov dword [esp], 0x42c458
push eax
call fcn.0041c440
pop ecx
lea eax, [esp + 0x10]
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401cf1
push str.RAW_001.exe
push edi
call fcn.0041c440
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push edi
mov ecx, esi
call fcn.004026a2
lea eax, [esi + 0x128]
mov ecx, esi
push eax
call fcn.0040269e
push eax
push esi
push str.ReflexiveArcadeRAW_002.wdt
mov ecx, esi
call fcn.00401091
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x40204b
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
mov edi, ecx
call fcn.0041c580
push dword [edi + 0x130]
lea eax, [ebp - 0xc4c]
mov dword [ebp - 0x4c], esi
push dword [ebp + 8]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [edi + 0x134]
push eax
push ebx
push 4
push ebx
push ebx
lea eax, [ebp - 0xc4c]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, edi
call fcn.004025a9
test al, al
jne 0x402192
mov esi, dword [ebp + 0xc]
cmp dword [esi], ebx
je 0x402192
push dword [edi + 0x18]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x402192
push dword [edi + 0x128]
lea ecx, [ebp - 0x44c]
call fcn.00411795
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402136
cmp dword [esi], ebx
mov dword [ebp + 0xc], ebx
jbe 0x402143
lea ecx, [ebp - 0x44c]
call fcn.0040114f
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xc]
add ecx, edx
sub byte [ecx], al
inc edx
cmp edx, dword [esi]
mov dword [ebp + 0xc], edx
jb 0x402117
jmp 0x402143
push str.Could_not_Read_encrypted_EXE.
push ebx
call fcn.00411727
pop ecx
pop ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [0x4352cc], ebx
je 0x402189
mov ecx, edi
call fcn.0040222f
push str.The_integration_header_was_not_valid._The_process_memory_was_mapped_incorrectly.
push dword [edi + 0x18]
call fcn.004021a2
pop ecx
push eax
call fcn.00411727
push dword [edi + 0x18]
call fcn.00401f30
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402211
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x40221f
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x402220
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x40222e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x40222f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edi, [ebx + 8]
mov eax, dword [edi]
test eax, eax
je 0x402252
push eax
call esi
and dword [edi], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x402260
push eax
call esi
and dword [ebx + 0xc], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405594
mov ecx, eax
call fcn.0040561c
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
push dword [ebp - 4]
call esi
push 2
push 0
push 2
push edi
mov ecx, ebx
call fcn.00414adf
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 8]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x4022d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push str.GameWrapper:_Duplicate_Pause_Event_failed__last_error__x_n
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
push 0
lea eax, [ebx + 0xc]
push 2
push eax
mov ecx, ebx
call fcn.00414adf
push eax
push dword [ebp - 4]
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40231c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push str.GameWrapper:_Duplicate_Timeout_Event_failed__last_error__x_n
push eax
call fcn.0041c5d8
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x4023c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
push 0x100
mov dword [ebp + 8], edi
push dword [ebx + 0x2c]
call fcn.00401000
push eax
push edi
call fcn.00401ed3
add esp, 0x10
test eax, eax
jne 0x4023f5
xor al, al
jmp 0x402496
movzx ecx, word [esi + 0x14]
mov edi, eax
sub edi, dword [ebp + 8]
and dword [ebp + 8], 0
lea edx, [ecx + esi + 0x18]
movzx ecx, word [esi + 6]
test ecx, ecx
mov dword [ebp - 4], ecx
jle 0x40242f
mov ecx, dword [edx + 0x14]
cmp edi, ecx
jb 0x402421
mov esi, dword [edx + 0x10]
add esi, ecx
cmp edi, esi
jb 0x40242f
add edx, 0x28
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jl 0x402411
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 0x14]
mov edx, dword [ebx + 0xc]
add ecx, dword [edx + 0x34]
add ecx, edi
mov dword [0x4352c8], ecx
cmp dword [eax + 0x100], 0x100
jne 0x402470
cmp byte [eax + 0x105], 0
jne 0x402470
add ecx, 0x100
mov dword [0x4352d0], 0xc
mov dword [0x4352cc], ecx
jmp 0x402494
add ecx, 0x104
push 0x18
mov dword [0x4352cc], ecx
mov eax, dword [eax + 0x100]
pop ecx
mov dword [0x4352d0], eax
cmp eax, ecx
jb 0x402494
mov dword [0x4352d0], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4024c8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
and byte [ebp - 1], 0
push ebx
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x4025a0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
mov esi, 0x128
push eax
push ebx
mov dword [ebp - 0x130], esi
call sub.KERNEL32.dll_Process32First
jmp 0x40252f
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x128], eax
je 0x402535
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402511
jmp 0x40253b
mov edi, dword [ebp - 0x118]
mov eax, dword [ebp + 8]
test eax, eax
je 0x402544
mov dword [eax], edi
cmp edi, 0xffffffff
je 0x402598
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32First
jmp 0x402579
cmp dword [ebp - 0x128], edi
je 0x40257f
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40255e
jmp 0x402598
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call fcn.0041c630
add esp, 0xc
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0xc

Function at 0x4026a2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
cmp dword [ecx + 4], ebx
mov dword [ebp - 0xc], ecx
jne 0x40278d
push esi
push edi
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 3
push ebx
mov edi, 0x80000000
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
setne al
push str.Game_files_are_corrupt__please_re_install_game_and_try_again.
push eax
call fcn.00411727
pop ecx
pop ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [str.ReflexiveArcadeBackground.jpg], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x42c5e0
je 0x40277d
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push edi
push dword [eax]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402747
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x10]
add dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402772
cmp byte [ebp + 0xc], bl
jne 0x402772
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x110]
push str.file__s_missing_
push eax
call fcn.0041c5d8
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.00411727
add esp, 0x14
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jne 0x402716
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax + 4], ecx
mov al, 1
pop ebx
leave
ret 8
Function at 0x402794
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 0x10]
push ebx
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
push str.Could_not_get_file_size
mov dword [esi], eax
setne al
push eax
call fcn.00411727
push dword [esi]
call fcn.0041c055
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
push ebx
push ecx
push dword [esi]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402805
mov eax, dword [esi]
cmp eax, dword [ebp + 8]
jne 0x402805
mov bl, 1
push str.There_was_an_error_in_reading_the_file_contents_into_memory.
push ebx
call fcn.00411727
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret