joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f0d0
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 0x46f0fc
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 0x46f11b
cmp dword [edi + 0x2c], 0
jne 0x46f11b
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 0x46f182
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x46f182
mov eax, dword [esp + 0x10]
cmp esi, eax
jg 0x46f162
jl 0x46f166
cmp ebx, ebp
jb 0x46f166
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 0x472360
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x144
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4723e9
cmp byte [esi], 0
je 0x4723e9
push 4
push 0x4a3dcc
push esi
call fcn.0048682f
add esp, 0xc
mov ecx, esi
test eax, eax
jne 0x47238e
lea ecx, [esi + 4]
mov edx, 0x4a250c
call fcn.00409840
test eax, eax
je 0x4723c9
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4723e9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x4723be
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 0x4723d8
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 0x472600
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 0x47263d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x47263a
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 0x472a30
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004918b0
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 0x472a72
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0048cfd0
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 0x473350
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 0x473377
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
jmp 0x47337d
mov esi, dword [0x4ad120]
test esi, esi
je 0x4734e2
test edi, edi
jns 0x473392
mov eax, edi
neg eax
movzx eax, ax
jmp 0x4733c3
test edi, edi
mov dword [esp + 0x1c], ebx
mov eax, 1
mov dword [esp + 0x20], 0x4adbc3
cmovne eax, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x473320
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x20]
cmp eax, 0x4adbc3
je 0x4734b9
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4734b9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4734b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4734af
mov ebp, dword [esp + 0x28]
cmp ebp, 0xffffffff
cmove ebp, dword [esp + 0x2c]
test ebp, ebp
jne 0x47341b
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 0x47345d
lea ebx, [edx + 0xe]
lea edi, [eax - 1]
lea ecx, [ecx]
mov al, byte [ebx]
mov cl, byte [edx]
cmp al, cl
jbe 0x473444
movzx eax, cl
xor ecx, ecx
cmp eax, ebp
setl cl
jmp 0x47344e
movzx eax, al
xor ecx, ecx
cmp eax, ebp
setge cl
test ecx, ecx
cmovne edx, ebx
add ebx, 0xe
dec edi
jne 0x473430
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 0x4734b3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4734ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4734b3
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 0x4734b5
mov ebp, dword [esp + 0x10]
xor ebx, ebx
jmp 0x4734b9
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4734c9
test ebx, ebx
je 0x4734c9
mov dword [ecx], esi
jmp 0x4734d4
test ebp, ebp
je 0x4734d4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x4734e2
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
test edi, edi
jle 0x4734fb
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 0x474310
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4af020
push esi
mov esi, edx
call fcn.00404bf0
test eax, eax
jne 0x474341
push 0x49bc4d
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4ae9b0
call fcn.0042ce80
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 0x4743c9
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4743c9
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x4743c9
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x4743c9
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 0x47447d
test edi, edi
je 0x4743b3
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x474418
push edi
push ebx
push eax
call fcn.0048cfd0
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 0x474357
cmp dword [0x4af038], 0
je 0x47440b
cmp dword [0x4af028], 0
je 0x4743f1
push dword [0x4af020]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4af028], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4af038], 0
mov dword [0x4af020], 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 [0x4af038], 0
je 0x474461
cmp dword [0x4af028], 0
je 0x474447
push dword [0x4af020]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4af028], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4af038], 0
mov dword [0x4af020], 0
push 0x49bc4d
push 0x49be00
mov ecx, 0x4ae9b0
call fcn.0042ce80
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4af038], 0
je 0x4744bf
cmp dword [0x4af028], 0
je 0x4744a5
push dword [0x4af020]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4af028], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4af038], 0
mov dword [0x4af020], 0
push 0x49bc4d
push str.Out_of_memory.
mov ecx, 0x4ae9b0
call fcn.0042ce80
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x474870
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.0x474883
jmp dword [eax*4 + 0x474a2c]
call fcn.004013b0
cmp dword [0x4ad9c8], 0
jne 0x474951
cmp dword [esi + 0xc], 0
jne 0x474951
mov edi, dword [esp + 0x14]
cmp dword [0x4b0468], esi
jne 0x4748b6
test edi, edi
jne 0x474913
push 0
lea eax, [esp + 0x13]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x47490f
mov dword [0x4b0468], 0
test edi, edi
je 0x474907
mov eax, dword [0x4ad9d8]
test eax, eax
je 0x4748f6
push 0
push dword [esi + 0x18]
mov ecx, 0x4ae9b0
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
call fcn.0042d370
mov ecx, dword [esi + 0x18]
mov edx, edi
call fcn.00472a30
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 0x474942
cmp byte [esi + 0x17], 0
jne 0x47491e
mov eax, dword [esi + 0xc]
jmp 0x474920
mov eax, esi
test byte [eax + 0x15], 4
je 0x47492c
push esi
call fcn.0042d4a0
mov byte [edi], 0
xor eax, eax
mov dword [0x4b0468], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4b0468], 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 0x4749be
test ebx, ebx
jne 0x474982
xor ecx, ecx
mov eax, esi
cmp byte [esi + 0x17], cl
cmove eax, ecx
test byte [eax + 0x15], 4
je 0x474976
push esi
call fcn.0042d4a0
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 0x4749be
cmp ebx, 0x186a0
jae 0x4749af
mov cl, byte [eax]
test cl, cl
je 0x4749a3
mov byte [edi], cl
lea eax, [eax + 1]
mov cl, byte [eax]
inc edi
test cl, cl
jne 0x474997
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.0048cfd0
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.00474870
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, 0x4af020
push esi
call fcn.004045a0
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
test esi, esi
je 0x474a22
mov byte [eax + esi], cl
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x474a0a
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 0x475350
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4754d8
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 [0x4ae958]
je 0x475389
mov ecx, esi
call fcn.00476330
test al, al
jne 0x4754d8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
test ebx, ebx
jne 0x4753a3
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 0x4753b7
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, ebx
jne 0x4753c5
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [0x4ad9e5], 0
jne 0x4753df
mov edx, ebx
mov ecx, esi
call fcn.004752f0
test eax, eax
jne 0x4754da
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebx, ebx
je 0x475440
push 0
push ebx
call ebp
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x475448
cmp dword [0x4ae958], ebp
je 0x475425
mov ecx, ebx
call fcn.00476330
test al, al
jne 0x475425
push 1
push ebp
push dword [0x4ae958]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test edi, edi
je 0x475448
cmp ebp, edi
je 0x475448
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x475448
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor edi, edi
lea ebx, [ebx]
mov edx, ebx
mov ecx, esi
call fcn.004752f0
mov ebp, eax
test ebp, ebp
jne 0x475497
inc edi
cmp edi, 5
jl 0x475450
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
lea ecx, [eax + 2]
call fcn.0040f700
push 0xffc3d44d
push ebp
push ebp
push ebp
mov dl, 0x12
lea ecx, [ebp + 2]
call fcn.0040f700
add esp, 0x20
mov edx, ebx
mov ecx, esi
call fcn.004752f0
mov ebp, eax
cmp byte [esp + 0x12], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4754b3
push 0
push edi
push dword [0x4ae958]
call ebx
cmp byte [esp + 0x13], 0
je 0x4754c3
push 0
push dword [esp + 0x1c]
push edi
call ebx
test ebp, ebp
je 0x4754d8
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 0x4755d0
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 0x47562d
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 0x47563a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x47563a
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x47563a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47563a
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
test ebx, ebx
js 0x475698
je 0x475698
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.00401790
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x475691
add ebx, dword [esp + 0x14]
lea ecx, [ecx]
call edi
mov ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x475691
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401790
push esi
call ebp
test eax, eax
jne 0x475670
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x475810
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.004918b0
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 0x475842
cmp al, 0x61
jne 0x47589b
cmp byte [edx + 1], 0
jne 0x47589b
cmp byte [ebp], 0
jne 0x47589b
cmp byte [ebx], 0
jne 0x47589b
cmp byte [esi], 0
jne 0x47589b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x47587a
cmp byte [edi + 0xca], 0
jne 0x47587a
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and esi, eax
cmp byte [esp + 0x8e84], 0
je 0x47588e
test esi, esi
je 0x47588e
mov dword [edi + 0xa4], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
test al, al
jne 0x4758bc
cmp byte [ebp], al
jne 0x4758bc
cmp byte [ebx], al
jne 0x4758bc
cmp byte [esi], al
jne 0x4758bc
call fcn.004759d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea ecx, [esp + 0x14]
call fcn.0042f2d0
push esi
push ebx
push ebp
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push edi
call fcn.00476490
test eax, eax
je 0x47598b
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 0x475998
mov eax, dword [esp + 0x830]
cmp eax, 0xffff
je 0x475963
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47598b
cmp byte [edi + 0xca], 0
jne 0x47595c
push dword [esp + 0x830]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x47595c
push 0xfffffffffffffff0
push dword [esp + 0x834]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x47598b
mov eax, dword [esp + 0x830]
cmp dword [esp + 0xc64], eax
je 0x47597c
lea ecx, [esp + 0x14]
mov dword [esp + 0xc64], eax
call fcn.00476820
push 0
lea ecx, [esp + 0x18]
call fcn.004768e0
test eax, eax
jne 0x4759a8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8e60
ret
lea eax, [esp + 0x14]
push eax
push 0x475a40
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esp + 0x8e84], 0
mov eax, dword [esp + 0xc44]
je 0x4759c3
test eax, eax
je 0x4759c3
mov dword [edi + 0xa4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x475bd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x801c
call fcn.004918b0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x475bf3
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004744e0
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 0x475de5
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 0x475de5
cmp ebx, dword [esp + 0x1c]
jg 0x475de5
push 0
push esi
mov edx, 0x8000
lea ecx, [esp + 0x20]
call fcn.00472b00
mov ebp, eax
add esp, 8
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x475de5
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 0x475d1e
mov eax, 0x7fff
cmp word [esp + 0x14], ax
ja 0x475d89
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 0x475d1e
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 0x475d84
mov edx, dword [esp + 0x8034]
lea ecx, [esp + 0x28]
call fcn.00475190
test al, al
jne 0x475d6c
test edi, edi
jne 0x475d8d
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x475dde
cmp dword [esp + 0x8038], edi
jl 0x475d56
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 0x475dc8
mov ecx, dword [esp + 0x803c]
mov edx, 1
call fcn.00401790
jmp 0x475ca0
mov ecx, dword [0x4ad0c8]
push 1
push 0
push 0xffffffffffffffff
push 0x49bca8
call fcn.004744e0
jmp 0x475d89
mov byte [esp + 0x28], 0
test edi, edi
je 0x475dde
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.004744e0
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 [0x4ad0c8]
push 1
push 0
push 0xffffffffffffffff
push 0x49e628
call fcn.004744e0
mov esi, 1
jmp 0x475da1
test edi, edi
mov ecx, 0x49e628
mov eax, 0x49e8e8
cmove ecx, eax
cmp byte [ecx], 0x30
jne 0x475dff
cmp byte [ecx + 1], 0
je 0x475e0d
mov eax, dword [0x4aa1d8]
test byte [eax + 0xe0], 1
jne 0x475e2a
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4ad0c8]
call fcn.004744e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x801c
ret
push 0x49bc4d
push 0
push ecx
mov ecx, dword [0x4aed20]
call fcn.0042c8f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x801c
ret
Function at 0x476820
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x4768d8
mov eax, dword [esi]
test eax, eax
je 0x4768d8
push edi
test al, 1
jne 0x47684c
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x476865
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x476865
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x47687f
lea eax, [esi + 0xc54]
push eax
push dword [esi + 0xc50]
call edi
test byte [esi], 0x20
je 0x4768ba
lea eax, [esp + 8]
push eax
push dword [esi + 0xc50]
call edi
test eax, eax
je 0x4768ba
movzx eax, byte [esi + 0xc28]
lea edx, [esi + 0x8d58]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0044c980
add esp, 8
test eax, eax
jne 0x4768ba
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x4768d8
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 0x476fe0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.004918b0
push esi
mov esi, dword [ecx + 8]
test esi, esi
je 0x477050
lea ecx, [esp + 4]
call fcn.0042f2d0
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 0x477660
mov dword [esp + 0xc4c], esi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], 0
je 0x477050
mov ecx, dword [0x4aa1d8]
mov ecx, dword [ecx + 0x54]
cmp ecx, 0xffffffff
jle 0x477050
mov edx, 1
call fcn.00401790
mov eax, 1
pop esi
add esp, 0x8e5c
ret 8

Function at 0x477060
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 0x477078
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4aa1d8]
mov edi, eax
mov ecx, esi
push edi
call fcn.004774d0
cmp byte [esi], 0
mov ebx, eax
je 0x4770ad
test ebx, ebx
jne 0x4770b1
push eax
push ebx
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00477160
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebx, ebx
jne 0x477128
test edi, edi
je 0x477128
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.00401790
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477111
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x477111
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401790
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4770e4
mov eax, dword [0x4aa1d8]
mov ecx, dword [eax + 0x54]
cmp ecx, 0xffffffff
jle 0x477128
mov edx, 1
call fcn.00401790
cmp byte [esi], 0
je 0x477142
push 0
push ebx
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00477160
pop edi
pop esi
pop ebp
pop ebx
ret 4
push dword [esp + 0x14]
mov ecx, esi
call fcn.004772c0
pop edi
pop esi
pop ebp
pop ebx
ret 4