joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4705b0
Capabilities:
Clear file content

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x4705dc
sub eax, dword [edi + 0x30]
sub eax, dword [edi + 8]
mov esi, dword [edi]
push 1
cdq
push edx
push eax
call dword [esi + 0x14]
mov dword [edi + 0x2c], 0
mov dword [edi + 8], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4705fb
cmp dword [edi + 0x2c], 0
jne 0x4705fb
mov eax, dword [edi]
push ecx
push dword [edi + 0x30]
mov ecx, edi
call dword [eax + 0x10]
mov dword [edi + 8], 0
mov eax, dword [edi]
mov ecx, edi
mov byte [edi + 0x28], 0
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [edi]
mov ecx, edi
mov ebx, dword [esp + 0x18]
push 0
push esi
mov eax, dword [eax + 0x14]
push ebx
mov dword [esp + 0x1c], edx
call eax
test al, al
je 0x470662
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x470662
mov eax, dword [esp + 0x10]
cmp esi, eax
jg 0x470642
jl 0x470646
cmp ebx, ebp
jb 0x470646
mov ebx, ebp
mov esi, eax
mov eax, dword [edi]
mov ecx, edi
push 0
push esi
push ebx
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x1c]
call eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
pop ecx
ret 8

Function at 0x473840
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x144
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4738c9
cmp byte [esi], 0
je 0x4738c9
push 4
push 0x4a61bc
push esi
call fcn.00487d0f
add esp, 0xc
mov ecx, esi
test eax, eax
jne 0x47386e
lea ecx, [esi + 4]
mov edx, 0x4a48f8
call fcn.0040a9c0
test eax, eax
je 0x4738a9
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4738c9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x47389e
mov eax, dword [esp + 8]
mov dword [edi], eax
mov al, 1
pop edi
pop esi
add esp, 0x144
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
test edi, edi
je 0x4738b8
mov dword [edi], ecx
xor eax, eax
cmp ecx, 0xffffffff
setne al
pop edi
pop esi
add esp, 0x144
ret
pop edi
xor al, al
pop esi
add esp, 0x144
ret

Function at 0x473ae0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x473b1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x473b1a
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret
Function at 0x473f10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00492d90
push esi
push edi
push 0x7fff
lea eax, [esp + 0xc]
mov edi, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x473f52
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0048e4b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x8000
ret
mov byte [edi], 0
pop edi
pop esi
add esp, 0x8000
ret
Function at 0x474830
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 0x474857
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
jmp 0x47485d
mov esi, dword [0x4af0ec]
test esi, esi
je 0x4749c2
test edi, edi
jns 0x474872
mov eax, edi
neg eax
movzx eax, ax
jmp 0x4748a3
test edi, edi
mov dword [esp + 0x1c], ebx
mov eax, 1
mov dword [esp + 0x20], 0x4afb3f
cmovne eax, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x474800
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x20]
cmp eax, 0x4afb3f
je 0x474999
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x474999
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x474999
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x47498f
mov ebp, dword [esp + 0x28]
cmp ebp, 0xffffffff
cmove ebp, dword [esp + 0x2c]
test ebp, ebp
jne 0x4748fb
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, eax
movzx eax, word [ebx + 4]
lea edx, [ebx + 6]
cmp eax, 1
jle 0x47493d
lea ebx, [edx + 0xe]
lea edi, [eax - 1]
lea ecx, [ecx]
mov al, byte [ebx]
mov cl, byte [edx]
cmp al, cl
jbe 0x474924
movzx eax, cl
xor ecx, ecx
cmp eax, ebp
setl cl
jmp 0x47492e
movzx eax, al
xor ecx, ecx
cmp eax, ebp
setge cl
test ecx, ecx
cmovne edx, ebx
add ebx, 0xe
dec edi
jne 0x474910
mov edi, dword [esp + 0x14]
movzx eax, word [edx + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x474993
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47498b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x474993
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 0x474995
mov ebp, dword [esp + 0x10]
xor ebx, ebx
jmp 0x474999
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4749a9
test ebx, ebx
je 0x4749a9
mov dword [ecx], esi
jmp 0x4749b4
test ebp, ebp
je 0x4749b4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x4749c2
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
test edi, edi
jle 0x4749db
lea eax, [edi - 1]
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
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_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4757f0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4b1010
push esi
mov esi, edx
call fcn.00405d70
test eax, eax
jne 0x475821
push 0x49e065
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4b09a0
call fcn.0042e360
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 0x4758a9
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4758a9
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x4758a9
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x4758a9
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 0x47595d
test edi, edi
je 0x475893
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4758f8
push edi
push ebx
push eax
call fcn.0048e4b0
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 0x475837
cmp dword [0x4b1028], 0
je 0x4758eb
cmp dword [0x4b1018], 0
je 0x4758d1
push dword [0x4b1010]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4b1018], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4b1028], 0
mov dword [0x4b1010], 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 [0x4b1028], 0
je 0x475941
cmp dword [0x4b1018], 0
je 0x475927
push dword [0x4b1010]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4b1018], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4b1028], 0
mov dword [0x4b1010], 0
push 0x49e065
push 0x49e1d8
mov ecx, 0x4b09a0
call fcn.0042e360
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4b1028], 0
je 0x47599f
cmp dword [0x4b1018], 0
je 0x475985
push dword [0x4b1010]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4b1018], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4b1028], 0
mov dword [0x4b1010], 0
push 0x49e065
push str.Out_of_memory.
mov ecx, 0x4b09a0
call fcn.0042e360
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x475d50
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x475d63
jmp dword [eax*4 + 0x475f0c]
call fcn.004023f0
cmp dword [0x4af994], 0
jne 0x475e31
cmp dword [esi + 0xc], 0
jne 0x475e31
mov edi, dword [esp + 0x14]
cmp dword [0x4b2498], esi
jne 0x475d96
test edi, edi
jne 0x475df3
push 0
lea eax, [esp + 0x13]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x475def
mov dword [0x4b2498], 0
test edi, edi
je 0x475de7
mov eax, dword [0x4af9a4]
test eax, eax
je 0x475dd6
push 0
push dword [esi + 0x18]
mov ecx, 0x4b09a0
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
call fcn.0042e850
mov ecx, dword [esi + 0x18]
mov edx, edi
call fcn.00473f10
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x475e22
cmp byte [esi + 0x17], 0
jne 0x475dfe
mov eax, dword [esi + 0xc]
jmp 0x475e00
mov eax, esi
test byte [eax + 0x15], 4
je 0x475e0c
push esi
call fcn.0042e980
mov byte [edi], 0
xor eax, eax
mov dword [0x4b2498], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4b2498], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0xc]
test edi, edi
je 0x475e9e
test ebx, ebx
jne 0x475e62
xor ecx, ecx
mov eax, esi
cmp byte [esi + 0x17], cl
cmove eax, ecx
test byte [eax + 0x15], 4
je 0x475e56
push esi
call fcn.0042e980
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 8]
cmp edi, eax
je 0x475e9e
cmp ebx, 0x186a0
jae 0x475e8f
mov cl, byte [eax]
test cl, cl
je 0x475e83
mov byte [edi], cl
lea eax, [eax + 1]
mov cl, byte [eax]
inc edi
test cl, cl
jne 0x475e77
mov byte [edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push eax
push edi
call fcn.0048e4b0
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
call fcn.00475d50
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, 0x4b1010
push esi
call fcn.00405720
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
test esi, esi
je 0x475f02
mov byte [eax + esi], cl
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x475eea
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
push dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push dword [esp + 0x18]
call eax
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x476830
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4769b8
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 [0x4b0948]
je 0x476869
mov ecx, esi
call fcn.00477810
test al, al
jne 0x4769b8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
test ebx, ebx
jne 0x476883
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x476897
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, ebx
jne 0x4768a5
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [0x4af9b1], 0
jne 0x4768bf
mov edx, ebx
mov ecx, esi
call fcn.004767d0
test eax, eax
jne 0x4769ba
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebx, ebx
je 0x476920
push 0
push ebx
call ebp
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x476928
cmp dword [0x4b0948], ebp
je 0x476905
mov ecx, ebx
call fcn.00477810
test al, al
jne 0x476905
push 1
push ebp
push dword [0x4b0948]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test edi, edi
je 0x476928
cmp ebp, edi
je 0x476928
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x476928
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor edi, edi
lea ebx, [ebx]
mov edx, ebx
mov ecx, esi
call fcn.004767d0
mov ebp, eax
test ebp, ebp
jne 0x476977
inc edi
cmp edi, 5
jl 0x476930
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
lea ecx, [eax + 2]
call fcn.00410880
push 0xffc3d44d
push ebp
push ebp
push ebp
mov dl, 0x12
lea ecx, [ebp + 2]
call fcn.00410880
add esp, 0x20
mov edx, ebx
mov ecx, esi
call fcn.004767d0
mov ebp, eax
cmp byte [esp + 0x12], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x476993
push 0
push edi
push dword [0x4b0948]
call ebx
cmp byte [esp + 0x13], 0
je 0x4769a3
push 0
push dword [esp + 0x1c]
push edi
call ebx
test ebp, ebp
je 0x4769b8
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 0x476ab0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
cmp byte [esp + 4], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x476b0d
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x476b1a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x476b1a
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x476b1a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x476b1a
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
test ebx, ebx
js 0x476b78
je 0x476b78
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call edi
mov edx, 1
mov dword [esp + 0x14], eax
mov ecx, 0x8000012f
call fcn.004027d0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x476b71
add ebx, dword [esp + 0x14]
lea ecx, [ecx]
call edi
mov ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x476b71
mov edx, 1
mov ecx, 0x8000012f
call fcn.004027d0
push esi
call ebp
test eax, eax
jne 0x476b50
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x476cf0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.00492d90
mov al, byte [edx]
mov dword [esp], edx
push ebx
mov ebx, dword [esp + 0x8e6c]
push ebp
mov ebp, dword [esp + 0x8e6c]
push esi
mov esi, dword [esp + 0x8e78]
push edi
mov edi, ecx
cmp al, 0x41
je 0x476d22
cmp al, 0x61
jne 0x476d7b
cmp byte [edx + 1], 0
jne 0x476d7b
cmp byte [ebp], 0
jne 0x476d7b
cmp byte [ebx], 0
jne 0x476d7b
cmp byte [esi], 0
jne 0x476d7b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x476d5a
cmp byte [edi + 0xca], 0
jne 0x476d5a
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and esi, eax
cmp byte [esp + 0x8e84], 0
je 0x476d6e
test esi, esi
je 0x476d6e
mov dword [edi + 0xa4], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
test al, al
jne 0x476d9c
cmp byte [ebp], al
jne 0x476d9c
cmp byte [ebx], al
jne 0x476d9c
cmp byte [esi], al
jne 0x476d9c
call fcn.00476eb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea ecx, [esp + 0x14]
call fcn.004307b0
push esi
push ebx
push ebp
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push edi
call fcn.00477970
test eax, eax
je 0x476e6b
test byte [esp + 0x14], 2
mov eax, dword [esp + 0x8e80]
mov byte [esp + 0xc3d], al
mov eax, dword [esp + 0x8e88]
mov dword [esp + 0xc4c], eax
mov eax, dword [esp + 0x8e8c]
mov dword [esp + 0xc50], eax
je 0x476e78
mov eax, dword [esp + 0x830]
cmp eax, 0xffff
je 0x476e43
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476e6b
cmp byte [edi + 0xca], 0
jne 0x476e3c
push dword [esp + 0x830]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x476e3c
push 0xfffffffffffffff0
push dword [esp + 0x834]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x476e6b
mov eax, dword [esp + 0x830]
cmp dword [esp + 0xc64], eax
je 0x476e5c
lea ecx, [esp + 0x14]
mov dword [esp + 0xc64], eax
call fcn.00477d00
push 0
lea ecx, [esp + 0x18]
call fcn.00477dc0
test eax, eax
jne 0x476e88
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8e60
ret
lea eax, [esp + 0x14]
push eax
push 0x476f20
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esp + 0x8e84], 0
mov eax, dword [esp + 0xc44]
je 0x476ea3
test eax, eax
je 0x476ea3
mov dword [edi + 0xa4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x4770b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x801c
call fcn.00492d90
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x4770d3
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004759c0
mov eax, dword [esp + 0x8038]
mov ecx, 0x1f4
mov ebx, dword [esp + 0x8030]
test eax, eax
cmove eax, ecx
mov ecx, 0x32
mov dword [esp + 0x8038], eax
mov eax, dword [esp + 0x803c]
cmp eax, 1
cmovl eax, ecx
mov dword [esp + 0x803c], eax
mov eax, 1
cmp ebx, eax
cmovl ebx, eax
test esi, esi
je 0x4772c5
lea eax, [esp + 0x1c]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4772c5
cmp ebx, dword [esp + 0x1c]
jg 0x4772c5
push 0
push esi
mov edx, 0x8000
lea ecx, [esp + 0x20]
call fcn.00473fe0
mov ebp, eax
add esp, 8
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x4772c5
dec ebx
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
lea ecx, [ecx]
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push 0
push ebx
push 0x403
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4771fe
mov eax, 0x7fff
cmp word [esp + 0x14], ax
ja 0x477269
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push ebp
push ebx
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x4771fe
movzx eax, word [esp + 0x14]
push 0
inc eax
push eax
lea eax, [esp + 0x30]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x477264
mov edx, dword [esp + 0x8034]
lea ecx, [esp + 0x28]
call fcn.00476670
test al, al
jne 0x47724c
test edi, edi
jne 0x47726d
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4772be
cmp dword [esp + 0x8038], edi
jl 0x477236
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x8038]
add ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
sub ecx, eax
cmp ecx, 5
jle 0x4772a8
mov ecx, dword [esp + 0x803c]
mov edx, 1
call fcn.004027d0
jmp 0x477180
mov ecx, dword [0x4af094]
push 1
push 0
push 0xffffffffffffffff
push 0x49e080
call fcn.004759c0
jmp 0x477269
mov byte [esp + 0x28], 0
test edi, edi
je 0x4772be
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.004759c0
mov esi, eax
mov ebx, dword [esp + 0x18]
push 0x8000
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x801c
ret
mov ecx, dword [0x4af094]
push 1
push 0
push 0xffffffffffffffff
push 0x4a09f8
call fcn.004759c0
mov esi, 1
jmp 0x477281
test edi, edi
mov ecx, 0x4a09f8
mov eax, 0x4a0cb8
cmove ecx, eax
cmp byte [ecx], 0x30
jne 0x4772df
cmp byte [ecx + 1], 0
je 0x4772ed
mov eax, dword [0x4ac1d8]
test byte [eax + 0xe0], 1
jne 0x47730a
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4af094]
call fcn.004759c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x801c
ret
push 0x49e065
push 0
push ecx
mov ecx, dword [0x4b0d10]
call fcn.0042ddd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x801c
ret
Function at 0x477d00
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x477db8
mov eax, dword [esi]
test eax, eax
je 0x477db8
push edi
test al, 1
jne 0x477d2c
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x477d45
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x477d45
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x477d5f
lea eax, [esi + 0xc54]
push eax
push dword [esi + 0xc50]
call edi
test byte [esi], 0x20
je 0x477d9a
lea eax, [esp + 8]
push eax
push dword [esi + 0xc50]
call edi
test eax, eax
je 0x477d9a
movzx eax, byte [esi + 0xc28]
lea edx, [esi + 0x8d58]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0044de60
add esp, 8
test eax, eax
jne 0x477d9a
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x477db8
push 0x101
lea eax, [esi + 0x8c57]
push eax
push dword [esi + 0xc50]
call dword [sym.imp.USER32.dll_GetClassNameA]
pop esi
pop ecx
ret

Function at 0x4784c0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.00492d90
push esi
mov esi, dword [ecx + 8]
test esi, esi
je 0x478530
lea ecx, [esp + 4]
call fcn.004307b0
mov eax, dword [esp + 0x8e64]
mov byte [esp + 0xc48], al
mov eax, dword [esp + 0x8e68]
mov dword [esp + 0xc4c], eax
lea eax, [esp + 4]
push eax
push 0x478b40
mov dword [esp + 0xc4c], esi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], 0
je 0x478530
mov ecx, dword [0x4ac1d8]
mov ecx, dword [ecx + 0x54]
cmp ecx, 0xffffffff
jle 0x478530
mov edx, 1
call fcn.004027d0
mov eax, 1
pop esi
add esp, 0x8e5c
ret 8

Function at 0x478540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x478558
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4ac1d8]
mov edi, eax
mov ecx, esi
push edi
call fcn.004789b0
cmp byte [esi], 0
mov ebx, eax
je 0x47858d
test ebx, ebx
jne 0x478591
push eax
push ebx
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00478640
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebx, ebx
jne 0x478608
test edi, edi
je 0x478608
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov ebp, eax
call fcn.004027d0
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4785f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x4785f1
mov edx, 1
mov ecx, 0x8000012f
call fcn.004027d0
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4785c4
mov eax, dword [0x4ac1d8]
mov ecx, dword [eax + 0x54]
cmp ecx, 0xffffffff
jle 0x478608
mov edx, 1
call fcn.004027d0
cmp byte [esi], 0
je 0x478622
push 0
push ebx
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00478640
pop edi
pop esi
pop ebp
pop ebx
ret 4
push dword [esp + 0x14]
mov ecx, esi
call fcn.004787a0
pop edi
pop esi
pop ebp
pop ebx
ret 4