joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004c5460
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
lea eax, [ebp - 0x1000c]
mov dword [ebp - 4], esi
push eax
push 0x8000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor edx, edx
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x1000c]
call fcn.00492bb0
mov ebx, dword [ebp + 0x10]
test al, al
jne 0x489c83
push 0
push 0
push 1
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1000c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x489c80
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489c00
sub ecx, edx
sar ecx, 1
lea eax, [ebx + ecx*2]
push 0
mov dword [ebp + 0x10], eax
lea edi, [ecx*2 + 2]
mov ecx, 0x5d
mov word [eax], cx
lea eax, [ebp + 0xc]
push eax
push 4
push 0x4ecc14
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x489c5a
cmp dword [ebp + 0xc], 4
jne 0x489c5a
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x489c5a
cmp dword [ebp + 0xc], edi
je 0x489c61
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
mov ecx, 0
sbb eax, eax
and eax, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov word [eax], cx
je 0x489d3f
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x489ca0
lea ecx, [ebp - 0x1000c]
push ecx
push dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x489d01
push 0
mov ecx, esi
call fcn.0042e830
lea eax, [eax*2 + 4]
call fcn.004c5380
mov edi, dword [ebp + 8]
mov eax, esp
mov dword [ebp + 0x10], eax
mov edx, eax
movzx ecx, word [edi]
test cx, cx
je 0x489cee
mov esi, ecx
sub edi, eax
nop dword [eax + eax]
xor ecx, ecx
movzx eax, si
cmp si, 0xa
cmovne ecx, eax
mov word [edx], cx
add edx, 2
movzx esi, word [edi + edx]
test si, si
jne 0x489cd0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [edx], ecx
lea ecx, [ebp - 0x1000c]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov esi, eax
lea eax, [ebp - 0x1000c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test esi, esi
je 0x489d3f
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4cd350
call fcn.00495fe0
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4f48cc]
test byte [eax + 0x100], 1
jne 0x489d72
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e25ec
call fcn.00495fe0
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
push 0x4cd2cc
push 0
push 0x4e25ec
call fcn.0043b880
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48a4d0
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 0x48a596
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4f48cc]
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 0x48a5a0
mov ecx, dword [esp + 0x14]
call fcn.0048a4d0
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48a5a0
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x48a5a0
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 0x48a520
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 0x48a5b0
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 0x48a6ae
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x48a5d7
cmp word [edi], 0
jne 0x48a5df
test ebx, ebx
je 0x48a6ae
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4f48cc]
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 0x48a69f
test ebx, ebx
jne 0x48a688
mov ecx, dword [esp + 0x18]
call fcn.0048a4d0
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48a69f
mov eax, dword [0x4fbda4]
test al, 1
jne 0x48a658
push str.RegDeleteKeyExW
or eax, 1
push str.advapi32
mov dword [0x4fbda4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4fbda8], ecx
jmp 0x48a65e
mov ecx, dword [0x4fbda8]
mov eax, dword [0x4f48cc]
mov eax, dword [eax + 0xd0]
test eax, eax
je 0x48a67c
test ecx, ecx
je 0x48a67c
push 0
push eax
push edi
push ebp
call ecx
mov esi, eax
jmp 0x48a69f
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x48a69f
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 0x48a6b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x48a6b5
mov esi, 0x57
mov ecx, esi
mov eax, dword [0x4f48cc]
test esi, esi
mov dword [eax + 0x30], ecx
setne al
mov ecx, dword [esp + 0x10]
movzx eax, al
push eax
call fcn.0043b920
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x492bb0
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 0x492c36
cmp word [esi], 0
je 0x492c36
push 4
push 0x4ed250
push esi
call fcn.004b7458
add esp, 0xc
mov ecx, esi
test eax, eax
jne 0x492be5
lea ecx, [esi + 8]
mov edx, 0x4ea378
call fcn.0040bad0
test eax, eax
je 0x492c1d
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x492c36
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x492c15
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 0x492c2a
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 0x4932b0
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 0x493350
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 0x493350
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x493350
shr ecx, 1
lea eax, [ecx - 1]
mov dword [esp + 0x18], eax
cmp word [edi + eax*2], 0
jne 0x493337
test eax, eax
je 0x493355
cmp word [edi + eax*2 - 2], 0
jne 0x493355
sub eax, 1
mov dword [esp + 0x18], eax
jne 0x493323
pop edi
pop ecx
ret
mov dword [esp + 0x18], ecx
cmp ecx, 0x104
jae 0x493350
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 0x493b90
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 0x493bbb
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x493bc5
mov esi, dword [0x4f7950]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x493d58
test edi, edi
jns 0x493bda
mov eax, edi
neg eax
movzx eax, ax
jmp 0x493c0b
test edi, edi
mov dword [esp + 0x2c], ebx
mov eax, 1
mov dword [esp + 0x30], 0x4fb9a8
cmovne eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0x493b60
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x30]
cmp eax, 0x4fb9a8
je 0x493d2f
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x493d2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x493d2f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x493d2f
cmp dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x3c]
cmovne ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x493c6d
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 0x493d29
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 0x493cac
cmp ebp, ebx
setl cl
jmp 0x493cb1
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 0x493c97
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x493d29
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 0x493d29
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x493d29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x493d29
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 0x493d2b
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x493d3f
test ebx, ebx
je 0x493d3f
mov dword [ecx], esi
jmp 0x493d4a
test ebp, ebp
je 0x493d4a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x493d58
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
test edi, edi
jle 0x493d71
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 0x494f00
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 fcn.004ad280
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 0x495092
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 0x495092
mov edx, dword [ebp + 8]
test edx, edx
je 0x494fa3
cmp dword [edx], 0
je 0x494fa3
xor ecx, ecx
mov eax, edx
mov esi, str.mKECEbstuExKfEDmUSWRiqzmfgWjaNHDGwuGxyyJGzqEzfQLiKkWWWjQNsPjhLNUZsrvvVvhPpPeihKeemHANxVcoHx
nop dword [eax]
cmp edx, 0x4f48dc
jne 0x494f8c
mov eax, esi
jmp 0x494f8e
mov eax, dword [eax]
mov ax, word [eax]
add esi, 0xe
mov word [esp + ecx*2 + 0x20], ax
inc ecx
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x494f80
lea ecx, [esp + 0x20]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494fb0
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 0x495092
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 0x494ffb
mov eax, 0x660e
jmp 0x49500b
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 0x495092
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x495092
cmp byte [ebp + 0xc], 0
je 0x49505b
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 [0x4f7918]
jmp 0x495071
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push 1
push 0
push dword [esp + 0x2c]
call dword [0x4f7914]
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 0x495e10
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4f9a54
push esi
mov esi, edx
call fcn.00405c40
test eax, eax
jne 0x495e41
push 0x4cd2cc
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4f9a70
call fcn.0043bff0
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 0x495ec9
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x495ec9
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x495ec9
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x495ec9
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 0x495f7d
test edi, edi
je 0x495eb3
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x495f18
push edi
push ebx
push eax
call fcn.004aef60
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 0x495e57
cmp dword [0x4f9a6c], 0
je 0x495f0b
cmp dword [0x4f9a5c], 0
je 0x495ef1
push dword [0x4f9a54]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4f9a5c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4f9a6c], 0
mov dword [0x4f9a54], 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 [0x4f9a6c], 0
je 0x495f61
cmp dword [0x4f9a5c], 0
je 0x495f47
push dword [0x4f9a54]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4f9a5c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4f9a6c], 0
mov dword [0x4f9a54], 0
push 0x4cd2cc
push 0x4cd7d4
mov ecx, 0x4f9a70
call fcn.0043bff0
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4f9a6c], 0
je 0x495fbf
cmp dword [0x4f9a5c], 0
je 0x495fa5
push dword [0x4f9a54]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4f9a5c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4f9a6c], 0
mov dword [0x4f9a54], 0
push 0x4cd2cc
push str.Out_of_memory.
mov ecx, 0x4f9a70
call fcn.0043bff0
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x496dd0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x496f48
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 [0x4f9a38]
je 0x496e09
mov ecx, esi
call fcn.00497e30
test al, al
jne 0x496f48
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x496e25
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, ebx
jne 0x496e33
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [0x4f79a2], 0
jne 0x496e4d
mov edx, ebx
mov ecx, esi
call fcn.00496d50
test eax, eax
jne 0x496f4a
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebx, ebx
je 0x496eae
push 0
push ebx
call ebp
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x496eb6
cmp dword [0x4f9a38], ebp
je 0x496e93
mov ecx, ebx
call fcn.00497e30
test al, al
jne 0x496e93
push 1
push ebp
push dword [0x4f9a38]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test edi, edi
je 0x496eb6
cmp ebp, edi
je 0x496eb6
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x496eb6
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.00496d50
mov ebp, eax
test ebp, ebp
jne 0x496f07
inc edi
cmp edi, 5
jl 0x496ec0
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
lea ecx, [eax + 2]
call fcn.004124d0
push 0xffc3d44d
push ebp
push ebp
push ebp
mov dl, 0x12
lea ecx, [ebp + 2]
call fcn.004124d0
add esp, 0x20
mov edx, ebx
mov ecx, esi
call fcn.00496d50
mov ebp, eax
cmp byte [esp + 0x12], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x496f23
push 0
push edi
push dword [0x4f9a38]
call ebx
cmp byte [esp + 0x13], 0
je 0x496f33
push 0
push dword [esp + 0x1c]
push edi
call ebx
test ebp, ebp
je 0x496f48
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, ebp
pop edi
pop esi
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 0x497060
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 0x4970cc
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 0x4970d9
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 0x4970d9
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4970d9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4970d9
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 0x497145
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 [0x4f9a38], ebx
jne 0x497119
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401890
jmp 0x49711d
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49713b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x497100
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 0x4972e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c6c
call fcn.004c5460
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 0x497311
cmp eax, 0x61
jne 0x497374
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x497374
cmp word [ebx], 0
jne 0x497374
cmp word [edx], 0
jne 0x497374
cmp word [esi], 0
jne 0x497374
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x49735b
cmp byte [edi + 0xea], 0
jne 0x49735b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x497359
mov ecx, esi
call fcn.00497eb0
test al, al
je 0x49735b
xor esi, esi
cmp byte [ebp + 0x18], 0
je 0x49736b
test esi, esi
je 0x49736b
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x497396
cmp word [ebx], ax
jne 0x497396
cmp word [edx], ax
jne 0x497396
cmp word [esi], ax
jne 0x497396
mov ecx, edi
call fcn.00497480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0043dda0
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.00498030
test eax, eax
je 0x497449
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 0x497452
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x497421
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x497449
push dword [esp + 0x102c]
mov ecx, edi
call fcn.00497f20
test al, al
jne 0x49741a
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x497449
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1864], eax
je 0x49743a
lea ecx, [esp + 0x10]
mov dword [esp + 0x1864], eax
call fcn.004984f0
push 0
lea ecx, [esp + 0x14]
call fcn.004985d0
test eax, eax
jne 0x497462
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x497500
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1844]
je 0x49744b
test eax, eax
je 0x49744b
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret