joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ba80
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x108
mov eax, dword [0x4ba858]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x118]
push 0
push 0
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
je 0x45bb01
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test edi, edi
je 0x45bae5
lea eax, [esp + 8]
push edi
push eax
call fcn.00419360
add esp, 8
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0048171f
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0048171f
add esp, 0x108
ret

Function at 0x4618a0
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x59ff2c], 0
je 0x4618f0
mov eax, dword [0x59ff28]
push 0
push 0
push 0x500
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [0x59ff2c]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4618e6
mov edx, dword [0x59ff2c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x59ff2c], 0
push 0x59ff10
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov al, 1
ret

Function at 0x462060
Capabilities:
Create thread

Disassembly:
push 0x59ff10
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x59ff28
push 0
push 0
push 0x461d80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x59ff2c], eax
jne 0x46209a
push 0x59ff10
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor al, al
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
ret

Function at 0x4650e0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x6c4f80]
test eax, eax
je 0x465189
mov ecx, dword [0x6c4f70]
push 0
push 0
push 0x500
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [0x6c4f6c]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46512a
mov eax, dword [0x6c4f6c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x6c4f6c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x6c4f78]
push edx
call esi
mov eax, dword [0x6c4f7c]
push eax
call esi
mov ecx, dword [0x6c4f64]
push ecx
call esi
mov edx, dword [0x6c4f74]
push edx
call esi
mov eax, dword [0x6c4f84]
test eax, eax
pop esi
je 0x46517f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x6c4f84], 0
mov dword [0x6c4f80], 0
ret
Function at 0x467560
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x6c4f80]
test eax, eax
je 0x46756e
call fcn.004650e0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push str.DSEBGMNew
push 0
push 0
push 0
call esi
push str.DSELVNew
push 0
push 0
push 0
mov dword [0x6c4f78], eax
call esi
push str.DSESENew
push 0
push 0
push 0
mov dword [0x6c4f7c], eax
call esi
push str.DSEGETInfo
push 0
push 0
push 0
mov dword [0x6c4f64], eax
call esi
push 0x104
mov dword [0x6c4f74], eax
call fcn.004811ca
mov ecx, dword [str.BGM.ini]
push ecx
push 0x58cfc0
mov edi, eax
push 0x49a440
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [str.BGM.dat]
push edx
push edi
call fcn.004310a0
push edi
mov esi, eax
call fcn.0048124d
add esp, 0x20
test esi, esi
je 0x467635
push esi
call fcn.00430b90
add esp, 4
add eax, 8
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x6c4f84], eax
je 0x46762c
push eax
push esi
call fcn.00430b10
push esi
call fcn.00430ba0
add esp, 0xc
push esi
call fcn.00430be0
add esp, 4
mov eax, dword [esp + 0x10]
push eax
mov dword [0x6c4f68], 9
call fcn.00467ac0
mov ecx, dword [esp + 0x10]
add esp, 4
push 0x6c4f70
push 0
push ecx
push 0x465cc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6c4f6c], eax
mov edx, dword [0x6c4f6c]
test edx, edx
pop edi
pop esi
jne 0x46767e
mov eax, reloc.DSOUND.dll_DirectSoundCreate
ret
mov eax, dword [0x6c4f6c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
mov dword [0x6c4f80], eax
ret
Function at 0x469eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49989b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4ba858]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba858]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov esi, ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x3c], eax
lea edi, [esi + 0x44]
push edi
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [edx + 0xc]
mov word [esp + 0x24], 1
mov word [esp + 0x26], 2
mov dword [esp + 0x28], 0xac44
mov word [esp + 0x30], 4
mov dword [esp + 0x2c], 0x2b110
mov word [esp + 0x32], 0x10
mov dword [esp + 0x38], 0x24
mov dword [esp + 0x3c], 0xc1c8
mov dword [esp + 0x40], 0x183990
call ecx
test eax, eax
jne 0x46a05e
push 1
lea ebx, [esi + 0x4c]
push esi
mov dword [ebx], 0x2b110
mov dword [esi + 0x54], 0xac440
mov dword [esi + 0x5c], 0x12d770
mov dword [esi + 0x64], 0x18398c
mov dword [esi + 0x6c], 0xffffffff
call fcn.00468880
push 2
push esi
mov dword [esi + 0x50], eax
call fcn.00468880
push 0
push esi
mov dword [esi + 0x58], eax
call fcn.00468880
push 3
push esi
mov dword [esi + 0x60], eax
call fcn.00468880
add esp, 0x20
mov dword [esi + 0x68], eax
call fcn.00468980
mov dword [esi + 0x70], eax
mov eax, dword [edi]
mov edx, dword [eax]
lea ebp, [esi + 0x48]
push ebp
push 0x4a3f18
push eax
mov eax, dword [edx]
call eax
test eax, eax
jne 0x46a05e
mov ebp, dword [ebp]
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
push ebx
push 5
push ebp
call edx
test eax, eax
jne 0x46a05e
push 0x81730
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0xac], eax
je 0x46a05e
cmp dword [esi + 0x3c], 0
jne 0x46a069
push 0x8f8
call fcn.004812ee
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x58], 0
je 0x46a04d
mov ecx, eax
call fcn.0046ab90
jmp 0x46a04f
xor eax, eax
test eax, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esi + 0x3c], eax
jne 0x46a069
mov ecx, esi
call fcn.00469800
xor eax, eax
jmp 0x46a06e
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0048171f
add esp, 0x48
ret 4
Function at 0x46b880
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x4ba858]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov al, 0x3f
push str.save000.sav
push 0x4bcb08
mov byte [0x4b4b04], al
mov byte [0x4b4b05], al
mov byte [0x4b4b06], al
lea eax, [esp + 0x1e8]
push 0x49b13c
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1e4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x46b94d
cmp esi, 0xffffffff
je 0x46b94d
test byte [esp + 0x20], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
jne 0x46b9a4
lea eax, [esp + 0x4c]
push eax
push 0x4bcb08
lea ecx, [esp + 0x1e8]
push 0x49b13c
push ecx
call edi
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea edx, [esp + 0x1f8]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x46b965
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.0048171f
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
push esi
jne 0x46b987
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xc]
push edx
jmp 0x46b947
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x46ba75
jmp 0x46b9c0
test byte [esp + 0x20], 0x10
jne 0x46ba61
lea eax, [esp + 0x4c]
push eax
push 0x4bcb08
lea ecx, [esp + 0x1e8]
push 0x49b13c
push ecx
call edi
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea edx, [esp + 0x1f8]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x46ba5d
lea eax, [esp + 0x18]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46ba5d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x46ba5d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x164]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46b9c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
movsx eax, byte [esp + 0x164]
lea edx, [eax + eax*4]
movsx eax, byte [esp + 0x165]
lea eax, [eax + edx*2]
movsx edx, byte [esp + 0x166]
pop edi
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2 - 0x14d0]
mov ecx, dword [esp + 0x2e8]
pop esi
pop ebx
xor ecx, esp
call fcn.0048171f
mov esp, ebp
pop ebp
ret
Function at 0x46bfa0
Capabilities:
Copy file

Disassembly:
push ebx
push esi
push edi
push 0x104
call fcn.004811ca
mov esi, eax
add esp, 4
test esi, esi
je 0x46c050
push 0x104
call fcn.004811ca
mov edi, eax
add esp, 4
test edi, edi
je 0x46c047
mov eax, dword [esp + 0x10]
push eax
call fcn.0046b5a0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x4bcb08
push 0x49b13c
push esi
call ebx
push 0
push esi
call fcn.004310a0
add esp, 0x1c
test eax, eax
je 0x46c03e
push eax
call fcn.00430be0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046b5a0
push eax
push 0x4bcb08
push 0x49b13c
push edi
call ebx
add esp, 0x18
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x46c03e
push edi
call fcn.0048124d
push esi
call fcn.0048124d
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
ret
push edi
call fcn.0048124d
add esp, 4
push esi
call fcn.0048124d
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x46c060
Capabilities:
Delete file

Disassembly:
push esi
push 0x104
call fcn.004811ca
mov esi, eax
add esp, 4
test esi, esi
je 0x46c0c9
mov eax, dword [esp + 8]
push eax
call fcn.0046b5a0
push eax
push 0x4bcb08
push 0x49b13c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.004310a0
add esp, 0x1c
test eax, eax
je 0x46c0c0
push eax
call fcn.00430be0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46c0c0
push esi
call fcn.0048124d
add esp, 4
mov al, 1
pop esi
ret
push esi
call fcn.0048124d
add esp, 4
xor al, al
pop esi
ret
Function at 0x4729e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push esi
mov esi, dword [esp + 0x68]
mov eax, dword [esi]
test eax, eax
je 0x472ba8
add esi, 4
test eax, eax
jbe 0x472ba8
push ebx
push ebp
mov dword [esp + 0x14], eax
push edi
mov eax, dword [0x4bcc6c]
fld dword [esi + 0x7c]
mov ecx, dword [esi + 0x48]
fadd st(0), st(0)
mov edx, dword [esi + 0x84]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x88]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x58]
mov ebp, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.00482600
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x8c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x60]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x64]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x94]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x98]
mov dword [esp + 0x20], ecx
mov cl, byte [esi + 0x9c]
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x70], eax
mov byte [esp + 0x74], cl
call fcn.00472870
push eax
call fcn.0046e5d0
add esp, 0xc
cmp byte [esi + 0x9c], 0
mov edi, eax
mov dword [esp + 0x74], edi
je 0x472af6
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
push eax
push ecx
push edi
call fcn.0046e8d0
add esp, 0xc
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x50]
mov edx, eax
imul edx, ecx
add esi, 0xa0
mov ebx, esi
add esi, edx
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x472b8d
xor edi, edi
test eax, eax
jle 0x472b79
lea ebp, [esi + 4]
cmp dword [esi], 0
je 0x472b60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
push eax
push edi
push ecx
call fcn.0046e810
movzx edx, word [ebx]
push edx
call fcn.0046e2a0
add esp, 0x10
test eax, eax
push ebp
je 0x472b4e
push edx
mov edx, dword [esp + 0x7c]
push edx
jmp 0x472b58
movzx ax, byte [ebx]
mov ecx, dword [esp + 0x78]
push eax
push ecx
call fcn.00470340
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x4c]
add edi, 1
add esi, 0x14
add ebp, 0x14
add ebx, 1
cmp edi, eax
jl 0x472b20
mov ebp, edx
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, dword [ebp + 0x50]
mov dword [esp + 0x10], ecx
jl 0x472b17
mov edi, dword [esp + 0x74]
mov eax, dword [ebp]
push eax
push edi
call fcn.0046e700
add esp, 8
sub dword [esp + 0x18], 1
jne 0x472a04
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x60
ret
Function at 0x47e54c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x47e56d
mov eax, 0x8876086c
jmp 0x47e660
cmp dword [ebp + 0x7c], esi
je 0x47e5ef
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x47e5cf
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00482a40
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x47e5ef
push esi
push 0x10000000
push 3
push esi
push 1
push DirectSoundCreate
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x47e608
push esi
push 0x10000000
push 3
push esi
push 1
push DirectSoundCreate
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x47e64e
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x47e64e
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x47e64e
cmp eax, esi
je 0x47e65b
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x47e65e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x47e660
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x48171f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ba858]
jne 0x481729
repz ret
jmp fcn.0048819c
Function at 0x48bedb
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4bb200]
je 0x48bef6
inc edi
cmp edi, 0x17
jb 0x48bee7
cmp edi, 0x17
jae 0x48c076
push ebp
push 3
call fcn.00495a59
cmp eax, 1
pop ecx
je 0x48c042
push 3
call fcn.00495a59
test eax, eax
pop ecx
jne 0x48bf2a
cmp dword [0x4ba8f4], 1
je 0x48c042
cmp ebx, 0xfc
je 0x48c075
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x7139f0
push ebp
call fcn.00488504
add esp, 0xc
test eax, eax
je 0x48bf60
push esi
push esi
push esi
push esi
push esi
call fcn.00481f98
add esp, 0x14
push 0x104
mov esi, 0x713a09
push esi
push 0
mov byte [0x713b0d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48bfa4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00488504
add esp, 0xc
test eax, eax
je 0x48bfa4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00481f98
add esp, 0x14
push esi
call fcn.004860e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48bfe9
push esi
call fcn.004860e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x713d04
push 0x4ad3ac
sub ecx, eax
push ecx
push eax
call fcn.00489b5f
add esp, 0x14
test eax, eax
je 0x48bfe9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00481f98
add esp, 0x14
jmp 0x48bfeb
xor esi, esi
push 0x4ad3a8
push ebx
push ebp
call fcn.0048dedf
add esp, 0xc
test eax, eax
je 0x48c00b
push esi
push esi
push esi
push esi
push esi
call fcn.00481f98
add esp, 0x14
push dword [edi*8 + 0x4bb204]
push ebx
push ebp
call fcn.0048dedf
add esp, 0xc
test eax, eax
je 0x48c02d
push esi
push esi
push esi
push esi
push esi
call fcn.00481f98
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049589c
add esp, 0xc
jmp 0x48c075
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48c075
cmp ebp, 0xffffffff
je 0x48c075
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4bb204]
push dword [esi]
call fcn.004860e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49589c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00487bd1
xor ebx, ebx
cmp dword [0x713fe4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x495972
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x495a52
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b0ae8
push edi
call esi
cmp eax, ebx
je 0x495a52
push eax
call fcn.00487b63
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x713fe4], eax
call esi
push eax
call fcn.00487b63
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x713fe8], eax
call esi
push eax
call fcn.00487b63
mov dword [0x713fec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048a393
test eax, eax
pop ecx
pop ecx
je 0x495940
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00481f98
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x495972
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00487b63
cmp eax, ebx
pop ecx
mov dword [0x713ff4], eax
je 0x495972
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00487b63
pop ecx
mov dword [0x713ff0], eax
mov eax, dword [0x713ff0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4959f7
cmp dword [0x713ff4], ecx
je 0x4959f7
push eax
call fcn.00487bda
push dword [0x713ff4]
mov esi, eax
call fcn.00487bda
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4959f7
cmp edi, ebx
je 0x4959f7
call esi
cmp eax, ebx
je 0x4959c4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4959c4
test byte [ebp - 0x18], 1
jne 0x4959f7
lea eax, [ebp - 0x10]
push eax
call fcn.0048a3ca
test eax, eax
pop ecx
je 0x4959df
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00481f98
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4959ee
or dword [ebp + 0x10], 0x200000
jmp 0x495a32
or dword [ebp + 0x10], 0x40000
jmp 0x495a32
mov eax, dword [0x713fe8]
cmp eax, dword [ebp - 8]
je 0x495a32
push eax
call fcn.00487bda
cmp eax, ebx
pop ecx
je 0x495a32
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x495a32
mov eax, dword [0x713fec]
cmp eax, dword [ebp - 8]
je 0x495a32
push eax
call fcn.00487bda
cmp eax, ebx
pop ecx
je 0x495a32
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x713fe4]
call fcn.00487bda
cmp eax, ebx
pop ecx
je 0x495a52
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x495a54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003304
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10003313
pop dword [ebp - 8]
mov eax, 0x10003313
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3c2fc
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xee125652
sub ecx, 0xee11fe7f
mov edx, eax
mov ebx, 0x2a1392d3
sub ebx, 0x1a1230d3
add ebx, dword [ebp - 8]
mov esi, 0xbec3a175
sub esi, 0xd8f137c
add dword [ebp - 4], 0x42b46edb
mov edi, dword [ebx]
add dword [ebp - 4], eax
xor edi, esi
sub dword [ebp - 4], 0xb750ddd9
mov dword [edx], edi
add dword [ebp - 4], 0x6e420b60
add edx, 0x76178ec1
add edx, 0x89e87143
add ebx, 0x1ea9c6a3
sub ebx, 0x1ea9c69f
loop 0x10003368
add eax, 0xfa48b32f
sub eax, 0xfa476110
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x1000692c
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx - 0x6c]
mov ecx, esi
call fcn.10003304
test eax, eax
jne 0x1000694f
mov eax, 0x80070005
jmp 0x10006a17
push esi
mov ecx, esi
call fcn.10003304
test eax, eax
js 0x10006a15
cmp dword [ebx + 0x44], 0
je 0x10006a15
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x10]
push edi
push eax
call esi
lea eax, [ebp - 8]
push eax
call esi
push 0x14
pop ecx
call fcn.1000a278
mov edi, eax
test edi, edi
je 0x100069a2
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
and dword [edi + 8], 0
mov dword [edi], vtable.CNameShowContactCardJob.0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
jmp 0x100069a4
xor edi, edi
test edi, edi
je 0x10006a14
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov esi, dword [ebx + 0x44]
mov dword [ebp + 8], esi
add esi, 0x7c
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
push 8
pop ecx
call fcn.1000a278
mov ebx, eax
test ebx, ebx
je 0x10006a04
and dword [ebx], 0
mov dword [ebx + 4], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9c]
test ecx, ecx
je 0x100069ec
mov dword [ecx], ebx
jmp 0x100069f2
mov dword [eax + 0x98], ebx
mov dword [eax + 0x9c], ebx
push dword [eax + 0xa0]
call dword [sym.imp.kernel32.dll_SetEvent]
dec dword [esi + 0x18]
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 4