joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494da0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push 0
push edi
call ebx
cmp eax, 0x103
je 0x494e66
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4e30f4]
mov eax, dword [eax + 0xd0]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x494e70
mov ecx, dword [esp + 0x14]
call fcn.00494da0
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x494e70
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x494e70
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebx
cmp eax, 0x103
jne 0x494df0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494e80
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], ecx
push esi
push edi
test ebp, ebp
je 0x494f7e
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x494ea7
cmp word [edi], 0
jne 0x494eaf
test ebx, ebx
je 0x494f7e
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4e30f4]
mov eax, dword [eax + 0xd0]
or eax, 0x2001f
push eax
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x494f6f
test ebx, ebx
jne 0x494f58
mov ecx, dword [esp + 0x18]
call fcn.00494da0
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x494f6f
mov eax, dword [0x4ea0ec]
test al, 1
jne 0x494f28
push str.RegDeleteKeyExW
or eax, 1
push 0x4d9b88
mov dword [0x4ea0ec], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4ea0f0], ecx
jmp 0x494f2e
mov ecx, dword [0x4ea0f0]
mov eax, dword [0x4e30f4]
mov eax, dword [eax + 0xd0]
test eax, eax
je 0x494f4c
test ecx, ecx
je 0x494f4c
push 0
push eax
push edi
push ebp
call ecx
mov esi, eax
jmp 0x494f6f
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x494f6f
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
jne 0x494f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x494f85
mov esi, 0x57
mov ecx, esi
mov eax, dword [0x4e30f4]
test esi, esi
mov dword [eax + 0x30], ecx
setne al
mov ecx, dword [esp + 0x10]
movzx eax, al
push eax
call fcn.00447710
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x49d460
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x49d4e7
cmp word [esi], 0
je 0x49d4e7
push 4
push 0x4dba00
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
mov ecx, esi
test eax, eax
jne 0x49d496
lea ecx, [esi + 8]
mov edx, 0x4d8f30
call fcn.00406570
test eax, eax
je 0x49d4ce
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x49d4e7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x49d4c6
mov eax, dword [esp + 8]
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
je 0x49d4db
mov dword [edi], eax
cmp eax, 0xffffffff
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49db50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
or eax, 1
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x49dbf0
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x208
push eax
push edi
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x49dbf0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x49dbf0
shr ecx, 1
lea eax, [ecx - 1]
mov dword [esp + 0x18], eax
cmp word [edi + eax*2], 0
jne 0x49dbd7
test eax, eax
je 0x49dbf5
cmp word [edi + eax*2 - 2], 0
jne 0x49dbf5
sub eax, 1
mov dword [esp + 0x18], eax
jne 0x49dbc3
pop edi
pop ecx
ret
mov dword [esp + 0x18], ecx
cmp ecx, 0x104
jae 0x49dbf0
xor eax, eax
mov word [edi + ecx*2], ax
mov eax, dword [esp + 0x18]
pop edi
pop ecx
ret
xor eax, eax
mov word [edi], ax
pop edi
pop ecx
ret
Function at 0x49e420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebp
push edi
mov edi, edx
mov dword [esp + 0x24], edi
test ebp, ebp
je 0x49e44b
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x49e455
mov esi, dword [0x4e5a50]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x49e5e8
test edi, edi
jns 0x49e46a
mov eax, edi
neg eax
movzx eax, ax
jmp 0x49e49b
test edi, edi
mov dword [esp + 0x2c], ebx
mov eax, 1
mov dword [esp + 0x30], 0x4e9acc
cmovne eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0x49e3f0
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x30]
cmp eax, 0x4e9acc
je 0x49e5bf
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49e5bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49e5bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x49e5bf
cmp dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x3c]
cmovne ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x49e4fd
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea eax, [ecx + 6]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
xor ebp, ebp
movzx eax, word [ecx + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x49e5b9
mov edi, dword [esp + 0x20]
mov esi, 0x100
movzx edx, byte [edi]
test edx, edx
cmove edx, esi
xor ecx, ecx
cmp edx, ebp
jle 0x49e53c
cmp ebp, ebx
setl cl
jmp 0x49e541
cmp edx, ebx
setge cl
test ecx, ecx
mov eax, edi
cmove eax, dword [esp + 0x14]
add edi, 0xe
test ecx, ecx
mov dword [esp + 0x14], eax
cmove edx, ebp
sub dword [esp + 0x18], 1
mov ebp, edx
jne 0x49e527
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x49e5b9
movzx eax, word [eax + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x49e5b9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49e5b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x49e5b9
push 0
push 0
push 0
push 0x30000
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ebx, eax
jmp 0x49e5bb
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x49e5cf
test ebx, ebx
je 0x49e5cf
mov dword [ecx], esi
jmp 0x49e5da
test ebp, ebp
je 0x49e5da
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x49e5e8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
test edi, edi
jle 0x49e601
lea eax, [edi - 1]
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
xor eax, eax
cmp edi, 0xffffffff
cmovl eax, edi
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x49f930
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
push ebx
push esi
push edi
push 0x800
lea eax, [esp + 0x24]
mov dword [esp + 0x14], edx
push 0
push eax
mov ebx, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x49fac2
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8004
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x49fac2
mov edx, dword [ebp + 8]
test edx, edx
je 0x49f9d3
cmp dword [edx], 0
je 0x49f9d3
xor ecx, ecx
mov eax, edx
mov esi, 0x4dc910
nop dword [eax]
cmp edx, 0x4e4234
jne 0x49f9bc
mov eax, esi
jmp 0x49f9be
mov eax, dword [eax]
mov ax, word [eax]
add esi, 0xa
mov word [esp + ecx*2 + 0x20], ax
inc ecx
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x49f9b0
lea ecx, [esp + 0x20]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f9e0
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x49fac2
xor eax, eax
lea edi, [esp + 0x20]
mov ecx, 0x200
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x80
jne 0x49fa2b
mov eax, 0x660e
jmp 0x49fa3b
xor eax, eax
cmp ecx, 0xc0
setne al
add eax, 0x660f
lea edx, [esp + 0x18]
shl ecx, 0x10
push edx
push ecx
push dword [esp + 0x1c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x49fac2
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x49fac2
cmp byte [ebp + 0xc], 0
je 0x49fa8b
mov eax, dword [esp + 0x10]
add eax, 0x10
push eax
lea eax, [esp + 0x14]
push eax
push ebx
push 0
push 1
push 0
push dword [esp + 0x30]
call dword [0x4e5a14]
jmp 0x49faa1
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push 1
push 0
push dword [esp + 0x2c]
call dword [0x4e5a10]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0850
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4e86d0
push esi
mov esi, edx
call fcn.004064b0
test eax, eax
jne 0x4a0881
push 0x4b9c40
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4e7b70
call fcn.00447e20
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x4a0909
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4a0909
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x4a0909
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x4a0909
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4a09bd
test edi, edi
je 0x4a08f3
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4a0958
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x4a0897
cmp dword [0x4e86e8], 0
je 0x4a094b
cmp dword [0x4e86d8], 0
je 0x4a0931
push dword [0x4e86d0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e86d8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e86e8], 0
mov dword [0x4e86d0], 0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4e86e8], 0
je 0x4a09a1
cmp dword [0x4e86d8], 0
je 0x4a0987
push dword [0x4e86d0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e86d8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e86e8], 0
mov dword [0x4e86d0], 0
push 0x4b9c40
push 0x4ba1ec
mov ecx, 0x4e7b70
call fcn.00447e20
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4e86e8], 0
je 0x4a09ff
cmp dword [0x4e86d8], 0
je 0x4a09e5
push dword [0x4e86d0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e86d8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e86e8], 0
mov dword [0x4e86d0], 0
push 0x4b9c40
push 0x4cdb90
mov ecx, 0x4e7b70
call fcn.00447e20
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x4a16e0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
push edi
mov edi, edx
movzx eax, word [edi]
cmp eax, 0x41
je 0x4a16f9
cmp eax, 0x61
jne 0x4a1761
cmp word [edi + 2], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x4a1769
cmp word [ecx], 0
jne 0x4a1769
cmp word [eax], 0
jne 0x4a1769
cmp word [ebp], 0
jne 0x4a1769
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a1761
cmp byte [ebx + 0xea], 0
jne 0x4a1746
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a1761
mov ecx, esi
call fcn.004a2940
test al, al
jne 0x4a1761
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a175a
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
test dl, dl
jne 0x4a1793
cmp word [edi], 0
jne 0x4a1793
cmp word [ecx], 0
jne 0x4a1793
cmp word [eax], 0
jne 0x4a1793
cmp word [ebp], 0
jne 0x4a1793
mov ecx, ebx
call fcn.004a1f00
jmp 0x4a17ad
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0
push edx
push ebp
push eax
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004a1d60
add esp, 0x1c
test eax, eax
jne 0x4a17b6
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.004a1850
Function at 0x4a1850
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4a19c8
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
call ebp
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, dword [0x4e72e4]
je 0x4a1889
mov ecx, esi
call fcn.004a28c0
test al, al
jne 0x4a19c8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a18a5
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, ebx
jne 0x4a18b3
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [0x4e5a92], 0
jne 0x4a18cd
mov edx, ebx
mov ecx, esi
call fcn.004a17d0
test eax, eax
jne 0x4a19ca
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebx, ebx
je 0x4a192e
push 0
push ebx
call ebp
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4a1936
cmp dword [0x4e72e4], ebp
je 0x4a1913
mov ecx, ebx
call fcn.004a28c0
test al, al
jne 0x4a1913
push 1
push ebp
push dword [0x4e72e4]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test edi, edi
je 0x4a1936
cmp ebp, edi
je 0x4a1936
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x4a1936
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor edi, edi
nop dword [eax + eax]
mov edx, ebx
mov ecx, esi
call fcn.004a17d0
mov ebp, eax
test ebp, ebp
jne 0x4a1987
inc edi
cmp edi, 5
jl 0x4a1940
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
lea ecx, [eax + 2]
call fcn.00419ad0
push 0xffc3d44d
push ebp
push ebp
push ebp
mov dl, 0x12
lea ecx, [ebp + 2]
call fcn.00419ad0
add esp, 0x20
mov edx, ebx
mov ecx, esi
call fcn.004a17d0
mov ebp, eax
cmp byte [esp + 0x12], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4a19a3
push 0
push edi
push dword [0x4e72e4]
call ebx
cmp byte [esp + 0x13], 0
je 0x4a19b3
push 0
push dword [esp + 0x1c]
push edi
call ebx
test ebp, ebp
je 0x4a19c8
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4a1ae0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
sub esp, 8
cmp byte [esp + 0xc], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x4a1b4c
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4a1b59
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a1b59
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4a1b59
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a1b59
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x4a1bc5
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword fs:[0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], eax
nop dword [eax]
cmp dword [0x4e72e4], ebx
jne 0x4a1b99
mov edx, 1
mov ecx, 0x8000012f
call fcn.004019f0
jmp 0x4a1b9d
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a1bbb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x4a1b80
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4a1d60
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c6c
call fcn.004b79a0
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
movzx eax, word [eax]
push edi
mov edi, ecx
cmp eax, 0x41
je 0x4a1d91
cmp eax, 0x61
jne 0x4a1df4
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x4a1df4
cmp word [ebx], 0
jne 0x4a1df4
cmp word [edx], 0
jne 0x4a1df4
cmp word [esi], 0
jne 0x4a1df4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a1ddb
cmp byte [edi + 0xea], 0
jne 0x4a1ddb
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a1dd9
mov ecx, esi
call fcn.004a2940
test al, al
je 0x4a1ddb
xor esi, esi
cmp byte [ebp + 0x18], 0
je 0x4a1deb
test esi, esi
je 0x4a1deb
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x4a1e16
cmp word [ebx], ax
jne 0x4a1e16
cmp word [edx], ax
jne 0x4a1e16
cmp word [esi], ax
jne 0x4a1e16
mov ecx, edi
call fcn.004a1f00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.004498e0
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.004a2ac0
test eax, eax
je 0x4a1ec9
test byte [esp + 0x10], 2
mov al, byte [ebp + 0x14]
mov byte [esp + 0x183d], al
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x184c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1850], eax
je 0x4a1ed2
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x4a1ea1
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a1ec9
push dword [esp + 0x102c]
mov ecx, edi
call fcn.004a29b0
test al, al
jne 0x4a1e9a
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4a1ec9
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1864], eax
je 0x4a1eba
lea ecx, [esp + 0x10]
mov dword [esp + 0x1864], eax
call fcn.004a2fa0
push 0
lea ecx, [esp + 0x14]
call fcn.004a3080
test eax, eax
jne 0x4a1ee2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x4a1f80
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1844]
je 0x4a1ecb
test eax, eax
je 0x4a1ecb
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a2fa0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1854]
test ecx, ecx
je 0x4a3079
mov eax, dword [esi]
test eax, eax
je 0x4a3079
push edi
test al, 1
jne 0x4a2fcd
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4a2fe7
push 0x7fff
lea edi, [esi + 0x1860]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4a2fe7
mov word [edi], ax
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x4a3004
lea eax, [esi + 0x185c]
push eax
push dword [esi + 0x1854]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4a303f
lea eax, [esp + 8]
push eax
push dword [esi + 0x1854]
call edi
test eax, eax
je 0x4a303f
movzx eax, byte [esi + 0x182c]
lea edx, [esi + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0046e4f0
add esp, 8
test eax, eax
jne 0x4a303f
mov word [esi + 0x11a60], ax
mov eax, dword [esi]
pop edi
test al, 8
je 0x4a3060
push 0x101
lea eax, [esi + 0x1185e]
push eax
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [esi]
test eax, 0x100
je 0x4a3079
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0x1858], eax
pop esi
pop ecx
ret

Function at 0x4a38c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004b79a0
mov edx, dword [ecx + 8]
test edx, edx
je 0x4a395b
lea ecx, [esp]
call fcn.004498e0
mov al, byte [ebp + 8]
mov byte [esp + 0x1848], al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x184c], eax
mov eax, ecx
push eax
push 0x4a4000
mov dword [esp + 0x184c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1834], 0
je 0x4a395b
mov eax, dword [0x4e30f4]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a395b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e72e4], eax
je 0x4a3948
mov eax, dword [0x4e30f4]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4e30f4]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004019f0
mov eax, 1
mov esp, ebp
pop ebp
ret 8