joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ff98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b9bc8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x440030
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x440010
xor eax, eax
push ebp
push 0x440009
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x440068
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440010
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x4b9bc8]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b9bc8], ax
mov esp, ebp
pop ebp
ret

Function at 0x44106c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c7f28], 0
je 0x4410cd
cmp word [0x4c8204], 0xd7b2
jne 0x441095
cmp dword [0x4c820c], 0
jbe 0x441095
mov eax, 0x4c8200
call dword [0x4c821c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4410f8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4b9bd4], 0
jne 0x4410e9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x441278
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b9bb4], 0
je 0x44129e
mov edx, esi
mov eax, ebx
call dword [0x4b9bb4]
jmp 0x4412ad
mov eax, 8
call fcn.0043f470
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c7f29], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x441240
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x44a72c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00441cdc
xor eax, eax
push ebp
push 0x44a7aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00441d80
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x44a775
mov eax, dword [ebx + 4]
call fcn.00441d80
push eax
push 0
call sub.ADVAPI32.DLL_RegisterEventSourceW
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.ADVAPI32.DLL_ReportEventW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a7b1
lea eax, [ebp - 4]
call fcn.00441ce4
ret

Function at 0x44b898
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44ba3d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.0043f8cc
cmp word [ebx + 0xa2], 0
je 0x44b8e1
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x44b8f5
lea esi, [ebp - 0xc]
jmp 0x44b8f7
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x44b904
xor edi, edi
jmp 0x44b911
mov eax, dword [ebx + 0x80]
call fcn.00441d80
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00441d80
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0044aefc
mov eax, dword [ebp - 0x14]
call fcn.00441d80
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00441d80
push eax
mov eax, dword [ebp - 4]
call fcn.00441d80
push eax
mov eax, ebx
call fcn.0044b048
push eax
mov eax, ebx
call fcn.0044b01c
push eax
mov eax, ebx
call fcn.0044afd4
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0044adc8
mov eax, dword [ebp - 0x18]
call fcn.00441d80
push eax
mov eax, dword [ebx + 8]
call fcn.00441d80
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_CreateServiceW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0x10], 0
jne 0x44b99a
call fcn.00434480
xor edx, edx
push ebp
push 0x44ba13
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x44b9d8
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x44b9ce
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44b9fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ba1a
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_CloseServiceHandle
ret
Function at 0x44ba4c
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x44ba78
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00441d80
push eax
push ebx
call sub.ADVAPI32.DLL_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x44ba9d
call fcn.00434480
xor eax, eax
push ebp
push 0x44bad4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_DeleteService
test eax, eax
jne 0x44babd
call fcn.00434480
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44badb
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_CloseServiceHandle
ret

Function at 0x45139c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00441cf4
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4513e3
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00441edc
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x455634
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004546c0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00454675
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004546b0
push ebp
ret 0x68af

Function at 0x456a40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x456a87
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x456a6a
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x456a7b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x456a87
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x459760
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x459766
ret
Function at 0x465578
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongW
mov edi, eax
test bl, bl
je 0x465599
test edi, 0x40000
je 0x4655b3
test bl, bl
jne 0x465634
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x465634
push esi
call sub.USER32.DLL_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.USER32.DLL_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4655e6
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x4655fb
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x46560a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x46561b
cmp byte [esp + 2], 0
je 0x465634
cmp byte [esp + 2], 0
je 0x46562c
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x465634
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4658e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.USER32.DLL_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x465906
mov eax, esp
push eax
push 0x4658a8
call sub.USER32.DLL_EnumWindows
jmp 0x465919
mov eax, esp
push eax
push 0x465888
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.USER32.DLL_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4659dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x465a30]
test si, 4
je 0x4659f1
or bl, 1
test si, 8
je 0x4659fb
or bl, 4
test si, 1
je 0x465a05
or bl, 8
test si, 2
je 0x465a0f
or bl, 0x10
test si, 0x10
je 0x465a19
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x465a28
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x465a34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x465a70]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x465a4e
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x465a5d
or bl, 4
test esi, 0x20000000
je 0x465a68
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46dfa4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46dfb6
add esp, 0xfffffff0
call fcn.00440618
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426978
mov eax, dword [0x4c48cc]
mov dword [eax + 4], ebx
mov dword [eax], 0x46e3b8
mov eax, dword [0x4c48d0]
mov dword [eax + 4], ebx
mov dword [eax], 0x46e3c4
mov eax, ebx
call fcn.0046e3d0
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41c850]
call fcn.00440198
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41c850]
call fcn.00440198
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41c850]
call fcn.00440198
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41c850]
call fcn.00440198
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41c850]
call fcn.00440198
mov dword [ebx + 0x74], 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, 0x469304
push eax
push 0
push 0
mov eax, dword [0x4c4924]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4589bc]
call fcn.0045a798
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4589bc]
call fcn.0045a798
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4589bc]
call fcn.0045a798
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4589bc]
call fcn.0045a798
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.0046e8c8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46e7a0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46e7a0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46e7a0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46e7a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e109
call fcn.00440670
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46e540
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e6ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46e6ce
mov dl, 1
mov eax, dword [0x41cf34]
call fcn.00421d2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00441cf4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46e6bd
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.0048c2c0
test al, al
je 0x46e6b0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x46e6fc
lea eax, [ebp - 0x394]
call fcn.0042ed58
push eax
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x46e6b0
xor eax, eax
push ebp
push 0x46e6a9
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 - 0x314]
push eax
push 0
push 0
push 0x46e76c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x46e692
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00441edc
mov edx, dword [ebp - 0x3a0]
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 0x46e692
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00441edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e6b0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46e5b3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00421b18
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 0x46e6f4
lea eax, [ebp - 0x3a0]
call fcn.00441ce4
ret

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

Disassembly:
push ecx
mov eax, dword [0x4cab00]
cmp byte [eax + 0xa9], 0
jne 0x46f14e
cmp dword [0x4cab18], 0
jne 0x46f10e
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x4bae20]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x4cab18], eax
cmp dword [0x4cab14], 0
jne 0x46f129
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x4cab14], eax
cmp dword [0x4cab1c], 0
jne 0x46f14e
push esp
push 0
push 0
mov eax, dword [0x4baf24]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4cab1c], eax
pop edx
ret
Function at 0x46f364
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x46f37b
add esp, 0xfffffff0
call fcn.00440618
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426978
mov eax, dword [0x4c4888]
cmp byte [eax], 0
jne 0x46f3a8
push 0
call sub.OLE32.DLL_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4c48d4]
cmp word [eax + 2], 0
jne 0x46f3c2
mov eax, dword [0x4c48d4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047118c
mov eax, dword [0x4c48d8]
cmp word [eax + 2], 0
jne 0x46f3dc
mov eax, dword [0x4c48d8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047139c
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4589bc]
call fcn.0045a798
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x471830
mov dl, 1
mov eax, dword [0x41c850]
call fcn.00440198
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x41c850]
call fcn.00440198
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x459570]
call fcn.00461afc
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x46f5b8
mov eax, dword [0x4c4880]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00461f00
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x471ae0
mov dl, 1
mov eax, dword [0x41c850]
call fcn.00440198
mov dword [ebx + 0x94], eax
push 0x100
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4c4880]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0042eba4
test eax, eax
je 0x46f4ea
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0042e988
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0042eb8c
test eax, eax
je 0x46f502
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.USER32.DLL_CharNextW
push eax
call sub.USER32.DLL_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, 0x100
call fcn.00441edc
push ebx
push 0x470c94
call fcn.004659c0
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x4c4888]
cmp byte [eax], 0
jne 0x46f553
mov eax, ebx
call fcn.0046f72c
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.00471d08
mov eax, ebx
call fcn.004728cc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46f5b0
call fcn.00440670
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46fa00
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x46faa2
cmp dword [ebx + 0x90], 0
jne 0x46fa9c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46f94c
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x46fa9c
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_GetWindowLongW
test al, 8
je 0x46fa62
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46fa9c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.0041f224
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46fa71
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46fcc0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4cab00]
cmp dword [eax + 0x170], 0
je 0x46fe25
test bl, bl
jne 0x46fd73
cmp dword [esi + 0x98], 0
jne 0x46fd68
mov eax, esi
call fcn.0047271c
push eax
push 0x46fbcc
call sub.USER32.DLL_EnumWindows
cmp dword [esi + 0x40], 0
je 0x46fd39
mov eax, dword [0x4cab00]
cmp byte [eax + 0xcf], 0
je 0x46fd39
mov eax, dword [esi + 0xd4]
call fcn.0044330c
mov edi, eax
cmp edi, 0
jl 0x46fd39
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46fd22
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46fd68
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0041f224
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46fd48
inc dword [esi + 0x98]
jmp 0x46fe25
cmp dword [esi + 0x98], 0
jle 0x46fe25
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x46fe25
cmp dword [esi + 0x40], 0
je 0x46fdd0
mov eax, dword [0x4cab00]
cmp byte [eax + 0xcf], 0
je 0x46fdd0
mov eax, dword [esi + 0xd4]
call fcn.0044330c
mov edi, eax
cmp edi, 0
jl 0x46fdd0
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46fdb9
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46fdff
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0041f224
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46fddf
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4653c8]
call fcn.004434cc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4709e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x470a4b
cmp byte [ebx + 0xcf], 0
jne 0x470a4b
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.USER32.DLL_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00441e30
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x470a38
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x470a58
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00441cf4
jmp 0x470a58
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00441cf4
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x471edc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x471f4a
mov eax, esi
call fcn.00486b58
test al, al
je 0x471f4a
mov eax, dword [ebx + 0x80]
call fcn.004867ac
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x471f4a
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x471f3e
push 0
mov eax, dword [ebx + 0x80]
call fcn.004867ac
push eax
call sub.USER32.DLL_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0047de14
jmp 0x471f4a
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00471d28
pop esi
pop ebx
ret