joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
cmp ebp, esi
je 0x476863
push 2
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov ebx, eax
jmp 0x476869
mov ebx, dword [0x4ae26c]
mov edi, dword [esp + 0x2c]
cmp ebx, esi
je 0x4769d7
mov eax, edi
cmp edi, esi
jge 0x476882
neg eax
movzx eax, ax
jmp 0x4768b0
jne 0x476889
mov eax, 1
lea ecx, [esp + 0x18]
push ecx
push 0x476810
push 0xe
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x4aead3
call dword [sym.imp.KERNEL32.DLL_EnumResourceNamesA]
mov eax, dword [esp + 0x20]
cmp eax, 0x4aead3
je 0x4769b4
push 0xe
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, esi
je 0x4769b4
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, esi
je 0x4769b4
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x4769b4
cmp dword [esp + 0x30], 0xffffffff
jne 0x4768fd
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], edx
cmp dword [esp + 0x30], 0
jne 0x476910
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x30], eax
movzx eax, word [esi + 4]
xor ebp, ebp
xor edi, edi
lea edx, [esi + 6]
test eax, eax
jle 0x4769ac
mov dword [esp + 0x14], eax
movzx eax, byte [edx]
test eax, eax
jne 0x476933
mov eax, 0x100
xor ecx, ecx
cmp eax, edi
jle 0x476942
cmp edi, dword [esp + 0x30]
setl cl
jmp 0x476949
cmp eax, dword [esp + 0x30]
setge cl
test ecx, ecx
je 0x476951
mov ebp, edx
mov edi, eax
add edx, 0xe
dec dword [esp + 0x14]
jne 0x476927
test ebp, ebp
je 0x4769ac
movzx eax, word [ebp + 0xc]
push 3
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x4769ac
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4769ac
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x4769ac
push 0
push 0
push 0
push 0x30000
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4769c8
test esi, esi
je 0x4769c8
mov dword [eax], ebx
jmp 0x4769d3
test ebp, ebp
je 0x4769d3
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
test esi, esi
jne 0x476a0d
test edi, edi
jle 0x4769f0
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
setge al
dec eax
and 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
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x477a10
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, 0x4af214
call fcn.00404bd0
test eax, eax
jne 0x477a3d
push 0x49b8bd
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4af230
call fcn.0042fe80
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x477aa4
xor esi, esi
cmp dword [0x4af22c], esi
je 0x477a90
cmp dword [0x4af21c], esi
je 0x477a7e
mov edx, dword [0x4af214]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4af21c], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4af22c], esi
mov dword [0x4af214], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x477a59
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x477a59
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x477a59
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x477b1b
test ebx, ebx
je 0x477b01
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x477b71
push ebx
push ebp
push eax
call fcn.00490500
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x477aa0
jmp 0x477a59
cmp dword [0x4af22c], 0
je 0x477b55
cmp dword [0x4af21c], 0
je 0x477b43
mov eax, dword [0x4af214]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4af21c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4af22c], eax
mov dword [0x4af214], eax
push 0x49b8bd
push str.Out_of_memory.
mov ecx, 0x4af230
call fcn.0042fe80
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor esi, esi
cmp dword [0x4af22c], esi
je 0x477baf
cmp dword [0x4af21c], esi
je 0x477b9d
mov ecx, dword [0x4af214]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4af21c], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4af22c], esi
mov dword [0x4af214], esi
push 0x49b8bd
push 0x49ba8c
mov ecx, 0x4af230
call fcn.0042fe80
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x477fa0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x477fb3
jmp dword [eax*4 + 0x478164]
mov eax, esi
call fcn.004011b0
cmp dword [0x4ae3e0], 0
jne 0x478084
cmp dword [esi + 0xc], 0
jne 0x478084
mov edi, dword [esp + 0x14]
cmp dword [0x4b02a0], esi
jne 0x477fe8
test edi, edi
jne 0x478045
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x13]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x478041
mov dword [0x4b02a0], 0
test edi, edi
je 0x478039
mov eax, dword [0x4ae3bc]
test eax, eax
je 0x47802a
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4af230
xor ecx, ecx
call fcn.004303f0
mov ecx, dword [esi + 0x18]
call fcn.00475e00
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 0x478075
cmp byte [esi + 0x17], 0
jne 0x478050
mov eax, dword [esi + 0xc]
jmp 0x478052
mov eax, esi
test byte [eax + 0x15], 4
je 0x47805f
mov eax, esi
call fcn.00430500
mov byte [edi], 0
mov dword [0x4b02a0], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4b02a0], 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 0x4780f5
test ebx, ebx
jne 0x4780b6
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x4780aa
mov eax, esi
call fcn.00430500
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x4780f5
cmp ebx, 0x186a0
jae 0x4780e6
mov al, byte [ecx]
test al, al
je 0x4780da
jmp 0x4780d0
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x4780d0
mov byte [edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push ecx
push edi
call fcn.00490500
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push eax
call fcn.00477fa0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x4af214
call fcn.00404640
cmp eax, 0xffffffff
jne 0x478128
xor eax, eax
test esi, esi
je 0x47815c
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x478142
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
push ecx
push edx
call eax
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x478d00
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x478d10
mov eax, esi
call fcn.00454240
jmp 0x478d1d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x478d78
je 0x478d78
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401420
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x478d75
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x478d75
push 1
push 0x8000012f
call fcn.00401420
add esp, 8
push esi
call ebx
test eax, eax
jne 0x478d54
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x479360
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.004943d0
push ebx
push ebp
mov ebp, dword [esp + 0x8028]
push esi
push edi
mov edi, dword [esp + 0x802c]
mov esi, ecx
test edi, edi
je 0x479389
mov ecx, edi
call fcn.00414da0
cmp dword [esp + 0x8038], 0
jne 0x47939e
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x4793b3
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x4793bd
mov ebp, 1
test esi, esi
je 0x47958a
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x20]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x47958a
cmp ebp, dword [esp + 0x20]
jg 0x47958a
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.00475ee0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x479583
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x479430
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x4794a7
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x4794fe
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x4794a7
movzx ecx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
inc ecx
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x4794f9
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.004788b0
test al, al
jne 0x479524
cmp dword [esp + 0x802c], 0
jne 0x479508
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479557
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x4794de
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x47953c
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.00401420
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x479430
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x479557
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00477bd0
mov esi, eax
jmp 0x47955c
mov eax, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477bd0
jmp 0x4794fe
mov ecx, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push ecx
call fcn.00477bd0
mov edi, dword [esp + 0x1c]
mov esi, 1
push 0x8000
push 0
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov edi, dword [esp + 0x802c]
mov eax, 0x49cf30
test edi, edi
jne 0x479598
mov eax, 0x49d1f0
mov ecx, dword [0x4aa988]
test byte [ecx + 0xe0], 1
jne 0x4795c5
mov edx, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00477bd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4af5a4]
push 0x49b8bd
push 0
push eax
call fcn.0042f7e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x47a9b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47a9cc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4aa988]
push eax
push esi
mov ecx, edi
call fcn.0047af10
cmp byte [edi], 0
je 0x47a9ff
test eax, eax
jne 0x47aa07
mov edx, dword [esp + 0x1c]
push eax
push edx
push edi
call fcn.0047aae0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x47aaa8
test esi, esi
je 0x47aa82
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401420
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x47aa65
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x47aa65
push 1
push 0x8000012f
call fcn.00401420
add esp, 8
push esi
call edi
test eax, eax
jne 0x47aa40
mov edx, dword [0x4aa988]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47aa7e
push 1
push eax
call fcn.00401420
add esp, 8
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x47aac2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
je 0x47aaa8
mov ecx, dword [0x4aa988]
push ecx
push eax
mov ecx, edi
call fcn.0047af10
test eax, eax
jne 0x47a9bf
cmp byte [edi], 0
je 0x47aac2
mov edx, dword [esp + 0x1c]
push 0
push edx
push edi
call fcn.0047aae0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0047ace0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x48f054
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9df0]
jne 0x48f05e
repz ret
jmp fcn.00493617

Function at 0x4916d1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9df0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048bd92
and dword [ebp - 0x14], 0
cmp dword [0x4acaac], 0
mov dword [ebp - 0x18], eax
jne 0x491784
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49182c
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x49182c
mov esi, dword [fcn.00487b10]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acaac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acab0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acab4], eax
call edi
push eax
call esi
mov dword [0x4acabc], eax
test eax, eax
je 0x491784
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acab8], eax
mov eax, dword [0x4acab8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00487b14]
cmp eax, ecx
je 0x4917dd
cmp dword [0x4acabc], ecx
je 0x4917dd
push eax
call esi
push dword [0x4acabc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4917dd
test ebx, ebx
je 0x4917dd
call edi
test eax, eax
je 0x4917d4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4917d4
test byte [ebp - 8], 1
jne 0x4917dd
or dword [ebp + 0x10], 0x200000
jmp 0x491810
mov eax, dword [0x4acab0]
cmp eax, dword [ebp - 0x18]
je 0x491810
push eax
call esi
test eax, eax
je 0x491810
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491810
mov eax, dword [0x4acab4]
cmp eax, dword [ebp - 0x18]
je 0x491810
push eax
call esi
test eax, eax
je 0x491810
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acaac]
call esi
test eax, eax
je 0x49182c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49182e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f054
leave
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a004]
jne 0x401010
repz ret
jmp fcn.00401562

Function at 0x409246
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405eb4
and dword [ebp - 4], 0
cmp dword [0x42c7a0], 0
mov ebx, eax
jne 0x4092f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a8
push eax
call fcn.00405e42
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42c7a0], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42c7a4], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42c7a8], eax
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x42c7b0], eax
test eax, eax
je 0x4092f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x42c7ac], eax
mov eax, dword [0x42c7ac]
cmp eax, ebx
je 0x40934f
cmp dword [0x42c7b0], ebx
je 0x40934f
push eax
call fcn.00405ebd
push dword [0x42c7b0]
mov esi, eax
call fcn.00405ebd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40934f
test edi, edi
je 0x40934f
call esi
test eax, eax
je 0x409346
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409346
test byte [ebp - 0xc], 1
jne 0x40934f
or dword [ebp + 0x10], 0x200000
jmp 0x409388
mov eax, dword [0x42c7a4]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409388
mov eax, dword [0x42c7a8]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c7a0]
call fcn.00405ebd
pop ecx
test eax, eax
je 0x4093a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001320
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1008ccf8], eax
je 0x1000133e
mov eax, 0x10dd
jmp 0x1000141f
mov eax, dword [0x1008cd08]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100013bc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000139a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000139a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001490
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.1004e465
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10001346
mov dword [0x1008cd08], 0
call fcn.10001430
mov ecx, dword [0x1008cd04]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x10001409
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1004e465
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x100013d4
mov dword [0x1008cd04], 0
mov dword [0x1008ccf8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10001960
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10001975
xor eax, eax
jmp 0x100019ea
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x100019a2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x100019e5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x100019e3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x100019df
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x100019e3
xor eax, eax
jmp 0x100019ea
jmp 0x10001999
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001a90
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1008ccfc], 0
je 0x10001aa9
mov eax, dword [0x1008ccfc]
jmp 0x10001b49
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10001abb
xor eax, eax
jmp 0x10001b49
push 8
call fcn.1004e432
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001b11
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x10001afa
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1004e465
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x1008ccfc], eax
mov dword [0x1008cd00], 0
mov eax, dword [ebp - 4]
jmp 0x10001b49
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10001b2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10001adb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x1008cd04]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x1008cd04], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4