joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4865c0
Capabilities:
Swap mouse buttons

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50acf0
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push edi
push 0x17
mov edi, ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [ebp + 0xc], 0
mov ebx, eax
je 0x486705
call fcn.00403230
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x48660f
push 0x80004005
call fcn.00402f10
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
jne 0x48663c
push 0x1c
mov dword [ebp + 8], VariantClear
push str..DEFAULTControl_PanelMouse
jmp 0x48664a
push 0x13
mov dword [ebp + 8], SysStringLen
push str.Control_PanelMouse
call fcn.0040dad0
push esi
push 0
lea ecx, [ebp - 0x40]
call fcn.004b90e0
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
push 0
push 0
push 0
push esi
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0x14
call fcn.004bcca0
test eax, eax
je 0x4866d7
push 0
push 0x5287ac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push str.SwapMouseButtons
lea ecx, [ebp - 0x3c]
call fcn.004cbe60
test eax, eax
je 0x4866d7
push 0
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.004d2e11
mov ebx, eax
add esp, 0xc
mov eax, dword [edi + 0x1490]
cmp eax, 0x237c
je 0x4866c4
cmp eax, 0x237d
jne 0x4866d7
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp ebx, eax
je 0x4866d7
push ebx
call dword [sym.imp.USER32.dll_SwapMouseButton]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004b93f0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x486704
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
mov eax, dword [edi + 0x1490]
cmp eax, 0x237c
je 0x486722
cmp eax, 0x237d
je 0x486722
cmp dword [edi + 0x8e4], 0
je 0x48672a
push ebx
mov ecx, edi
call fcn.0047f050
test byte [0x652fc0], 4
je 0x486748
push ebx
push str.SwapState____d_n
push 3
push str.CSynTPEnh::SendMouseButtonSwapState
call fcn.004cb3a0
add esp, 0x10
mov ecx, dword [edi + 0x14ac]
test ecx, ecx
jne 0x486758
lea ecx, [edi + 0x14b0]
mov eax, dword [ecx]
push ebx
push 0x1000097
push ecx
call dword [eax + 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x486d00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50bc08
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
push edi
mov edi, 1
mov esi, ecx
push 0
mov ebx, edi
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x486deb
cmp word [esi + 0x190], 0
je 0x486deb
push 0
lea ecx, [ebp - 0x2c]
call fcn.004b90e0
push 0
push 0
push 0
lea eax, [esi + 0x398]
mov dword [ebp - 4], 0
push eax
push SysReAllocString
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], 0
call fcn.004bcca0
test eax, eax
je 0x486dd2
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x5a0]
push eax
lea ecx, [ebp - 0x28]
call fcn.004cbcf0
test eax, eax
je 0x486dd2
test byte [0x652fc0], 4
je 0x486dbc
push dword [ebp - 0x10]
push str.find_out_users_option:_dwValue_d_n
push 3
push str.CSynTPEnh::ShouldShowOSDByUserOption
call fcn.004cb3a0
add esp, 0x10
cmp dword [ebp - 0x10], 0
mov dword [esi + 0x1568], 0
jne 0x486dd4
xor edi, edi
xor ebx, ebx
jmp 0x486dd4
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004b93f0
test ebx, ebx
je 0x486e6c
cmp dword [esi + 0x1568], 0
je 0x486e6c
test byte [0x652fc0], 4
je 0x486e11
push str.run_OEM_program..._n
push 3
push str.CSynTPEnh::ShouldShowOSDByUserOption
call fcn.004cb3a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x234]
push eax
lea eax, [esi + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call fcn.00486c50
test eax, eax
jne 0x486e6c
test byte [0x652fc0], 2
je 0x486e59
push str.cannot_run_OEM_program__not_show_OSD__n
push 2
push str.CSynTPEnh::ShouldShowOSDByUserOption
call fcn.004cb3a0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x488820
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push 0
mov ebx, ecx
call fcn.004c7a40
add esp, 4
cmp eax, 7
jl 0x48890d
cmp dword [ebx + 0x910], 0
je 0x48890d
push esi
push edi
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x208]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x488870
lea eax, [ebp - 0x208]
mov ecx, 7
mov esi, 0x526130
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x4888bf
test byte [0x652fc0], 1
je 0x48890b
push str.Couldnt_get_handle_to_WtsApi32.DLL_n
push 1
push str.CSynTPEnh::UnRegisterForSystemNotification
call fcn.004cb3a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.WTSUnRegisterSessionNotification
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4888df
test byte [0x652fc0], 1
je 0x488904
push str.Couldnt_get_address_of_WTSUnRegisterSessionNotification_n
jmp 0x4888f5
push dword [ebx + 0x910]
call eax
test byte [0x652fc0], 1
je 0x488904
push str.UnRegistered_for_Session_Notification_n
push 1
push str.CSynTPEnh::UnRegisterForSystemNotification
call fcn.004cb3a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4891a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x900], 0
je 0x4891e9
cmp dword [esi + 0x904], 0
je 0x4891cc
push dword [esi + 0x87c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4891cc
mov eax, 1
pop esi
ret
cmp dword [esi + 0x153c], 0
jne 0x4891e9
push 0
push 0
push esi
push 0x487290
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
pop esi
ret
Function at 0x492370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
jne 0x4923d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4923d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
je 0x4923d2
cmp dword [esi + 0x840], 0
je 0x4923ca
inc dword [esi + 0x844]
cmp dword [esi + 0x844], 0xa
jb 0x4923ca
push 0
push 0
push 0x47c
push dword [0x6579b8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x495f40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
push 0
mov edi, ecx
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x4960a1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004cf600
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x20c], 0
je 0x4960a1
lea eax, [ebp - 0x20c]
push str.Charm_Bar
push eax
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4960a1
mov eax, dword [edi + 0x394]
push esi
test eax, eax
je 0x49606f
test byte [0x652fc0], 4
je 0x495fe9
push eax
push str.pUIAutomation__0x_x_n
push 3
push str.CWingZone::GetCharmbarUIItem
call fcn.004cb3a0
add esp, 0x10
mov eax, dword [edi + 0x39c]
lea esi, [edi + 0x39c]
test eax, eax
je 0x496045
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x98]
cmp dword [ebp - 4], 0
jne 0x49601d
mov eax, dword [esi]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x3a0]
test ecx, ecx
je 0x496037
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x3a0], 0
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi], 0
mov eax, dword [edi + 0x394]
push esi
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x49605e
cmp dword [esi], 0
jne 0x496093
test byte [0x652fc0], 4
je 0x496093
push eax
push str.Failed_to_get_the_UICharmbar__error__0x_x_n
jmp 0x496084
test byte [0x652fc0], 4
je 0x496093
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_UIAutomation__error__0x_x_n
push 3
push str.CWingZone::GetCharmbarUIItem
call fcn.004cb3a0
add esp, 0x10
mov eax, dword [edi + 0x39c]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x49ca40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b2b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
push 8
mov ebx, ecx
mov dword [ebp - 0x10], 0
call fcn.004cf48e
add esp, 4
test eax, eax
je 0x49ca80
mov ecx, eax
call fcn.0049c470
mov edi, eax
jmp 0x49ca82
xor edi, edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
jns 0x49cad7
test byte [0x652fc0], 2
je 0x49cabe
push esi
push str.Could_not_create_object._Error_code__0x_x_n
push 2
push str.CWMIEventApp::EnableNotification
call fcn.004cb3a0
add esp, 0x10
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.SELECT__FROM___InstanceCreationEvent_WITHIN_1_WHERE_TargetInstance_ISA_Win32_Process
lea ecx, [ebp - 0x18]
call fcn.00416c00
mov esi, eax
push 0x52cf20
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00416c00
mov esi, dword [esi]
mov byte [ebp - 4], 1
test esi, esi
je 0x49cb08
mov esi, dword [esi]
jmp 0x49cb0a
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x49cb14
mov edx, dword [eax]
jmp 0x49cb16
xor edx, edx
push dword [ebp - 0x10]
mov eax, dword [ebx + 8]
push 0
push 0x80
push esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x5c]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00433490
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00433490
test esi, esi
jns 0x49cb88
test byte [0x652fc0], 2
je 0x49cb66
push esi
push str.ExecNotificationQueryAsync_failed_with_0x_X_n
push 2
push str.CWMIEventApp::EnableNotification
call fcn.004cb3a0
add esp, 0x10
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebx], edi
mov dword [ebx + 0xc], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4a2420
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [edi]
test ecx, ecx
jne 0x4a2438
xor eax, eax
jmp 0x4a244a
mov eax, dword [ecx]
lea edx, [ebp - 8]
push edx
push 0x10000301
push ecx
call dword [eax + 0xc]
mov eax, dword [ebp - 8]
push 0
push eax
mov ecx, 0x658670
call fcn.0041c6d0
mov ecx, dword [eax + 0x34]
mov dword [ebp + 8], 0
lea ebx, [eax + 0x30]
test ecx, ecx
je 0x4a247d
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
push 0x10000102
push ecx
call dword [eax + 0xc]
cmp dword [ebp + 8], 5
je 0x4a24a8
mov ecx, dword [ebx + 4]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4a25ca
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
push 0x10000102
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 4], 4
jne 0x4a25ca
mov ecx, dword [edi]
test ecx, ecx
jne 0x4a24b2
xor eax, eax
jmp 0x4a24c4
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
push 0x10000312
push ecx
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
shr eax, 0x16
test al, 1
jne 0x4a25c0
mov ecx, dword [edi]
test ecx, ecx
jne 0x4a24d9
xor eax, eax
jmp 0x4a24eb
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
push 0x10000314
push ecx
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
test al, 1
jne 0x4a25c0
mov ecx, dword [edi]
test ecx, ecx
jne 0x4a24fd
xor eax, eax
jmp 0x4a250f
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
push 0x10000314
push ecx
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
shr eax, 1
test al, 1
jne 0x4a25c0
mov ecx, dword [ebp + 0xc]
call fcn.00458d30
test al, al
jne 0x4a25ca
mov ecx, edi
call fcn.00458d30
test al, al
je 0x4a25ca
inc dword [esi + 0x84]
cmp dword [esi + 0x84], 1
jne 0x4a255c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x88], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, 0x5dc
cmp eax, dword [esi + 0x88]
jae 0x4a2575
call edi
jmp 0x4a2581
call edi
mov dword [esi + 0x84], 1
cmp dword [esi + 0x84], 3
mov dword [esi + 0x88], eax
jne 0x4a25ca
push 0
push str.SynTPLpr
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x4a25c0
push 0
mov ecx, ebx
call fcn.00427c70
movzx ecx, al
push ecx
push 0x4e4
push edi
mov ecx, 0x6570a8
call fcn.00487ce0
mov dword [esi + 0x84], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a6ab0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4a6b43
push edi
push ebx
call fcn.004d5fda
mov edi, eax
add esp, 4
test edi, edi
je 0x4a6b38
push edi
push ebx
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a6b2f
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
push eax
push 0x50f8e4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a6b2f
mov edx, dword [ebp - 4]
test edx, edx
je 0x4a6b2f
mov ecx, dword [ebp + 0xc]
mov esi, 1
movzx eax, word [edx + 0xa]
mov dword [ecx], eax
movzx eax, word [edx + 8]
mov dword [ecx + 4], eax
movzx eax, word [edx + 0xe]
mov dword [ecx + 8], eax
movzx eax, word [edx + 0xc]
mov dword [ecx + 0xc], eax
push edi
call fcn.004d17d8
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a6b50
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4a6b7e
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4a6bcb
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4a6bc4
push ebx
mov ebx, dword [ebp + 0xc]
push 0x104
push ebx
push dword [ebp - 8]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov edi, eax
test edi, edi
jne 0x4a6bc3
mov word [ebx], ax
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4a8b40
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0
jl 0x4a8be7
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4a8b74
push 0
push 0
push 0x8460
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x30], 0
mov dword [edi + 0x1c], 0xffffffff
pop edi
ret
cmp dword [0x657d0c], 0
je 0x4a8bbc
push ebx
mov ebx, dword [sym.imp.USER32.dll_CopyIcon]
push esi
xor esi, esi
cmp dword [esi + 0x5dac4c], 0
je 0x4a8baa
mov eax, dword [esi + 0x5dac48]
test eax, eax
je 0x4a8baa
push eax
call ebx
push dword [esi + 0x5dac4c]
push eax
call dword [sym.imp.USER32.dll_SetSystemCursor]
add esi, 0x800c
cmp esi, 0x780b4
jb 0x4a8b87
pop esi
pop ebx
jmp 0x4a8bd0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetCursor]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [edi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x1c], 0xffffffff
pop edi
ret
Function at 0x4a9540
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004a96f0
mov ecx, dword [edi + 0x20]
add esp, 4
movzx eax, word [edi + 0x14]
shr ecx, 1
sub ax, cx
mov ecx, edi
movzx esi, ax
call fcn.004a9760
mov ecx, eax
movsx eax, si
add ecx, eax
movzx eax, word [edi + 0x18]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x1c]
shr ecx, 1
sub ax, cx
mov ecx, edi
movzx esi, ax
call fcn.004a9730
mov ecx, eax
movsx eax, si
add ecx, eax
mov eax, dword [edi + 0x20]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x1c]
add eax, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
sub esi, dword [ebp - 0x3c]
sub edi, dword [ebp - 0x38]
push dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x4a967c
mov eax, dword [ebp - 0x28]
xor esi, esi
xor edi, edi
test eax, eax
jns 0x4a9616
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov eax, dword [ebp - 0x2c]
test eax, eax
jns 0x4a9624
cdq
mov esi, eax
xor esi, edx
sub esi, edx
push ecx
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
call fcn.004a96a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push eax
push edi
push esi
push dword [edx + 0x64]
push ecx
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp - 0x1c]
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a9dd0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x6590a4]
push 0
push dword [eax + 0xb8]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4a9df0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
push 0xc8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov ecx, ebx
push esi
call fcn.004aa8b0
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, ebx
call fcn.004a9730
mov ecx, dword [ebp - 4]
mov ebx, eax
call fcn.004a9760
mov esi, eax
mov eax, dword [ebp - 4]
push 0x14
mov edx, dword [eax + 0x20]
mov edi, dword [eax + 0x1c]
movzx eax, word [eax + 0x14]
lea ecx, [edx + esi*2]
shr edx, 1
sub ax, dx
push ecx
cwde
lea ecx, [edi + ebx*2]
sub eax, esi
shr edi, 1
push ecx
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x18]
sub ax, di
cwde
sub eax, ebx
push eax
mov eax, dword [0x6590a4]
push 0
push dword [eax + 0xb8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x6590a4]
push 8
push dword [eax + 0xb8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aa1c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push 0
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x10]
push eax
call fcn.0047d910
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
shr ecx, 1
sub eax, ecx
mov ecx, dword [ebx + 0x20]
cdq
idiv dword [ebx + 0x24]
shr ecx, 1
mov esi, eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
add esi, dword [ebx + 0x18]
cdq
idiv dword [ebx + 0x24]
mov dword [ebp - 0x10], esi
add eax, dword [ebx + 0x14]
push eax
push esi
mov dword [ebp - 0xc], eax
call fcn.0047d980
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0xc8
call edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp eax, 1
jne 0x4aa263
test esi, esi
jne 0x4aa259
push esi
push esi
push esi
push esi
push 2
call fcn.004a8aa0
push esi
push esi
push esi
push esi
push 4
call fcn.004a8aa0
add esp, 0x28
jmp 0x4aa297
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
jmp 0x4aa28f
cmp eax, 2
jne 0x4aa297
test esi, esi
jne 0x4aa287
push esi
push esi
push esi
push esi
push 8
call fcn.004a8aa0
push esi
push esi
push esi
push esi
push 0x10
call fcn.004a8aa0
add esp, 0x28
jmp 0x4aa297
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 2
call fcn.004aa640
add esp, 0xc
push 0x64
call edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047d980
add esp, 8
test esi, esi
je 0x4aa2bd
pop edi
pop esi
mov dword [ebx + 0xc], 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x64
call edi
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov ecx, ebx
push esi
call fcn.004aa8b0
push esi
mov dword [ebx + 0xc], 1
call edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b08b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x507d28
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4b09f0
cmp byte [ebx + 0x46], 0
je 0x4b09f0
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x4b090a
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
push esi
mov dword [ebp - 4], 0
push edi
lea esp, [esp]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4b097a
dec eax
je 0x4b097e
sub eax, 2
je 0x4b09ca
xor bl, bl
jmp 0x4b09cc
mov byte [ebx + 0x46], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x10]
cmovae eax, edx
sub esi, eax
je 0x4b09b0
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004d1ffb
add esp, 0x10
cmp esi, eax
jne 0x4b0976
cmp byte [ebx + 0x46], 0
je 0x4b09ca
test esi, esi
jne 0x4b0940
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040dfe0
jmp 0x4b0940
mov bl, 1
cmp dword [ebp - 0x14], 0x10
pop edi
pop esi
jb 0x4b09df
push dword [ebp - 0x28]
call fcn.004cf489
add esp, 4
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret