joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d020
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 0x49d0a7
cmp word [esi], 0
je 0x49d0a7
push 4
push 0x4da518
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 0x49d056
lea ecx, [esi + 8]
mov edx, 0x4d7998
call fcn.00406460
test eax, eax
je 0x49d08e
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x49d0a7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x49d086
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 0x49d09b
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 0x49d620
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 0x49d6c0
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 0x49d6c0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x49d6c0
shr ecx, 1
lea eax, [ecx - 1]
mov dword [esp + 0x18], eax
cmp word [edi + eax*2], 0
jne 0x49d6a7
test eax, eax
je 0x49d6c5
cmp word [edi + eax*2 - 2], 0
jne 0x49d6c5
sub eax, 1
mov dword [esp + 0x18], eax
jne 0x49d693
pop edi
pop ecx
ret
mov dword [esp + 0x18], ecx
cmp ecx, 0x104
jae 0x49d6c0
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 0x49def0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x14
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 + 0x14], edi
test ebp, ebp
je 0x49df17
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
jmp 0x49df1d
mov esi, dword [0x4e4bfc]
test esi, esi
je 0x49e088
test edi, edi
jns 0x49df32
mov eax, edi
neg eax
movzx eax, ax
jmp 0x49df63
test edi, edi
mov dword [esp + 0x1c], ebx
mov eax, 1
mov dword [esp + 0x20], 0x4e8cc0
cmovne eax, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x49dec0
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x20]
cmp eax, 0x4e8cc0
je 0x49e05f
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49e05f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49e05f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x49e055
cmp dword [esp + 0x28], 0xffffffff
mov ebp, dword [esp + 0x2c]
cmovne ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x49dfbd
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, eax
movzx eax, word [ebx + 4]
lea edx, [ebx + 6]
cmp eax, 1
jbe 0x49e003
add ebx, 0x14
lea edi, [eax - 1]
nop
mov al, byte [ebx]
mov cl, byte [edx]
cmp al, cl
jbe 0x49dfe4
movzx eax, cl
xor ecx, ecx
cmp eax, ebp
setl cl
jmp 0x49dfee
movzx eax, al
xor ecx, ecx
cmp eax, ebp
setge cl
test ecx, ecx
mov eax, ebx
cmove eax, edx
add ebx, 0xe
mov edx, eax
sub edi, 1
jne 0x49dfd0
mov edi, dword [esp + 0x14]
movzx eax, word [edx + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x49e059
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49e051
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x49e059
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 0x49e05b
mov ebp, dword [esp + 0x10]
xor ebx, ebx
jmp 0x49e05f
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x49e06f
test ebx, ebx
je 0x49e06f
mov dword [ecx], esi
jmp 0x49e07a
test ebp, ebp
je 0x49e07a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x49e088
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
test edi, edi
jle 0x49e0a1
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, 0x14
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, 0x14
ret
Function at 0x49f110
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, 0x864
push ebx
push esi
push edi
push 0x800
lea eax, [esp + 0x74]
mov dword [esp + 0x14], edx
push 0
push eax
mov ebx, ecx
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x4db9d0]
lea eax, [esp + 0x28]
add esp, 0xc
movups xmmword [esp + 0x20], xmm0
movaps xmm0, xmmword [0x4db9b0]
push 0xf0000000
movups xmmword [esp + 0x34], xmm0
push 0x18
movaps xmm0, xmmword [0x4db9e0]
movups xmmword [esp + 0x48], xmm0
push 0
movaps xmm0, xmmword [0x4db990]
movups xmmword [esp + 0x5c], xmm0
push 0
movaps xmm0, xmmword [0x4db9c0]
push eax
movups xmmword [esp + 0x74], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x49f2e2
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 0x49f2e2
mov esi, dword [ebp + 8]
test esi, esi
je 0x49f1f7
cmp dword [esi], 0
je 0x49f1f7
lea edi, [esp + 0x20]
xor edx, edx
mov ecx, esi
sub edi, esi
nop dword [eax]
cmp esi, 0x4e3238
jne 0x49f1e4
mov eax, dword [edi + ecx]
lea eax, [eax*2 + 0x4db420]
jmp 0x49f1e6
mov eax, dword [ecx]
mov ax, word [eax]
add ecx, 4
mov word [esp + edx*2 + 0x70], ax
inc edx
cmp edx, 0x14
jb 0x49f1d0
lea ecx, [esp + 0x70]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f200
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x49f2e2
xor eax, eax
lea edi, [esp + 0x70]
mov ecx, 0x200
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x80
jne 0x49f24b
mov eax, 0x660e
jmp 0x49f25b
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 0x49f2e2
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x49f2e2
cmp byte [ebp + 0xc], 0
je 0x49f2ab
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 [0x4e4bc0]
jmp 0x49f2c1
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push 1
push 0
push dword [esp + 0x2c]
call dword [0x4e4bbc]
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 0x49ff40
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4e6cfc
push esi
mov esi, edx
call fcn.004061b0
test eax, eax
jne 0x49ff71
push 0x4b8c14
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4e6d58
call fcn.00447a20
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 0x49fff9
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x49fff9
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x49fff9
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x49fff9
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 0x4a00ad
test edi, edi
je 0x49ffe3
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4a0048
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 0x49ff87
cmp dword [0x4e6d14], 0
je 0x4a003b
cmp dword [0x4e6d04], 0
je 0x4a0021
push dword [0x4e6cfc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e6d04], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e6d14], 0
mov dword [0x4e6cfc], 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 [0x4e6d14], 0
je 0x4a0091
cmp dword [0x4e6d04], 0
je 0x4a0077
push dword [0x4e6cfc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e6d04], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e6d14], 0
mov dword [0x4e6cfc], 0
push 0x4b8c14
push 0x4b910c
mov ecx, 0x4e6d58
call fcn.00447a20
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4e6d14], 0
je 0x4a00ef
cmp dword [0x4e6d04], 0
je 0x4a00d5
push dword [0x4e6cfc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e6d04], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e6d14], 0
mov dword [0x4e6cfc], 0
push 0x4b8c14
push 0x4ccaa4
mov ecx, 0x4e6d58
call fcn.00447a20
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x4a0dd0
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 0x4a0de9
cmp eax, 0x61
jne 0x4a0e46
cmp word [edi + 2], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x4a0e4e
cmp word [ecx], 0
jne 0x4a0e4e
cmp word [eax], 0
jne 0x4a0e4e
cmp word [ebp], 0
jne 0x4a0e4e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a0e46
cmp byte [ebx + 0xea], 0
jne 0x4a0e2b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a0e46
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a0e3f
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
test dl, dl
jne 0x4a0e78
cmp word [edi], 0
jne 0x4a0e78
cmp word [ecx], 0
jne 0x4a0e78
cmp word [eax], 0
jne 0x4a0e78
cmp word [ebp], 0
jne 0x4a0e78
mov ecx, ebx
call fcn.004a15c0
jmp 0x4a0e92
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.004a1410
add esp, 0x1c
test eax, eax
jne 0x4a0e9b
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.004a0f30
Function at 0x4a0f30
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4a10b8
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 [0x4e6ce0]
je 0x4a0f69
mov ecx, esi
call fcn.004a1f60
test al, al
jne 0x4a10b8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
test ebx, ebx
jne 0x4a0f83
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a0f97
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, ebx
jne 0x4a0fa5
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [0x4e4c3b], 0
jne 0x4a0fbf
mov edx, ebx
mov ecx, esi
call fcn.004a0eb0
test eax, eax
jne 0x4a10ba
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebx, ebx
je 0x4a1020
push 0
push ebx
call ebp
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4a1028
cmp dword [0x4e6ce0], ebp
je 0x4a1005
mov ecx, ebx
call fcn.004a1f60
test al, al
jne 0x4a1005
push 1
push ebp
push dword [0x4e6ce0]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test edi, edi
je 0x4a1028
cmp ebp, edi
je 0x4a1028
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x4a1028
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor edi, edi
nop word [eax + eax]
mov edx, ebx
mov ecx, esi
call fcn.004a0eb0
mov ebp, eax
test ebp, ebp
jne 0x4a1077
inc edi
cmp edi, 5
jl 0x4a1030
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
lea ecx, [eax + 2]
call fcn.004189d0
push 0xffc3d44d
push ebp
push ebp
push ebp
mov dl, 0x12
lea ecx, [ebp + 2]
call fcn.004189d0
add esp, 0x20
mov edx, ebx
mov ecx, esi
call fcn.004a0eb0
mov ebp, eax
cmp byte [esp + 0x12], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4a1093
push 0
push edi
push dword [0x4e6ce0]
call ebx
cmp byte [esp + 0x13], 0
je 0x4a10a3
push 0
push dword [esp + 0x1c]
push edi
call ebx
test ebp, ebp
je 0x4a10b8
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 0x4a11c0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x4a121e
lea eax, [esp + 0xc]
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 0x4a122b
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a122b
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4a122b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a122b
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 0x4a1293
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 + 0x18], eax
nop
cmp dword [0x4e6ce0], ebx
jne 0x4a1269
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401a30
jmp 0x4a126d
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a128b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x4a1250
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a1410
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c6c
call fcn.004b7170
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 0x4a1441
cmp eax, 0x61
jne 0x4a1499
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x4a1499
cmp word [ebx], 0
jne 0x4a1499
cmp word [edx], 0
jne 0x4a1499
cmp word [esi], 0
jne 0x4a1499
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a1480
cmp byte [edi + 0xea], 0
jne 0x4a1480
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and esi, eax
cmp byte [ebp + 0x18], 0
je 0x4a1490
test esi, esi
je 0x4a1490
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x4a14bb
cmp word [ebx], ax
jne 0x4a14bb
cmp word [edx], ax
jne 0x4a14bb
cmp word [esi], ax
jne 0x4a14bb
mov ecx, edi
call fcn.004a15c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.00449520
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.004a20e0
test eax, eax
je 0x4a157a
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 0x4a1583
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x4a1552
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a157a
cmp byte [edi + 0xea], 0
jne 0x4a154b
push dword [esp + 0x102c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4a154b
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4a157a
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1864], eax
je 0x4a156b
lea ecx, [esp + 0x10]
mov dword [esp + 0x1864], eax
call fcn.004a25c0
push 0
lea ecx, [esp + 0x14]
call fcn.004a26a0
test eax, eax
jne 0x4a1593
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x4a1630
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1844]
je 0x4a157c
test eax, eax
je 0x4a157c
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a25c0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1854]
test ecx, ecx
je 0x4a2699
mov eax, dword [esi]
test eax, eax
je 0x4a2699
push edi
test al, 1
jne 0x4a25ed
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4a2607
push 0x7fff
lea edi, [esi + 0x1860]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4a2607
mov word [edi], ax
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x4a2624
lea eax, [esi + 0x185c]
push eax
push dword [esi + 0x1854]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4a265f
lea eax, [esp + 8]
push eax
push dword [esi + 0x1854]
call edi
test eax, eax
je 0x4a265f
movzx eax, byte [esi + 0x182c]
lea edx, [esi + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0046e070
add esp, 8
test eax, eax
jne 0x4a265f
mov word [esi + 0x11a60], ax
mov eax, dword [esi]
pop edi
test al, 8
je 0x4a2680
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 0x4a2699
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0x1858], eax
pop esi
pop ecx
ret

Function at 0x4a2ee0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004b7170
mov edx, dword [ecx + 8]
test edx, edx
je 0x4a2f7b
lea ecx, [esp]
call fcn.00449520
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 0x4a35e0
mov dword [esp + 0x184c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1834], 0
je 0x4a2f7b
mov eax, dword [0x4e211c]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a2f7b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e6ce0], eax
jne 0x4a2f6d
mov ecx, dword [0x4e211c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401a30
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e211c]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4a3220
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c70
call fcn.004b7170
push ebx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4a33ad
push 0
call fcn.004a33c0
test eax, eax
jne 0x4a3251
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4e211c]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004a3460
mov edx, dword [0x4e6468]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x10]
mov dword [0x4e6468], edx
call fcn.00449520
cmp byte [ebp + 8], 0
je 0x4a3295
mov byte [esp + 0x183d], 0
test edx, edx
je 0x4a329d
mov byte [esp + 0x183d], 1
mov eax, dword [0x4e6464]
mov dword [esp + 0x184c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1854], eax
lea eax, [esp + 0x10]
push eax
push 0x4a34f0
mov dword [esp + 0x1858], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1844]
test eax, eax
je 0x4a3380
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0x4a1ee0
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4a3312
mov ecx, dword [esp + 0x1844]
call fcn.004a2b40
mov dword [esp + 0x1844], esi
jmp 0x4a3319
mov esi, dword [esp + 0x1844]
mov ecx, esi
call fcn.004a0f30
mov ecx, dword [esp + 0x1844]
call fcn.004a2b40
mov eax, dword [0x4e211c]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a33ad
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e6ce0], eax
jne 0x4a3365
mov ecx, dword [0x4e211c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401a30
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4e211c]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4e6468]
test eax, eax
je 0x4a33ad
cmp eax, 1
mov dword [0x4e6468], 0
setg al
test al, al
je 0x4a33ad
mov ecx, ebx
call fcn.004a2b40
push 0
mov ecx, esi
call fcn.004a3220
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x7d2370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x7d238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x7fb074
push ecx
mov edi, eax
call fcn.007e6198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7d23cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.007e602e
push esi
call fcn.007e5fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret