joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d420
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48d4d1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x48d495
lea eax, [ebp - 4]
push eax
push esi
call ebx
add esp, 8
mov esi, eax
test esi, esi
je 0x48d4d1
push 0x218
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], 0
mov dword [eax + 0x210], 0
mov dword [eax + 0x214], 0
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48d4e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
test esi, esi
je 0x48d577
cmp dword [esi + 0x214], 1
push ebx
push edi
mov edi, dword [esi]
jne 0x48d551
mov eax, dword [esi + 0x210]
lea ebx, [esi + 4]
test eax, eax
je 0x48d514
push ebx
push edi
call eax
add esp, 8
mov edi, eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x48d551
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x48d56d
push edi
push 0
call eax
push eax
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call eax
push eax
call ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48d710
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
lea eax, [esi + 0x14]
mov dword [ebp - 4], eax
je 0x48d72c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.mfplat.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x48d752
or eax, 0xffffffff
mov dword [0x505218], eax
jmp 0x48d808
push str.MFShutdown
push edi
call ebx
push str.MFCreateAsyncResult
push edi
mov dword [esi + 0x18], eax
call ebx
push str.MFStartup
push edi
mov dword [esi + 0x1c], eax
call ebx
push str.MFInvokeCallback
push edi
mov dword [esi + 0x20], eax
call ebx
push str.MFCreateAttributes
push edi
mov dword [esi + 0x24], eax
call ebx
push str.MFCreateMFByteStreamOnStream
push edi
mov dword [esi + 0x28], eax
call ebx
push str.mf.dll
mov dword [0x4f7f50], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x48d7bd
mov eax, dword [0x505218]
mov ecx, 0x62
test eax, eax
cmove eax, ecx
mov dword [0x505218], eax
jmp 0x48d808
push str.MFCreateTopologyNode
push edi
call ebx
push str.MFCreateMediaSession
push edi
mov dword [esi + 0x2c], eax
call ebx
push str.MFGetService
push edi
mov dword [0x4f7f38], eax
call ebx
push str.MFCreateTopology
push edi
mov dword [0x4f7f5c], eax
call ebx
push str.MFCreateVideoRendererActivate
push edi
mov dword [esi + 0x30], eax
call ebx
push str.MFCreateAudioRendererActivate
push edi
mov dword [esi + 0x34], eax
call ebx
mov dword [esi + 0x38], eax
mov eax, dword [0x505218]
mov ecx, 0x20
add esi, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x48d830
test eax, eax
mov ecx, 0x63
pop edi
cmove eax, ecx
pop ebx
mov dword [0x505218], eax
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x20070
call ecx
mov edi, eax
test edi, edi
jns 0x48d892
cmp edi, 0xc00d36e3
jne 0x48d875
mov eax, dword [esi]
push 0
push 0x10070
call eax
mov edi, eax
test edi, edi
jns 0x48d892
mov eax, dword [0x505218]
mov ecx, 0x64
test eax, eax
cmove eax, ecx
mov dword [0x505218], eax
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x505218]
mov ecx, 0x65
test eax, eax
cmove eax, ecx
mov dword [0x505218], eax
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], str.mfplat.dll
xor esi, esi
mov dword [ebp - 8], str.mf.dll
push dword [ebp + esi*4 - 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.MFCreateSourceResolver
push eax
call ebx
mov dword [0x4f7f54], eax
test eax, eax
jne 0x48d8cc
inc esi
cmp esi, 2
jl 0x48d8a2
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [eax], 1
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48d940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ecx + 4]
push esi
mov esi, dword [ebx + 4]
test esi, esi
je 0x48daac
mov eax, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
cmp edi, eax
je 0x48d96e
mov ebx, esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x48d957
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x48d982
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x48d996
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x10], 0
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x48d9aa
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x14], 0
mov ecx, dword [edi + 4]
lea eax, [edi + 0x20]
mov dword [ebp + 8], eax
test ecx, ecx
je 0x48d9ea
mov dword [eax], 6
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
test eax, eax
js 0x48da0a
push 0x1388
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48d9e4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [edi + 0x20]
mov dword [ebp + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x48d9f7
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x48da0a
mov eax, dword [ecx]
push ecx
call dword [eax + 0x34]
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x48da1e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 8], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x48da32
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x48da4f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x38], 0
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x48da63
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x3c], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x48da78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
push 0x50
push edi
call fcn.00491330
mov eax, dword [esi + 4]
add esp, 8
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x48daa0
mov dword [eax + 0xc], 0
push 0x24
push esi
call fcn.00491330
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x48ec20
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x48ec36
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], ebx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x48ec46
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x10], ebx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x48ec56
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 4]
push edi
lea edi, [esi + 0x20]
test ecx, ecx
je 0x48ec90
mov dword [edi], 6
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
js 0x48ecaa
push 0x1388
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48ec90
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48ec9d
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x48ecaa
mov eax, dword [ecx]
push ecx
call dword [eax + 0x34]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48ecbe
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x48ecd2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 4], 0
mov dword [edi], 0
mov ecx, dword [esi + 0x38]
pop edi
test ecx, ecx
je 0x48eced
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x48ed01
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x48ed16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x48f930
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5051ac]
cmp dword [eax + 0x14], 0
je 0x48f956
push esi
call fcn.0048fbf0
pop esi
pop ebp
ret 8
cmp dword [eax + 0x18], 0
je 0x48f974
mov eax, dword [0x4f7dc8]
mov ecx, dword [0x4f7dd0]
push eax
push ecx
push esi
call fcn.0048fcd0
pop esi
pop ebp
ret 8
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
push eax
push ecx
push esi
call fcn.0048fcd0
pop esi
pop ebp
ret 8

Function at 0x48f990
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push str.video
push edi
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x48f9c3
call fcn.0048d5e0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [esi], 0
mov dword [esi + 4], 0
je 0x48f9db
call fcn.004535c0
pop edi
mov dword [esi], 0
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4904e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
cmp edi, 8
jl 0x49058f
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 3]
shl edx, 8
or edx, eax
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x4c1e40]
xor edx, dword [eax*4 + 0x4c1a40]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4c2240]
movzx eax, byte [esi + 6]
xor edx, dword [eax*4 + 0x4c0a40]
movzx eax, byte [esi + 5]
xor edx, dword [eax*4 + 0x4c0e40]
movzx eax, byte [esi + 7]
xor edx, dword [eax*4 + 0x4c0640]
movzx eax, byte [esi + 4]
add esi, 8
xor edx, dword [eax*4 + 0x4c1240]
movzx eax, cl
xor edx, dword [eax*4 + 0x4c1640]
mov ecx, edx
sub ebx, 1
jne 0x490500
pop ebx
test edi, edi
je 0x4905af
movzx eax, byte [esi]
lea esi, [esi + 1]
mov edx, ecx
shl ecx, 8
shr edx, 0x18
xor edx, eax
xor ecx, dword [edx*4 + 0x4c0640]
sub edi, 1
jne 0x490593
pop edi
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x491e4c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x491e8b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x491e8b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x491e8b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x491e8b
cmp dword [ecx + 0x74], 0xe
jbe 0x491e8b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49b234
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049b0aa

Function at 0x4a3500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a352d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a352d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
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.00401a76
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.00401a76
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.00401a76
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.00401a76
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 0x401c2b
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040269e
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.00401d5a
mov ecx, esi
call fcn.004024c4
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00401d40
mov ebx, 0x42c45c
push ebx
push edi
call fcn.0041ba30
add esp, 0x10
jmp 0x401c9d
push ebx
push edi
call fcn.0041ba30
inc eax
push eax
push edi
call fcn.0041c1d0
push ebx
push edi
call fcn.0041ba30
add esp, 0x18
test eax, eax
jne 0x401c84
mov ebx, 0x42c458
push ebx
push edi
call fcn.0041ba30
pop ecx
pop ecx
jmp 0x401cca
push ebx
push edi
call fcn.0041ba30
inc eax
push eax
push edi
call fcn.0041c1d0
push ebx
push edi
call fcn.0041ba30
add esp, 0x18
test eax, eax
jne 0x401cb1
push edi
call fcn.0041c150
lea eax, [eax + esi + 0x21]
mov dword [esp], 0x42c454
push eax
call fcn.0041c1d0
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 0x401d07
push str.RAW_001.exe
push edi
call fcn.0041c1d0
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push edi
mov ecx, esi
call fcn.004026b9
lea eax, [esi + 0x128]
mov ecx, esi
push eax
call fcn.004026b5
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 0x402061
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.0041c310
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.004025d2
test al, al
jne 0x40219e
push dword [edi + 0x18]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40219e
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], ebx
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402142
push dword [edi + 0x128]
lea ecx, [ebp - 0x44c]
call fcn.00411548
cmp dword [esi], ebx
mov dword [ebp + 8], ebx
jbe 0x40214f
lea ecx, [ebp - 0x44c]
call fcn.0040114f
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 8]
add ecx, edx
sub byte [ecx], al
inc edx
cmp edx, dword [esi]
mov dword [ebp + 8], edx
jb 0x402123
jmp 0x40214f
push str.Could_not_Read_encrypted_EXE.
push ebx
call fcn.004114da
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [0x434f14], ebx
je 0x402195
mov ecx, edi
call fcn.0040223b
push str.The_integration_header_was_not_valid._The_process_memory_was_mapped_incorrectly.
push dword [edi + 0x18]
call fcn.004021ae
pop ecx
push eax
call fcn.004114da
push dword [edi + 0x18]
call fcn.00401f46
add esp, 0xc
push dword [ebp - 4]
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 0x40221d
Capabilities:
Suspend thread

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

Function at 0x40222c
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x40223a
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x40223b
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 0x40225e
push eax
call esi
and dword [edi], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40226c
push eax
call esi
and dword [ebx + 0xc], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405339
mov ecx, eax
call fcn.004053c1
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.004148c8
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 0x4022df
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.0041c368
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.004148c8
push eax
push dword [ebp - 4]
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x402328
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.0041c368
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x4023e9
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.00401ee9
add esp, 0x10
test eax, eax
jne 0x40241e
xor al, al
jmp 0x4024bf
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 0x402458
mov ecx, dword [edx + 0x14]
cmp edi, ecx
jb 0x40244a
mov esi, dword [edx + 0x10]
add esi, ecx
cmp edi, esi
jb 0x402458
add edx, 0x28
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jl 0x40243a
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 [0x434f10], ecx
cmp dword [eax + 0x100], 0x100
jne 0x402499
cmp byte [eax + 0x105], 0
jne 0x402499
add ecx, 0x100
mov dword [0x434f18], 0xc
mov dword [0x434f14], ecx
jmp 0x4024bd
add ecx, 0x104
push 0x18
mov dword [0x434f14], ecx
mov eax, dword [eax + 0x100]
pop ecx
mov dword [0x434f18], eax
cmp eax, ecx
jb 0x4024bd
mov dword [0x434f18], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4024f1
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 0x4025c9
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 0x402558
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x128], eax
je 0x40255e
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40253a
jmp 0x402564
mov edi, dword [ebp - 0x118]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40256d
mov dword [eax], edi
cmp edi, 0xffffffff
je 0x4025c1
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32First
jmp 0x4025a2
cmp dword [ebp - 0x128], edi
je 0x4025a8
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402587
jmp 0x4025c1
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call fcn.0041c3c0
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 0x4026b9
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 0x4027a4
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.004114da
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], 0x42c608
je 0x402794
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 0x40275e
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 0x402789
cmp byte [ebp + 0xc], bl
jne 0x402789
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x110]
push str.file__s_missing_
push eax
call fcn.0041c368
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.004114da
add esp, 0x14
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jne 0x40272d
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