joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55211c
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x552161
test edi, edi
jl 0x552161
cmp ax, 0x20
je 0x552156
cmp word [ebp + 8], 0x71
jne 0x552161
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x55799e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ef60c]
jne 0x5579a8
repz ret
jmp fcn.0055fd76

Function at 0x56edc8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0055f6da
and dword [ebp - 4], 0
cmp dword [0x5f7fec], 0
mov ebx, eax
jne 0x56ee79
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x56ef2a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x56ef2a
push eax
call fcn.0055f668
mov dword [esp], 0x5b7030
push edi
mov dword [0x5f7fec], eax
call esi
push eax
call fcn.0055f668
mov dword [esp], 0x5b701c
push edi
mov dword [0x5f7ff0], eax
call esi
push eax
call fcn.0055f668
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5f7ff4], eax
call esi
push eax
call fcn.0055f668
pop ecx
mov dword [0x5f7ffc], eax
test eax, eax
je 0x56ee79
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0055f668
pop ecx
mov dword [0x5f7ff8], eax
mov eax, dword [0x5f7ff8]
cmp eax, ebx
je 0x56eed1
cmp dword [0x5f7ffc], ebx
je 0x56eed1
push eax
call fcn.0055f6e3
push dword [0x5f7ffc]
mov esi, eax
call fcn.0055f6e3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x56eed1
test edi, edi
je 0x56eed1
call esi
test eax, eax
je 0x56eec8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x56eec8
test byte [ebp - 0xc], 1
jne 0x56eed1
or dword [ebp + 0x10], 0x200000
jmp 0x56ef0a
mov eax, dword [0x5f7ff0]
cmp eax, ebx
je 0x56ef0a
push eax
call fcn.0055f6e3
pop ecx
test eax, eax
je 0x56ef0a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x56ef0a
mov eax, dword [0x5f7ff4]
cmp eax, ebx
je 0x56ef0a
push eax
call fcn.0055f6e3
pop ecx
test eax, eax
je 0x56ef0a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5f7fec]
call fcn.0055f6e3
pop ecx
test eax, eax
je 0x56ef2a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x56ef2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401218
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00401c18
test al, al
je 0x401281
xor ebp, ebp
cmp dword [esi + 0x10], ebp
je 0x401397
mov ecx, esi
call fcn.00401bae
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
test al, al
je 0x40127b
push 0x436d70
push dword [esi + 0x18]
call fcn.0040139d
pop ecx
xor edi, edi
cmp dword [0x436d74], ebp
pop ecx
jbe 0x40127b
mov eax, dword [0x436d70]
push dword [eax + edi*4]
push ebp
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push eax
call ebx
inc edi
cmp edi, dword [0x436d74]
jb 0x40125d
push ebp
jmp 0x401392
lea eax, [esp + 0x10]
mov ebx, 0x1f4
push eax
push ebx
push 2
push 0
push 0
push 0x10
mov ecx, esi
call fcn.00401cd7
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push eax
call edi
push 0x7d0
mov ecx, esi
call fcn.004011e8
mov ecx, esi
call fcn.004011a0
test al, al
je 0x4012e5
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0xf060
push 0x112
call fcn.00401cd7
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011e8
mov ecx, esi
call fcn.004011a0
test al, al
je 0x401314
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 0x12
call fcn.00401cd7
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011e8
mov ecx, esi
call fcn.004011a0
xor ebp, ebp
test al, al
je 0x401343
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push ebx
push 2
push ebp
push ebp
push 2
call fcn.00401cd7
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011e8
cmp dword [esi + 0x10], ebp
je 0x401397
mov ecx, esi
call fcn.00401bae
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
test al, al
je 0x401390
push 0x436d70
push dword [esi + 0x18]
call fcn.0040139d
pop ecx
xor edi, edi
cmp dword [0x436d74], ebp
pop ecx
jbe 0x401390
mov eax, dword [0x436d70]
push dword [eax + edi*4]
push ebp
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push eax
call ebx
inc edi
cmp edi, dword [0x436d74]
jb 0x401372
push 0xffffffffffffffff
push dword [esi + 0x10]
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40139d
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 0x401417
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x401408
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp + 8]
jne 0x4013f1
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.004028e2
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4013d8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x401419
xor al, al
pop edi
pop ebx
leave
ret
Function at 0x401def
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
push ebx
push esi
push edi
mov esi, ecx
call fcn.00402939
xor eax, eax
mov edi, 0x104
mov dword [esi + 0x130], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x134]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.00401fdd
mov ecx, esi
call fcn.00402789
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00401fc3
mov edi, 0x42e534
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004173d0
add esp, 0x10
jmp 0x401e78
push edi
push eax
call fcn.004173d0
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00417c20
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004173d0
add esp, 0x18
test eax, eax
lea eax, [ebp - 0x104]
jne 0x401e53
mov edi, 0x42e530
push edi
push eax
call fcn.004173d0
pop ecx
pop ecx
jmp 0x401eb7
push edi
push eax
call fcn.004173d0
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00417c20
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004173d0
add esp, 0x18
test eax, eax
lea eax, [ebp - 0x104]
jne 0x401e92
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00417c20
lea eax, [ebp - 0x208]
push eax
call fcn.00417ba0
lea eax, [ebp + eax - 0x20b]
push 0x42e52c
push eax
call fcn.00417c20
lea eax, [ebp - 0x208]
push eax
call fcn.00402047
add esp, 0x18
test al, al
jne 0x401f66
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00417c20
mov edi, str._Wrapper.exe
push edi
call fcn.00417ba0
mov ebx, eax
lea eax, [ebp - 0x208]
push eax
call fcn.00417ba0
add esp, 0x10
cmp eax, ebx
jle 0x401f6f
sub eax, ebx
push edi
lea ebx, [ebp + eax - 0x208]
push ebx
call fcn.00417b10
pop ecx
test eax, eax
pop ecx
jne 0x401f6f
push str..exe
push ebx
call fcn.00417c20
lea eax, [ebp - 0x208]
push eax
call fcn.00402047
add esp, 0xc
test al, al
je 0x401f6f
lea eax, [ebp - 0x208]
push eax
jmp 0x401f74
push str.RAW_001.exe
lea eax, [esi + 0x24]
push eax
call fcn.00417c20
pop ecx
lea eax, [ebp - 0xa08]
pop ecx
push 0x800
push eax
call fcn.00401fc3
pop ecx
lea eax, [ebp - 0xa08]
pop ecx
push eax
mov ecx, esi
call fcn.00402954
lea eax, [esi + 0x128]
mov ecx, esi
push eax
call fcn.00402950
push eax
push esi
push str.ReflexiveArcadeRAW_002.wdt
mov ecx, esi
call fcn.004010c3
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402313
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov edi, ecx
call fcn.00417d60
push dword [edi + 0x130]
lea eax, [ebp - 0xc50]
mov dword [ebp - 0x50], 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 - 0x50]
push eax
lea eax, [edi + 0x134]
push eax
push ebx
push 4
push ebx
push ebx
lea eax, [ebp - 0xc50]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, edi
call fcn.00402897
test al, al
jne 0x40248b
mov esi, dword [ebp + 0xc]
cmp dword [esi], ebx
je 0x40248b
push dword [edi + 0x18]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40248b
push dword [edi + 0x128]
lea ecx, [ebp - 0x450]
call fcn.00412a62
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 + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40240c
cmp dword [esi], ebx
mov dword [ebp + 0xc], ebx
jbe 0x402422
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
add eax, ecx
lea ecx, [ebp - 0x450]
mov dword [ebp - 8], eax
mov bl, byte [eax]
call fcn.00401174
sub bl, al
mov eax, dword [ebp - 8]
inc dword [ebp + 0xc]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi]
jb 0x4023df
xor ebx, ebx
jmp 0x402422
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.Could_not_Read_encrypted_EXE.
call fcn.004031b9
pop ecx
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_WriteProcessMemory]
test eax, eax
jne 0x402454
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.Could_not_Write_encrypted_EXE.
call fcn.004031b9
pop ecx
cmp dword [0x436fa4], ebx
je 0x402482
mov ecx, edi
call fcn.0040251f
push str.The_integration_header_was_not_valid._The_process_memory_was_mapped_incorrectly.
push dword [edi + 0x18]
call fcn.00402492
pop ecx
push eax
call fcn.004129f4
push dword [edi + 0x18]
call fcn.004021f8
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402501
Capabilities:
Suspend thread

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

Function at 0x402510
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x40251e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x40251f
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 0x402542
push eax
call esi
and dword [edi], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x402550
push eax
call esi
and dword [ebx + 0xc], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405fcd
mov ecx, eax
call fcn.00406055
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.00415ddd
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 0x4025c3
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.00417db8
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.00415ddd
push eax
push dword [ebp - 4]
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40260c
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.00417db8
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x4026ae
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 pe_nt_image_headers32
mov dword [ebp + 8], edi
push dword [ebx + 0x2c]
call fcn.00401000
push eax
push edi
call fcn.0040219b
add esp, 0x10
test eax, eax
jne 0x4026e3
xor al, al
jmp 0x402784
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 0x40271d
mov ecx, dword [edx + 0x14]
cmp edi, ecx
jb 0x40270f
mov esi, dword [edx + 0x10]
add esi, ecx
cmp edi, esi
jb 0x40271d
add edx, 0x28
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jl 0x4026ff
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 [0x436fa0], ecx
cmp dword [eax + 0x100], 0x100
jne 0x40275e
cmp byte [eax + 0x105], 0
jne 0x40275e
add ecx, 0x100
mov dword [0x436fa8], 0xc
mov dword [0x436fa4], ecx
jmp 0x402782
add ecx, 0x104
push 0x18
mov dword [0x436fa4], ecx
mov eax, dword [eax + 0x100]
pop ecx
mov dword [0x436fa8], eax
cmp eax, ecx
jb 0x402782
mov dword [0x436fa8], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4027b6
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 0x40288e
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 0x40281d
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x128], eax
je 0x402823
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4027ff
jmp 0x402829
mov edi, dword [ebp - 0x118]
mov eax, dword [ebp + 8]
test eax, eax
je 0x402832
mov dword [eax], edi
cmp edi, 0xffffffff
je 0x402886
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32First
jmp 0x402867
cmp dword [ebp - 0x128], edi
je 0x40286d
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40284c
jmp 0x402886
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call fcn.00417e10
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 0x402a74
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
test edx, edx
je 0x402aa0
mov ecx, dword [esp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42e700]
xor eax, esi
inc ecx
dec edx
jne 0x402a86
pop edi
pop esi
ret

Function at 0x402aa1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402af6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0xc]
push 4
push eax
push dword [ebp + 8]
call fcn.00402a74
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x402b1b
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push str.file__s_missing_
push eax
call fcn.00417db8
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.004129f4
add esp, 0x14
mov eax, dword [ebp + 8]
pop esi
leave
ret
Function at 0x402b21
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x402b7f
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push str.could_not_get_size_of_file__s
push eax
call fcn.00417db8
lea eax, [ebp - 0x104]
push eax
call fcn.004031b9
add esp, 0x10
push dword [esi]
call fcn.00417785
pop ecx
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 4]
push edi
push ecx
mov dword [ebp - 4], edi
push dword [esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402bc3
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push str.could_not_read_file__s
push eax
call fcn.00417db8
lea eax, [ebp - 0x104]
push eax
call fcn.004031b9
add esp, 0x10
mov eax, dword [esi]
push str.There_was_an_error_in_reading_the_file_contents_into_memory.
cmp eax, dword [ebp - 4]
sete al
push eax
call fcn.004129f4
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40309a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push str.ReflexiveArcadeRAW_004.wdt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4030f4
push ebx
lea eax, [ebp - 4]
push esi
push eax
mov esi, 0x436fcc
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
je 0x4030f4
cmp dword [ebp - 4], 8
jne 0x4030f4
mov eax, esi
jmp 0x4030f6
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4030fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push str.ReflexiveArcadeRAW_004.wdt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403157
lea eax, [ebp - 4]
push 0
push eax
push 8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
je 0x403153
cmp dword [ebp - 4], 8
jne 0x403153
xor eax, eax
inc eax
jmp 0x403159
xor eax, eax
jmp 0x403159
xor al, al
pop esi
leave
ret 4

Function at 0x403f76
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
lea eax, [ebp + 0xc]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403fbf
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403fb6
mov bl, 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret
Function at 0x403fc4
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.00417d60
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x404042
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Thread_Failed__last_error__x_n
push eax
call fcn.00417db8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x404145
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401038
mov ecx, eax
call fcn.00415ddd
push eax
call esi
push eax
call edi
test eax, eax
jne 0x40409e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Game_Failed__last_error__x_n
push eax
call fcn.00417db8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404145
push dword [ebp - 8]
mov edi, str.0x_08x
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00417db8
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.GAME_HANDLE
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00417db8
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.WRAPPER_HANDLE
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x50
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str.ReflexiveArcadeRAW_003.wdt
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404149
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Create_Process_Failed__last_error__x_n
push eax
call fcn.00417db8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x40414b
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404150
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 4], ecx
call fcn.00417785
mov ebx, eax
pop ecx
test ebx, ebx
je 0x404176
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x404178
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0x100000
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x4041d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GameWrapper:_Duplicate_Thread_Failed__last_error__x_n
lea eax, [ebp - 0x808]
push eax
call fcn.00417db8
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebx, ebx
jmp 0x404277
push 2
push 0
lea eax, [ebx + 4]
push 0x100000
push eax
call esi
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
call esi
push eax
call edi
test eax, eax
jne 0x4041fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GameWrapper:_Duplicate_Process_Failed__last_error__x_n
jmp 0x4041ad
push 2
push 0
lea eax, [ebx + 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401038
mov ecx, eax
call fcn.00415ddd
push eax
call esi
push eax
call edi
test eax, eax
jne 0x404234
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GameWrapper:_Duplicate_Game_Failed__last_error__x_n
jmp 0x4041ad
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push ebx
push 0x4042af
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40428b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push str.GameWrapper:_Create_Thread_Failed__last_error__x_n
push eax
call fcn.00417db8
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, esi
je 0x404287
mov ecx, ebx
call fcn.00404292
push ebx
call fcn.004173ba
pop ecx
xor al, al
jmp 0x40428d
mov al, 1
pop edi
pop esi
pop ebx
leave
ret