joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e820
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x154
push esi
mov esi, dword [esp + 0x160]
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x18], 0x44
je 0x42e8a0
cmp byte [esi], 0
je 0x42e8a0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x42e882
cmp byte [ecx + esi - 1], 0x5c
jne 0x42e882
mov eax, dword [esp + 0x160]
lea ecx, [esp + 0x5c]
push eax
push esi
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x42e8bb
mov edx, dword [esp + 0x160]
lea eax, [esp + 0x5c]
push edx
push esi
push 0x5370bc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x42e8bb
mov ecx, dword [esp + 0x160]
lea edx, [esp + 0x5c]
push ecx
push 0x5371a0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test esi, esi
je 0x42e8c6
cmp byte [esi], 0
jne 0x42e8c6
xor esi, esi
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push 0
push 0
push 0
push 0
lea edx, [esp + 0x78]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
add esp, 0x154
ret 8
Function at 0x42feb0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x5111c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x42fef6
push 0
push str.Skip_DVD_Warning
call fcn.004bde00
test eax, eax
je 0x42fef6
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea eax, [esp + 0xc]
push 0
push eax
mov ecx, edi
call fcn.0042d660
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], 0
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42ff3c
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00501be5
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov ebx, eax
call esi
cmp ebx, 0x280
jne 0x42ffdc
cmp eax, 0x1e0
jne 0x42ffdc
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateICA]
mov ebx, eax
test ebx, ebx
je 0x42ffb7
push 0x26
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push ebx
and esi, 0x100
call dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x42ffdc
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00501be5
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00501be5
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov edx, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, dword [edx + 4]
push eax
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowCursor]
push 1
call esi
test eax, eax
jge 0x430003
push 1
call esi
test eax, eax
jl 0x42fffb
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
push 0
push 0x430080
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0xc]
push edx
push str.DVD_WARNING
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x43003a
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x43003a
push 1
push str.Skip_DVD_Warning
call fcn.004bdd20
mov edx, dword [edi + 4]
push 1
mov eax, dword [edx + 4]
push eax
call ebx
push 0
call esi
test eax, eax
jl 0x430055
push 0
call esi
test eax, eax
jge 0x43004d
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00501be5
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x4323f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5113d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x18], 0x12c
mov eax, dword [edi + 8]
mov dword [esp + 0x10], esi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0x64
call fcn.00503558
lea ecx, [esp + 0x20]
mov ebx, eax
call fcn.00503207
mov dword [esp + 0x20], vtable.CComboBox.0
push 0x1869f
lea ecx, [esp + 0x14]
push ebx
push ecx
push 0x40000000
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], esi
call fcn.0050b254
test eax, eax
jne 0x43248b
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], 0xffffffff
call fcn.0050b275
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
ret 8
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x70]
push ebp
push edx
call fcn.00434080
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x43250e
mov eax, dword [esp + 0x40]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x146
push eax
call ebp
cmp eax, esi
jle 0x43250e
mov ebx, dword [esp + 0x70]
lea ecx, [esp + 0x74]
call fcn.00501a9a
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 1
push ecx
push esi
lea ecx, [esp + 0x2c]
call fcn.0050b31c
mov edx, dword [edi]
lea eax, [esp + 0x74]
push eax
push ebx
mov ecx, edi
call dword [edx + 0x15c]
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 0
call fcn.00501be5
mov ecx, dword [esp + 0x40]
push 0
push 0
push 0x146
push ecx
inc esi
call ebp
cmp esi, eax
jl 0x4324be
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], 0xffffffff
call fcn.0050b275
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 8
Function at 0x444a70
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51205b
push eax
mov eax, dword [0x5494f0]
mov dword fs:[0], esp
sub esp, 0x104
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x444aae
xor eax, eax
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
add esp, 0x110
ret
push edi
push esi
lea ecx, [esp + 0xc]
push ebp
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x444b42
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x444b04
mov edi, 0x53718c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
push 0x5494f0
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00501eae
push eax
mov ecx, 0x5494f0
mov dword [esp + 0x11c], 0
call fcn.00501cde
lea ecx, [esp + 0xc]
mov dword [esp + 0x118], 0xffffffff
call fcn.00501be5
mov edx, dword [0x5494f0]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edx
push 1
push str.GameType
push str.Options
call esi
mov dword [0x549514], eax
mov eax, dword [0x5494f0]
push eax
push 1
push str.LevelID
push str.Options
call esi
mov ecx, dword [0x5494f0]
mov dword [0x54950c], eax
push ecx
push 0
push str.EndLevelID
push str.Options
call esi
mov edx, dword [0x5494f0]
mov dword [0x549510], eax
push edx
push 0
push str.UserMap
push str.Options
call esi
mov dword [0x549500], eax
mov eax, dword [0x5494f0]
push eax
push 1
push str.Curses
push str.Options
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [0x549504], eax
mov eax, dword [0x549500]
test eax, eax
je 0x444c0c
mov ecx, dword [0x5494f0]
lea edx, [esp + 0x10]
push ecx
push 0xff
push edx
push 0x545dfc
push str.UserMapName
push str.Options
call edi
test eax, eax
jbe 0x444c0c
lea eax, [esp + 0x10]
mov ecx, 0x54951c
push eax
call fcn.00501d2d
mov ecx, dword [0x5494f0]
push ecx
push 0
push str.GameID
push str.Engage
call esi
mov edx, dword [0x5494f0]
mov dword [0x549508], eax
push edx
push 0x40
push str.NumPlayers
push str.Engage
call esi
mov dword [0x549518], eax
mov eax, dword [0x5494f0]
push eax
lea ecx, [esp + 0x14]
push 0xff
push ecx
push 0x545dfc
push str.ScreenName
push str.Engage
mov byte [esp + 0x28], 0
call edi
lea edx, [esp + 0x10]
mov ecx, 0x549520
push edx
call fcn.00501d2d
mov eax, dword [0x5494f0]
lea ecx, [esp + 0x10]
push eax
push 0xff
push ecx
push 0x545dfc
push str.OwnerName
push str.Engage
mov byte [esp + 0x28], 0
call edi
lea edx, [esp + 0x10]
mov ecx, 0x549524
push edx
call fcn.00501d2d
mov eax, dword [0x5494f0]
push eax
push 0x14d
push str.SendDelayBase
push str.Timing
call esi
mov ecx, dword [0x5494f0]
mov dword [0x549528], eax
push ecx
push 0x14
push str.SendDelayAdjust
push str.Timing
call esi
mov ecx, dword [esp + 0x110]
pop ebp
mov dword [0x54952c], eax
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x110
ret
Function at 0x44c58a
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5123be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CUserBase.0
lea ebp, [esi + 0x14]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call fcn.004e1040
mov edi, dword [esp + 0x34]
mov dword [esi], vtable.CUserLogic.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [edi + 0x6c]
push ebx
push 0x545dfc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
mov dword [esi + 0x10], eax
mov dword [esi + 4], ebx
call fcn.004e0cd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
push ecx
mov ecx, ebp
call fcn.004e0c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004e0bd0
cmp dword [0x5bd4e4], ebx
jne 0x44c611
mov edx, dword [esi + 8]
mov ecx, esi
push edx
call fcn.00404330
mov dword [0x5bd4e4], 1
mov ecx, dword [esi + 0xc]
push str.LogicHit
call fcn.004d1320
mov ecx, dword [esi + 0xc]
push str.LogicAttack
call fcn.004d13e0
mov ecx, dword [esi + 0xc]
push str.LogicBump
call fcn.004d14b0
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0x3e9
mov dword [esi + 0x30], 2
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x2c], 3
mov dword [esi + 0x40], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi], vtable.CGooVent.0
mov ecx, dword [esi + 0x3c]
push str.LEVEL_GOOVENT
mov byte [esp + 0x30], 4
call fcn.004d0cd0
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x34]
push ecx
push str.LEVEL_GOOVENT_GOOVENT
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax + 0x2c]
add ecx, 0x10
call fcn.00501434
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x58], ecx
mov edx, dword [esi + 0x3c]
mov dword [edx + 0xdc], 0x1000000
mov eax, dword [esi + 0x3c]
mov dword [eax + 0xe0], 1
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0xb8]
mov ecx, esi
mov dword [esi + 0x5c], edx
call fcn.0044ca70
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x457e6a
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51270b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CUserBase.0
lea ebp, [esi + 0x14]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call fcn.004e1040
mov edi, dword [esp + 0x34]
mov dword [esi], vtable.CUserLogic.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [edi + 0x6c]
push ebx
push 0x545dfc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
mov dword [esi + 0x10], eax
mov dword [esi + 4], ebx
call fcn.004e0cd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
push ecx
mov ecx, ebp
call fcn.004e0c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004e0bd0
cmp dword [0x5bd4e4], ebx
jne 0x457ef1
mov edx, dword [esi + 8]
mov ecx, esi
push edx
call fcn.00404330
mov dword [0x5bd4e4], 1
mov ecx, dword [esi + 0xc]
push str.LogicHit
call fcn.004d1320
mov ecx, dword [esi + 0xc]
push str.LogicAttack
call fcn.004d13e0
mov ecx, dword [esi + 0xc]
push str.LogicBump
call fcn.004d14b0
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0x3e9
mov dword [esi + 0x30], 2
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [edi + 0x6c]
mov ecx, 0xfffffffb
mov dword [esi + 0x40], eax
mov dword [esi], vtable.CJumpSwitch.0
mov eax, dword [esi + 0x3c]
pop edi
mov dword [eax + 0x148], ecx
mov dword [eax + 0x14c], ecx
mov ecx, 5
mov dword [eax + 0x150], ecx
mov dword [eax + 0x154], ecx
mov ecx, dword [esi + 0x3c]
mov eax, esi
mov dword [ecx + 0xdc], 0x1000
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x20]
pop esi
mov dword [edx + 0xe0], 1
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x45986a
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51282e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CUserBase.0
lea ebp, [esi + 0x14]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call fcn.004e1040
mov edi, dword [esp + 0x34]
mov dword [esi], vtable.CUserLogic.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [edi + 0x6c]
push ebx
push 0x545dfc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
mov dword [esi + 0x10], eax
mov dword [esi + 4], ebx
call fcn.004e0cd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
push ecx
mov ecx, ebp
call fcn.004e0c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004e0bd0
cmp dword [0x5bd4e4], ebx
jne 0x4598f1
mov edx, dword [esi + 8]
mov ecx, esi
push edx
call fcn.00404330
mov dword [0x5bd4e4], 1
mov ecx, dword [esi + 0xc]
push str.LogicHit
call fcn.004d1320
mov ecx, dword [esi + 0xc]
push str.LogicAttack
call fcn.004d13e0
mov ecx, dword [esi + 0xc]
push str.LogicBump
call fcn.004d14b0
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0x3e9
mov dword [esi + 0x30], 2
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x2c], 3
mov dword [esi + 0x40], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi], vtable.CLaser.0
mov ecx, dword [esi + 0x3c]
push str.LEVEL_LASER
mov byte [esp + 0x30], 4
call fcn.004d0cd0
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x34]
push ecx
push str.LEVEL_LASER_LASER
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax + 0x2c]
add ecx, 0x10
call fcn.00501434
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x58], ecx
mov edx, dword [esi + 0x3c]
mov dword [edx + 0xdc], 0x1000000
mov eax, dword [esi + 0x3c]
mov dword [eax + 0xe0], 1
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0xb8]
mov ecx, esi
mov dword [esi + 0x5c], edx
call fcn.00459d50
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x45ca3a
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x512afb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CUserBase.0
lea ebp, [esi + 0x14]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call fcn.004e1040
mov edi, dword [esp + 0x34]
mov dword [esi], vtable.CUserLogic.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [edi + 0x6c]
push ebx
push 0x545dfc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
mov dword [esi + 0x10], eax
mov dword [esi + 4], ebx
call fcn.004e0cd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
push ecx
mov ecx, ebp
call fcn.004e0c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004e0bd0
cmp dword [0x5bd4e4], ebx
jne 0x45cb4c
mov ebp, dword [esi + 8]
lea edx, [esp + 0x34]
push edx
push str.LogicHit
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax + 0x14]
add ecx, 0x10
call fcn.00501434
cmp dword [esp + 0x34], ebx
jne 0x45caec
mov ecx, dword [ebp + 0xc]
push 2
push str.LogicHit
push 0x4e1db0
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, dword [ebp + 0xc]
push str.LogicAttack
mov ecx, dword [eax + 0x14]
call fcn.0045cf40
test eax, eax
jne 0x45cb17
mov ecx, dword [ebp + 0xc]
push 2
push str.LogicAttack
push 0x4e1dc0
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, dword [ebp + 0xc]
push str.LogicBump
mov ecx, dword [eax + 0x14]
call fcn.0045cf40
test eax, eax
jne 0x45cb42
mov ecx, dword [ebp + 0xc]
push 2
push str.LogicBump
push 0x4e1dd0
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov dword [0x5bd4e4], 1
mov ecx, dword [esi + 0xc]
push str.LogicHit
call fcn.004d1320
mov ecx, dword [esi + 0xc]
push str.LogicAttack
call fcn.004d13e0
mov ecx, dword [esi + 0xc]
push str.LogicBump
call fcn.004d14b0
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0x3e9
mov dword [esi + 0x30], 2
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x40], eax
mov dword [esi], vtable.CLightFX.0
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x45f24a
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x512bfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CUserBase.0
lea ebx, [esi + 0x14]
xor ebp, ebp
mov ecx, ebx
mov dword [esp + 0x2c], ebp
call fcn.004e1040
mov edi, dword [esp + 0x34]
mov dword [esi], vtable.CUserLogic.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [edi + 0x6c]
push ebp
push 0x545dfc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
mov dword [esi + 0x10], eax
mov dword [esi + 4], ebp
call fcn.004e0cd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
push ecx
mov ecx, ebx
call fcn.004e0c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004e0bd0
cmp dword [0x5bd4e4], ebp
jne 0x45f2d1
mov edx, dword [esi + 8]
mov ecx, esi
push edx
call fcn.00404330
mov dword [0x5bd4e4], 1
mov ecx, dword [esi + 0xc]
push str.LogicHit
call fcn.004d1320
mov ecx, dword [esi + 0xc]
push str.LogicAttack
call fcn.004d13e0
mov ecx, dword [esi + 0xc]
push str.LogicBump
call fcn.004d14b0
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], 0x3e9
mov dword [esi + 0x30], 2
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x2c], 3
mov dword [esi + 0x40], eax
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], ebp
mov dword [esi], vtable.CMarrowFloor.0
mov ecx, dword [esi + 0x3c]
push str.LEVEL_TRAPELEVATOR
mov byte [esp + 0x30], 4
call fcn.004d0cd0
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x34]
push ecx
push str.LEVEL_PEGSLIDE
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], ebp
mov ecx, dword [eax + 0x28]
add ecx, 0x10
call fcn.00501434
mov eax, dword [esp + 0x34]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x3c]
mov edx, dword [eax + 8]
or edx, 1
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x3c]
mov dword [ecx + 0xdc], 0x80
mov edx, dword [esi + 0x3c]
mov dword [edx + 0xe0], 0x3000072
mov ecx, dword [esi + 0x3c]
call fcn.00406520
mov ecx, dword [0x5497d0]
mov eax, dword [esi + 0xc]
add ecx, 0x98
add eax, 0x138
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x144]
add ecx, 0x20
mov dword [eax + 0x144], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x4c]
mov dword [esi + 0x5c], ecx
mov edx, dword [0x549d00]
mov ecx, dword [edx + 0x6c]
mov edx, dword [ecx + 0x14]
mov ecx, dword [edx + 0x80]
mov dword [esi + 0x58], ecx
mov eax, dword [eax + 0x158]
mov ecx, esi
mov dword [esi + 0x64], eax
mov dword [esi + 0x78], ebp
call fcn.0045f490
mov ecx, dword [esp + 0x24]
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x467380
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
mov dword [esp + 0xc], esi
jne 0x467396
mov dword [esp + 0x10], ecx
jmp 0x46739d
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov ebx, 1
push ecx
push ebx
push 0x806
mov ecx, esi
call fcn.00467520
test eax, eax
jne 0x4673bf
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
mov dword [esi + 0x44], ebx
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, ebx
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x44]
test eax, eax
je 0x467438
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
test eax, 0x80000000
je 0x4673ef
xor edi, edi
mov dword [0x549a0c], ebx
push ebx
push 0
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
call esi
test eax, eax
je 0x467434
mov eax, dword [esp + 0x20]
cmp eax, 0x112
je 0x467422
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call esi
test eax, eax
jne 0x467401
test edi, edi
jne 0x4673ca
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebx
pop esi
mov dword [ecx + 0x44], 0
pop ebx
add esp, 0x2c
ret

Function at 0x47a4d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5133cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], esi
mov dword [esi], vtable.CState.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x150], ebx
lea ecx, [esi + 0x250]
mov dword [esp + 0x14], ebx
call fcn.00501a9a
mov eax, 1
mov dword [esi], vtable.CPlay.0
mov dword [esi + 0x154], eax
mov dword [esi + 0x258], ebx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x764], ebx
mov dword [esi + 0x768], ebx
mov dword [esi + 0x76c], ebx
mov dword [esi + 0x770], ebx
mov dword [esi + 0x774], ebx
lea ecx, [esi + 0xbe4]
mov dword [esp + 0x14], eax
call fcn.00501a9a
lea ecx, [esi + 0xbe8]
mov byte [esp + 0x14], 2
call fcn.00501a9a
lea ecx, [esi + 0xc08]
mov byte [esp + 0x14], 3
call fcn.00500901
xor eax, eax
mov dword [esi], vtable.CRacing.0
mov dword [esi + 0x780], ebx
mov dword [esi + 0x784], ebx
mov dword [esi + 0xbd0], ebx
mov dword [esi + 0xbd4], ebx
mov dword [esi + 0x7bc], ebx
mov dword [esi + 0xc04], ebx
mov dword [0x54dcd0], eax
mov ecx, dword [esp + 0xc]
mov dword [0x54dcd4], eax
mov dword fs:[0], ecx
mov dword [0x54dcd8], eax
mov dword [0x54dcdc], eax
mov dword [0x54dce0], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret