joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f30
Capabilities:
Get common file path
Get file version info
Query or enumerate registry value

Disassembly:
mov eax, 0x4158
call fcn.004f7e40
push esi
lea eax, [esp + 8]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlMediaResourcesicm_vidc.IV50
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402f67
pop edi
xor eax, eax
pop esi
add esp, 0x4158
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x2160]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.Driver
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402fb7
pop edi
xor eax, eax
pop esi
add esp, 0x4158
ret
lea eax, [esp + 0x160]
push 0x2000
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x402fd7
pop edi
pop esi
add esp, 0x4158
ret
mov esi, dword [esp + 8]
mov ecx, 0x2000
sub ecx, esi
cmp eax, ecx
jbe 0x402ff1
pop edi
xor eax, eax
pop esi
add esp, 0x4158
ret
mov al, byte [esp + eax + 0x160]
push ebx
cmp al, 0x5c
je 0x403032
cmp al, 0x2f
je 0x403032
mov edi, 0x505f6c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x164]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2164]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x164]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
pop ebx
jne 0x403089
pop edi
xor eax, eax
pop esi
add esp, 0x4158
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x18]
lea eax, [esp + 0x160]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x4030b1
pop edi
pop esi
add esp, 0x4158
ret
push edi
call fcn.004f7dbe
add esp, 4
mov esi, eax
lea ecx, [esp + 0x160]
push esi
push edi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4030e5
push esi
call fcn.004f7d8f
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x4158
ret
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push 0x505f6c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x403112
push esi
call fcn.004f7d8f
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x4158
ret
mov eax, dword [esp + 0x14]
cmp dword [eax], 0xfeef04bd
je 0x403132
push esi
call fcn.004f7d8f
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x4158
ret
mov edi, dword [eax + 8]
push esi
shr edi, 8
call fcn.004f7d8f
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 0x4158
ret
Function at 0x405860
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
jne 0x40586b
xor eax, eax
ret
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x40588c
push esi
mov esi, eax
shr esi, 0x1c
shl eax, 4
or esi, eax
movsx eax, cl
mov cl, byte [edx + 1]
xor eax, esi
inc edx
test cl, cl
jne 0x405874
pop esi
ret
Function at 0x429340
Capabilities:
Get disk information

Disassembly:
sub esp, 0x80
lea eax, [esp]
push 0x80
push eax
call fcn.004f7fc7
add esp, 8
test eax, eax
je 0x42937d
lea ecx, [esp]
mov byte [esp + 3], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor edx, edx
cmp eax, 5
sete dl
mov eax, edx
add esp, 0x80
ret
mov eax, 1
add esp, 0x80
ret

Function at 0x4293b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
test esi, esi
jne 0x4293cc
xor eax, eax
pop esi
add esp, 0x20c
ret
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.Softwarec2v_vyruz
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4293f6
xor eax, eax
pop esi
add esp, 0x20c
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x429436
xor eax, eax
pop esi
add esp, 0x20c
ret
lea eax, [esp + 0x10]
push eax
call fcn.00500439
add esp, 4
pop esi
add esp, 0x20c
ret
Function at 0x442ee0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [0x51a938]
push ebp
push esi
push edi
test eax, eax
mov dword [esp + 0x10], ebx
je 0x442f6c
mov edi, dword [eax]
test edi, edi
je 0x442f6c
mov al, byte [0x50d9b0]
mov ebp, dword [0x51afec]
test al, al
je 0x442f98
mov ecx, dword [0x51afe8]
mov esi, 1
shl esi, cl
mov edx, edi
mov eax, edi
and edx, 0x10
dec esi
shr eax, 4
je 0x442f3c
mov ebx, esi
and ebx, eax
shr eax, cl
xor edx, ebx
test eax, eax
jne 0x442f2c
mov ebx, dword [esp + 0x10]
mov ecx, dword [0x51afe4]
mov esi, dword [0x51afe0]
mov eax, ecx
test eax, eax
jle 0x442f6c
mov ebx, edx
shl ebx, 4
cmp dword [ebx + esi], edi
je 0x442f92
add edx, 0x3fff
lea ebx, [ecx - 1]
and edx, ebx
dec eax
test eax, eax
jg 0x442f4e
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push edx
push str._ERROR:_Memory_Freeing__0x_08x__is_not_possible_because_the_memory_block_is_invalid.
push 0x3e
call fcn.00441cd0
add esp, 0xc
mov dword [0x51a938], ebx
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x10]
jmp 0x442fc9
mov esi, dword [0x51afe0]
lea eax, [ebp - 1]
mov ecx, eax
shl ecx, 4
add ecx, esi
test eax, eax
jl 0x442f6c
cmp dword [ecx], edi
je 0x442fc7
mov edx, dword [0x51aff0]
sub ecx, 0x10
inc edx
dec eax
test eax, eax
mov dword [0x51aff0], edx
jge 0x442fac
jmp 0x442f6c
mov edx, eax
cmp edx, 0xffffffff
je 0x442f6c
mov eax, edx
shl eax, 4
lea ecx, [eax + esi]
mov eax, ecx
mov edi, dword [eax]
mov dword [esp + 0x14], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x18], edi
mov edi, dword [eax + 8]
mov dword [esp + 0x1c], edi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
shr eax, 0x10
and eax, 7
dec ebp
mov edi, eax
mov dword [0x51afec], ebp
test byte [ecx + 0xc], 0x10
jne 0x443011
mov eax, dword [ecx + 4]
sub dword [0x51afd0], eax
mov eax, dword [0x51af98]
dec eax
mov dword [0x51af98], eax
mov al, byte [0x50d9b0]
test al, al
je 0x44302d
mov dword [ecx], 0
jmp 0x443067
test ebp, ebp
jbe 0x44305d
cmp edx, ebp
je 0x44305d
shl ebp, 4
add ebp, esi
mov edx, dword [ebp]
mov dword [ecx], edx
mov eax, dword [ebp + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov esi, dword [0x51afe0]
mov ebp, dword [0x51afec]
shl ebp, 4
mov dword [esi + ebp], 0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [edi*4 + 0x51af78]
mov eax, dword [esp + 0x30]
add esp, 8
pop edi
mov dword [eax], 0
pop esi
mov dword [0x51a938], ebx
mov eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4430a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x51afe0]
push ebx
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x4430be
mov ecx, dword [0x51afec]
mov edx, dword [0x51afe4]
cmp ecx, edx
jb 0x443105
cmp dword [0x50df1c], 0x14
jne 0x4430f7
mov cl, byte [0x50d9b0]
test eax, eax
je 0x4430dc
mov edx, dword [0x51afe8]
lea eax, [edx + 1]
jmp 0x4430e8
mov al, cl
neg al
sbb eax, eax
and eax, 7
add eax, 8
push ecx
push eax
call fcn.00442940
mov eax, dword [0x51afe0]
add esp, 8
test ebx, 0x80000000
jne 0x443105
test eax, eax
jne 0x443105
pop ebx
ret
mov eax, ebx
shr eax, 0x10
and eax, 7
jbe 0x4431ea
cmp eax, 7
ja 0x4431ea
mov cl, byte [0x51aff8]
test cl, cl
je 0x4431ea
mov cl, byte [eax + 0x51afa4]
test cl, cl
je 0x4431ea
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
push ebx
push edx
mov dword [0x51a938], 0
call dword [eax*4 + 0x51afac]
add esp, 0xc
test eax, eax
je 0x4432ac
test ebx, 0x80000000
jne 0x4432ac
mov cl, byte [0x50d9b0]
push ebp
mov ebp, dword [0x51afe0]
push esi
test cl, cl
push edi
je 0x4431f8
mov ecx, dword [0x51afe8]
mov esi, 1
shl esi, cl
mov edi, eax
mov edx, eax
and edi, 0x10
dec esi
shr edx, 4
je 0x4431aa
mov ebp, esi
and ebp, edx
shr edx, cl
xor edi, ebp
test edx, edx
jne 0x443198
mov ebp, dword [0x51afe0]
mov ecx, dword [0x51afec]
mov edx, edi
inc ecx
test ecx, ecx
jle 0x4431e5
mov esi, dword [0x51afe4]
mov edi, edx
shl edi, 4
cmp dword [edi + ebp], 0
je 0x4431fe
add edx, 0x3fff
lea edi, [esi - 1]
and edx, edi
mov edi, dword [0x51aff0]
inc edi
dec ecx
test ecx, ecx
mov dword [0x51aff0], edi
jg 0x4431bd
or edx, 0xffffffff
jmp 0x4431fe
mov dword [0x51a938], 0xc
xor eax, eax
pop ebx
ret
mov edx, dword [0x51afec]
mov ecx, dword [0x51afec]
mov esi, dword [esp + 0x1c]
shl edx, 4
add edx, ebp
inc ecx
mov dword [0x51afec], ecx
mov ecx, dword [esp + 0x14]
test bl, 0x10
mov dword [edx + 4], ecx
mov dword [edx + 0xc], ebx
mov dword [edx + 8], esi
mov dword [edx], eax
jne 0x443243
mov eax, dword [0x51afd0]
add eax, ecx
mov ecx, dword [0x51afd8]
cmp ecx, eax
mov dword [0x51afd0], eax
jge 0x443243
mov dword [0x51afd8], eax
mov eax, dword [edx + 4]
mov ebx, dword [0x51afd4]
mov edi, dword [0x51af9c]
mov ecx, dword [0x51afa0]
add ebx, eax
mov eax, dword [0x51af98]
inc edi
inc eax
cmp ecx, eax
mov dword [0x51afd4], ebx
mov dword [0x51af9c], edi
mov dword [0x51af98], eax
jge 0x44327b
mov dword [0x51afa0], eax
mov ecx, dword [edx + 0xc]
and ecx, 2
cmp cl, 2
jne 0x44329b
mov ecx, dword [edx + 4]
mov edi, dword [edx]
mov esi, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [edx]
pop edi
pop esi
pop ebp
mov dword [0x51a938], 0
pop ebx
ret
mov dword [0x51a938], 0xa
pop ebx
ret
Function at 0x449f60
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push eax
push ecx
push esi
call fcn.00441d00
add esp, 0xc
test esi, esi
je 0x449fae
cmp esi, 0x3e
je 0x449fae
mov al, byte [0x51d098]
test al, al
je 0x449fae
mov ecx, dword [0x51d090]
test ecx, ecx
je 0x449fae
mov eax, dword [0x51d094]
test eax, eax
je 0x449fae
push eax
push ecx
push str.File:__s__Line:__d
push 0x3e
call fcn.0044a060
add esp, 0x10
mov al, byte [0x50df38]
test al, al
je 0x44a052
mov al, byte [0x50df20]
mov byte [0x50df38], 0
test al, al
mov dword [0x51a938], 0
je 0x44a04c
push str._n_SYSTEM_EXIT_n
push 0x3e
mov byte [0x50df20], 0
call fcn.00441cd0
mov eax, dword [0x51a938]
add esp, 8
test eax, eax
je 0x44a001
push 0
push 0
push eax
call fcn.00441d00
add esp, 0xc
push ebp
push edi
mov ebp, 0x14
mov edx, dword [0x51d088]
mov dword [0x50df1c], ebp
lea eax, [edx - 1]
test eax, eax
jl 0x44a042
lea esi, [eax*8 + 0x51ce8c]
lea edi, [eax + 1]
mov eax, dword [esi]
test eax, eax
je 0x44a038
cmp dword [esi - 4], ebp
jb 0x44a038
call eax
mov dword [esi], 0
sub esi, 8
dec edi
jne 0x44a025
mov esi, dword [esp + 0x10]
dec ebp
jns 0x44a008
call fcn.00441d30
pop edi
pop ebp
push esi
call fcn.004f824e
pop esi
ret

Function at 0x44c980
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
xor ebx, ebx
test edx, edx
je 0x44ca20
push ebp
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor esi, esi
mov edi, ecx
mov dword [esp + 0x18], ecx
shr edi, 2
je 0x44c9d0
mov eax, dword [edx]
mov ecx, esi
neg ecx
and ecx, 0x1f
mov ebp, eax
shl ebp, cl
mov ecx, esi
add edx, 4
and ecx, 0x1f
shr eax, cl
or ebp, eax
xor ebx, ebp
inc esi
cmp esi, edi
jb 0x44c9ac
mov ecx, dword [esp + 0x18]
mov eax, ecx
xor esi, esi
and eax, 3
mov dword [esp + 0x10], eax
jbe 0x44ca10
xor edi, edi
movsx ax, byte [edx]
and eax, 0xffff
mov ecx, edi
and ecx, 0xf
mov ebp, eax
shr ebp, cl
mov ecx, esi
and ecx, 0xf
shl eax, cl
and eax, 0xffff
or ebp, eax
mov eax, dword [esp + 0x10]
xor ebx, ebp
inc edx
inc esi
dec edi
cmp esi, eax
jb 0x44c9df
mov ecx, dword [esp + 0x18]
imul ecx, ecx, 0xd768d711
xor ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x44eeb0
Capabilities:
Create process on windows

Disassembly:
push ecx
push 0
push 0x10101
push 0x310
mov dword [esp + 0xc], 0
call fcn.004430a0
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [esp], edx
je 0x44ef5b
push esi
push edi
mov edi, str.notepad.exe__p
or ecx, 0xffffffff
xor eax, eax
push 0xa
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
lea edx, [esp + 8]
sbb ecx, ecx
push edx
and ecx, 2
mov dword [0x51a938], ecx
call fcn.00442ee0
mov eax, dword [0x51a938]
add esp, 4
pop edi
pop esi
pop ecx
ret
mov eax, dword [0x51a938]
pop ecx
ret
Function at 0x4670a0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
test eax, eax
je 0x4670b3
push eax
call esi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4670cc
push 0x512c4c
call esi
push edi
call esi
push 0x512c48
call esi
push 0x512c54
call esi
pop edi
pop esi
ret
Function at 0x492000
Capabilities:
Get disk information

Disassembly:
push ecx
mov al, byte [esp + 8]
lea ecx, [esp]
sub al, 0x41
push ecx
mov byte [esp + 5], 0x3a
mov byte [esp + 6], 0x5c
mov byte [esp + 7], 0
mov byte [esp + 4], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x49202a.0
jmp dword [eax*4 + 0x492054]
mov eax, 1
pop ecx
ret
mov eax, 2
pop ecx
ret
mov eax, 8
pop ecx
ret
mov eax, 4
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x493560
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [0x526804], eax
mov eax, dword [esp + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00490440
call fcn.004916f0
push 0
call fcn.00479710
add esp, 4
lea ecx, [esp + 0x24]
lea edx, [esp]
push ecx
push 0
push edx
push 0x4936c0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4935e5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4935d5
pop esi
push 1
call fcn.00479710
mov eax, dword [0x51e970]
add esp, 4
push 0
push 0
push 7
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x1fb7f
call fcn.00449ce0
mov eax, dword [esp + 0x14]
add esp, 0x18
ret

Function at 0x493620
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x526804]
push 0
push 0x5267fc
push 0x500
push eax
call sub.DINPUT.dll_DirectInputCreateA
test eax, eax
jl 0x4936b5
mov eax, dword [0x5267fc]
test eax, eax
je 0x4936b5
mov ecx, dword [eax]
push 0
push 0x526820
push 0x502170
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x4936b5
mov eax, dword [0x526820]
test eax, eax
je 0x4936b5
mov edx, dword [eax]
push 0x4f77a0
push eax
call dword [edx + 0x2c]
test eax, eax
jl 0x4936b5
mov eax, dword [0x526820]
test eax, eax
je 0x4936b5
mov edx, dword [0x526728]
mov ecx, dword [eax]
push 6
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jl 0x4936b5
mov eax, dword [0x526820]
test eax, eax
je 0x4936b5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x4936b5
mov eax, dword [0x526820]
test eax, eax
je 0x4936b5
push str.DirectInput_initialized_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret
Function at 0x494280
Capabilities:
Print debug messages

Disassembly:
push ecx
mov ecx, dword [0x526800]
push esi
push edi
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x4943e8
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.PlayerInitialize_n
call esi
mov edi, dword [esp + 0x10]
mov ecx, dword [0x526818]
push edi
call fcn.00494620
test eax, eax
jl 0x4943e8
push ebx
push str.StartExclusiveMode_n
call esi
mov eax, dword [0x526818]
mov ecx, dword [0x526800]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [ecx]
push edx
push eax
push edi
call dword [ebx + 4]
test eax, eax
pop ebx
jl 0x4943dc
push str.BuildGraph_n
call esi
mov ecx, dword [0x526818]
mov eax, dword [ecx + 0x60]
mov ecx, dword [0x526800]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
test eax, eax
jge 0x494320
mov ecx, dword [0x526800]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x526818]
push edi
call fcn.004949b0
pop edi
xor eax, eax
pop esi
pop ecx
ret
push str.SetOverlayCallback_n
call esi
mov ecx, dword [0x526800]
call fcn.00494f30
test eax, eax
jl 0x4943d1
push str.Pause_n
call esi
mov ecx, dword [0x526800]
lea eax, [esp + 8]
push eax
call fcn.00494fd0
mov ecx, dword [0x526818]
mov edx, dword [esp + 8]
push str.Set_Get_ColorKey_n
mov dword [ecx + 0x34], edx
call esi
push 1
call fcn.00494150
add esp, 4
push str.SetVideoPosition_n
call esi
mov ecx, dword [0x526818]
call fcn.00494b00
push str.UpdateAndFlipSurfaces_n
call esi
mov ecx, dword [0x526800]
call fcn.00494ee0
test eax, eax
jne 0x4943b4
mov ecx, dword [0x526800]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x526818]
push edi
call fcn.004949b0
pop edi
xor eax, eax
pop esi
pop ecx
ret
push str.Play_n
call esi
push 0
push 0x64
push 1
push edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
mov dword [0x526794], eax
jne 0x4943ee
mov ecx, dword [0x526800]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [0x526818]
push edi
call fcn.004949b0
pop edi
xor eax, eax
pop esi
pop ecx
ret
push str.SetTimer_n
call esi
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x4944a0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x500843
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SetRect]
mov esi, ecx
push ebx
push ebx
push ebx
lea eax, [esi + 0x10]
push ebx
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 0xff00ff
call edi
push ebx
push ebx
push ebx
lea ecx, [esi + 0x20]
push ebx
push ecx
call edi
push 0x18
mov dword [esi + 0xc], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x44], 1
mov dword [esi + 0x48], str.Front_Buffer
mov dword [esi + 0x4c], str.Back_Buffer
mov dword [esi + 0x50], str.Press_the_Arrow_keys_to_move_the_ball._Hit_Esc_to_stop_playback.
call fcn.004f8f62
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov dword [esp + 0x1c], ebx
je 0x494571
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
push ebx
push str.Overlay_Callback_Object
call fcn.004f77f3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea ebp, [edi + 0xc]
mov byte [esp + 0x1c], 1
mov dword [ebp], 0x501680
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
mov dword [edi], 0x501670
mov dword [ebp], 0x501658
mov dword [ecx], 1
mov edi, dword [edi + 4]
push edi
mov edx, dword [edi]
call dword [edx + 4]
jmp 0x494573
xor ebp, ebp
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x60], ebp
mov dword [esi + 0x5c], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4949b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x4949df
push str.Freeing_Back_buffer_n
call ebx
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4949fd
push str.Freeing_Primary_n
call ebx
mov eax, dword [esi + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x494ab5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
test eax, eax
jge 0x494a42
mov ecx, str.RestoreDisplayMode__
mov edx, ecx
test edx, edx
jne 0x494a21
mov ecx, 0x51a4a8
push eax
and eax, 0x7789ffff
push eax
push ecx
lea eax, [esp + 0x18]
push str._s__error__d__0x_X__n
push eax
call fcn.004f8f70
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
call ebx
push str.SetCooperativeLevel_NORMAL__n
call ebx
mov eax, dword [esi]
mov ecx, dword [esp + 0x90]
push 8
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x50]
mov edi, eax
test edi, edi
jge 0x494aa3
mov eax, str.SetCooperativeLevel___failed_to_go_back_to_normal_mode
mov edx, eax
test edx, edx
jne 0x494a71
mov eax, 0x51a4a8
mov ecx, edi
push edi
and ecx, 0x7789ffff
lea edx, [esp + 0x10]
push ecx
push eax
push str._s__error__d__0x_X__n
push edx
call fcn.004f8f70
add esp, 0x14
lea eax, [esp + 0xc]
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x80
ret 4
mov eax, dword [esi]
test eax, eax
je 0x494ab5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], 0
mov edi, dword [sym.imp.USER32.dll_SetRect]
push 0
push 0
push 0
lea edx, [esi + 0x10]
push 0
push edx
mov dword [esi + 0x34], 0xff00ff
call edi
push 0
push 0
push 0
lea eax, [esi + 0x20]
push 0
push eax
call edi
push str.StopExclusiveMode:_succeed_n
mov dword [esi + 0xc], 0
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x80
ret 4
Function at 0x4faf79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5187c0
cmp edx, dword [eax]
je 0x4faf9b
add eax, 8
inc ecx
cmp eax, 0x518850
jl 0x4faf8c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5187c0]
jne 0x4fb0c9
mov eax, dword [0x526afc]
cmp eax, 1
je 0x4fb0a3
test eax, eax
jne 0x4fafcc
cmp dword [0x5184c4], 1
je 0x4fb0a3
cmp edx, 0xfc
je 0x4fb0c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4fb003
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004fa5b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004fa530
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4fb046
lea eax, [ebp - 0x1a4]
push eax
call fcn.004fa530
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x503248
push edi
call fcn.004f78e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004fa5b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004fa5c0
lea eax, [ebp - 0xa0]
push 0x503228
push eax
call fcn.004fa5c0
push dword [esi + 0x5187c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004fa5c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004fe22d
add esp, 0x2c
pop edi
jmp 0x4fb0c9
lea eax, [ebp + 8]
lea esi, [esi + 0x5187c4]
push 0
push eax
push dword [esi]
call fcn.004fa530
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret