joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454fec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x455024]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455005
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455014
or bl, 4
test esi, 0x20000000
je 0x45501f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45b6cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b6de
add esp, 0xfffffff0
call fcn.00403624
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004226f0
mov eax, dword [0x4ae800]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ba70
mov eax, dword [0x4ae814]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ba7c
mov eax, ebx
call fcn.0045ba88
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419954]
call fcn.004032d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419954]
call fcn.004032d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419954]
call fcn.004032d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419954]
call fcn.004032d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419954]
call fcn.004032d0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x457ea4
push eax
push 0
push 0
mov eax, dword [0x4aea84]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42415c]
call fcn.00425898
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42415c]
call fcn.00425898
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42415c]
call fcn.00425898
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045bf38
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bdcc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bdcc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bdcc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b81b
call fcn.0040367c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45bbb0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bd5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45bd3c
mov dl, 1
mov eax, dword [0x419fb8]
call fcn.004032d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040d4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45bd2b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00449a64
test al, al
je 0x45bd1e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45bd6c
lea eax, [ebp - 0x254]
call fcn.0040959c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bd1e
xor eax, eax
push ebp
push 0x45bd17
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45bda4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45bd00
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404344
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45bd00
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd1e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45bc21
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e304
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd62
lea eax, [ebp - 0x260]
call fcn.004040d4
ret

Function at 0x45c6d8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4afbb8]
cmp byte [eax + 0xa5], 0
jne 0x45c749
cmp dword [0x4afbd0], 0
jne 0x45c70a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c694
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4afbd0], eax
cmp dword [0x4afbcc], 0
jne 0x45c725
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4afbcc], eax
cmp dword [0x4afbd4], 0
jne 0x45c749
push esp
push 0
push 0
push 0x45c638
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4afbd4], eax
pop edx
ret
Function at 0x45c840
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c857
add esp, 0xfffffff0
call fcn.00403624
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004226f0
mov eax, dword [0x4aea64]
cmp word [eax + 2], 0
jne 0x45c87f
mov eax, dword [0x4aea64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045dfc0
mov eax, dword [0x4aebc0]
cmp word [eax + 2], 0
jne 0x45c899
mov eax, dword [0x4aebc0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e1b8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419954]
call fcn.004032d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419954]
call fcn.004032d0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x424c04]
call fcn.0042ca68
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45ca20
mov eax, dword [0x4ae8b4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042ce38
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e758
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ae8b4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d400
test eax, eax
je 0x45c98e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f90
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d428
test eax, eax
je 0x45c9a2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404344
mov eax, dword [0x4ae67c]
cmp byte [eax], 0
jne 0x45c9d6
mov eax, ebx
call fcn.0045cb48
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045e934
mov eax, ebx
call fcn.0045f2f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45ca16
call fcn.0040367c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cdc8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4afbb8]
cmp dword [eax + 0x30], 0
je 0x45ce72
cmp dword [ebx + 0x94], 0
jne 0x45ce6c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45cd58
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ce6c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45ce32
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ce6c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041bf84
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ce41
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d9d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45da09
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041c4
jmp 0x45da16
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404128
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45eb10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45eb51
mov eax, esi
call fcn.0044504c
test al, al
je 0x45eb51
mov eax, dword [ebx + 0x84]
call fcn.00444d48
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45eb51
push 0
mov eax, dword [ebx + 0x84]
call fcn.00444d48
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4728ec
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x418f04]
call fcn.00404a8c
xor eax, eax
push ebp
push 0x472a30
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ad890], 0
jne 0x47293f
mov ecx, dword [0x4ae6a0]
mov dl, 1
mov eax, dword [0x407808]
call fcn.0040c630
call fcn.00403a8c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402ca8
mov eax, ebx
call fcn.0040493c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x472a40
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405e0c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040494c
test eax, eax
jle 0x4729d7
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4729d0
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040435c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404344
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004086b4
test eax, eax
jne 0x4729d0
mov ebx, 0x15
jmp 0x4729dc
mov ebx, 0x10
jmp 0x4729dc
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4ad890]
call fcn.00472844
mov eax, dword [ebp - 8]
call fcn.00472844
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405e24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472a37
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004040f8
lea eax, [ebp - 0x10]
mov edx, dword [0x418f04]
call fcn.00404b5c
ret
Function at 0x4014f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40151c
xor eax, eax
leave
ret 0xc
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
add dword [ebp - 8], 0x20
push dword [ebp - 8]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 1
leave
ret 0xc

Function at 0x4015d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4015fb
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x401a70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x401a60
push 0
push 0
call sub.kernel32.dll_CreateThread
leave
ret 4
Function at 0x40138a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
and byte [ebp - 5], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x401519
push 4
lea eax, [ebp - 4]
pop ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push 0
push str.OperatingMode
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x401519
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.PrimaryDevices
push dword [ebp + 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SecondaryDevices
push dword [ebp + 8]
call esi
mov ebx, 0x104
lea eax, [ebp - 0x114]
push ebx
push 0
push eax
mov dword [ebp - 4], ebx
call fcn.0040ca70
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.PrimaryMode
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 4]
lea ecx, [edi + 0xc]
and byte [ebp + eax - 0x114], 0
lea eax, [ebp - 0x114]
push eax
call fcn.00401523
push ebx
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 4], ebx
call fcn.0040ca70
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SecondaryMode
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 4]
lea ebx, [edi + 0x10]
mov ecx, ebx
and byte [ebp + eax - 0x114], 0
lea eax, [ebp - 0x114]
push eax
call fcn.00401523
lea eax, [edi + 0xc]
push eax
call fcn.0040be6c
push ebx
call fcn.0040be6c
pop ecx
lea eax, [ebp - 4]
pop ecx
mov dword [ebp - 4], 0x10
push eax
lea eax, [edi + 0x14]
push eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push str.ZoomArea
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4014d9
mov byte [edi + 0x24], 1
lea eax, [ebp - 4]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.ZoomLockStatus
mov dword [ebp - 4], 4
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40150b
cmp dword [ebp - 0x10], ebx
mov byte [edi + 0x2c], 1
setne al
mov dword [edi + 0x28], eax
push dword [ebp + 8]
mov ecx, edi
call fcn.004018a1
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4015a6
Capabilities:
Set registry value

Disassembly:
mov eax, 0x414ff4
call fcn.0040ca3c
sub esp, 0x114
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0xd], bl
je 0x40173a
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push edi
push 4
push ebx
push str.OperatingMode
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x40173a
lea eax, [edi + 4]
push 4
push eax
push 4
push ebx
push str.PrimaryDevices
push dword [ebp + 8]
call esi
lea eax, [edi + 8]
push 4
push eax
push 4
push ebx
push str.SecondaryDevices
push dword [ebp + 8]
call esi
mov eax, dword [edi + 0xc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x401621
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
call fcn.0040bd4f
pop ecx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x40163c
call fcn.0040174e
jmp 0x40163e
xor eax, eax
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040cb50
lea eax, [ebp - 0x120]
push eax
call fcn.0040cad0
add esp, 0xc
push eax
lea eax, [ebp - 0x120]
push eax
push 1
push ebx
push str.PrimaryMode
push dword [ebp + 8]
call esi
mov eax, dword [edi + 0x10]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x401683
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.0040bd4f
pop ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40169f
call fcn.0040174e
jmp 0x4016a1
xor eax, eax
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040cb50
lea eax, [ebp - 0x120]
push eax
call fcn.0040cad0
add esp, 0xc
push eax
lea eax, [ebp - 0x120]
push eax
push 1
push ebx
push str.SecondaryMode
push dword [ebp + 8]
call esi
cmp byte [edi + 0x24], bl
je 0x4016ea
lea eax, [edi + 0x14]
push 0x10
push eax
push 3
push ebx
push str.ZoomArea
push dword [ebp + 8]
call esi
cmp byte [edi + 0x2c], bl
je 0x401711
cmp dword [edi + 0x28], ebx
mov dword [ebp - 0x1c], ebx
je 0x4016fe
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push ebx
push str.ZoomLockStatus
push dword [ebp + 8]
call esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00402140
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
cmp ecx, ebx
je 0x40172e
call fcn.0040112d
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x40173a
call fcn.0040112d
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x403ec8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x415296
call fcn.0040ca3c
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00405888
lea eax, [esi + 0x14]
mov byte [esi + 0x24], bl
push eax
mov byte [esi + 0x2c], bl
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404e6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], bl
je 0x404ee3
push 4
lea eax, [ebp - 8]
pop edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.TVOverScan
mov dword [ebp - 0xc], ebx
push dword [ebp + 8]
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x404ee3
cmp dword [ebp - 0xc], ebx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], edi
setne al
mov dword [ecx + 0x18], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.TVVideoFormat
push dword [ebp + 8]
call esi
test eax, eax
jne 0x404ee3
mov eax, dword [ebp - 0x10]
mov byte [ebp - 1], 1
mov dword [eax + 0x1c], ebx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405382
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x41541c
call fcn.0040ca3c
sub esp, 0x130
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x13c]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.0040ca70
mov al, byte [ebp + 0xb]
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 0xd], 1
push ebx
mov byte [ebp - 0x38], al
call fcn.004056e6
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 4], ebx
push eax
push ebx
push dword [ebp + 8]
call edi
cmp eax, ebx
jne 0x40547f
cmp byte [ebp - 0xd], bl
je 0x405420
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0040cad0
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.004058f3
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x40545c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0040cad0
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.004058f3
lea eax, [ebp - 0x20]
inc dword [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x18], esi
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
jmp 0x4053e5
mov eax, dword [ebp - 0x14]
cmp dword [0x41d880], eax
jne 0x4054a0
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x405496
mov eax, 0x416374
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004056e6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x406234
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, 0x41a5e8
lea edi, [ebp - 0x20]
mov ecx, dword [0x41d91c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
cmp ecx, ebx
mov byte [ebp - 1], bl
movsw word es:[edi], word [esi]
mov dword [ebp - 0xc], ebx
je 0x406263
call fcn.0040174e
jmp 0x406265
xor eax, eax
push eax
call fcn.0040a79e
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp esi, ebx
pop ecx
je 0x4062b6
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push 0x416638
push esi
mov dword [ebp - 8], ebx
call dword [eax]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4062ab
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4062a2
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp byte [ebp - 1], bl
jne 0x4062bf
push ebx
push ebx
push 2
push dword [ebp + 8]
call edi
mov esi, dword [ebp + 0xc]
cmp dword [esi], ebx
jne 0x40634d
cmp dword [ebp - 0xc], ebx
je 0x40634d
push esi
push 0x416578
push 0x15
push ebx
push 0x4165a8
mov byte [ebp - 1], bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esi]
cmp ecx, ebx
je 0x406342
mov eax, dword [0x41d91c]
cmp eax, ebx
je 0x4062f9
mov eax, dword [eax]
jmp 0x4062fb
xor eax, eax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jl 0x406342
mov eax, dword [esi]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x406342
cmp dword [ebp + 0xc], ebx
je 0x406342
mov eax, dword [esi]
lea edx, [ebp - 8]
mov dword [ebp - 8], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x406342
cmp dword [ebp - 8], ebx
je 0x40634d
mov esi, dword [esi]
push esi
mov eax, dword [esi]
call dword [eax + 0xc]
test eax, eax
jge 0x40634d
push ebx
push ebx
push 2
push dword [ebp + 8]
call edi
jmp 0x406351
mov byte [ebp - 1], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push 0x4088a2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret