joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d0fc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x100d22e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
bsr eax, eax
push ebx
mov ebx, ecx
mov ecx, 1
shlx eax, ecx, eax
mov dword [ebp - 4], ebx
push esi
push edi
cmp edx, eax
jbe 0x100d2312
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, 1
mov dword [ebp + 8], esi
bsr eax, eax
push esi
inc eax
shlx edi, ecx, eax
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.1000f2f0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x100d241c
nop dword [eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [ebx + 0xc]
imul edi, edi, 0x1000193
and edi, dword [ebx + 0x18]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x100d239f
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x100d2412
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x100d23d9
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x100d23d1
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x100d240f
cmp edi, edx
je 0x100d23ec
nop dword [eax]
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x100d2425
cmp edi, edx
jne 0x100d23e0
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x100d2350
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x100d240f
Function at 0x100d3040
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100d3050
xor esi, esi
sub edx, ecx
mov ecx, 0x811c9dc5
je 0x100d309f
movzx eax, byte [edi + esi]
inc esi
xor eax, ecx
imul ecx, eax, 0x1000193
cmp esi, edx
jb 0x100d3062
cmp ecx, 0x84ea2fe5
ja 0x100d30b4
je 0x100d30ea
cmp ecx, 0x43d6266e
ja 0x100d30a4
je 0x100d30ea
cmp ecx, 0x2eb1674
je 0x100d30ea
cmp ecx, 0x19acc50e
je 0x100d30ea
cmp ecx, 0x3a712436
je 0x100d30ea
xor al, al
pop edi
pop esi
ret
cmp ecx, 0x7c4a5426
je 0x100d30ea
cmp ecx, 0x7f11af2d
jmp 0x100d309d
cmp ecx, 0xe1525a25
ja 0x100d30d6
je 0x100d30ea
cmp ecx, 0x9d08c4c8
je 0x100d30ea
cmp ecx, 0xa7eab73f
je 0x100d30ea
cmp ecx, 0xd614ea2e
jmp 0x100d309d
cmp ecx, 0xe80bc214
je 0x100d30ea
cmp ecx, 0xf8573d98
sete al
pop edi
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x100d30f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100d3100
xor esi, esi
sub edx, ecx
mov ecx, 0x811c9dc5
je 0x100d313d
movzx eax, byte [edi + esi]
inc esi
xor eax, ecx
imul ecx, eax, 0x1000193
cmp esi, edx
jb 0x100d3112
cmp ecx, 0x4c849f3c
ja 0x100d3142
je 0x100d3156
cmp ecx, 0x1b20e275
je 0x100d3156
cmp ecx, 0x3cb8abb3
je 0x100d3156
xor al, al
pop edi
pop esi
ret
cmp ecx, 0x5978b32e
je 0x100d3156
cmp ecx, 0x97113ea7
sete al
pop edi
pop esi
ret
pop edi
mov al, 1
pop esi
ret
Function at 0x100d3a80
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100d3b73
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100d3b6c
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x24], 0x10
jb 0x100d3b52
call ebx
cmp dword [ebp - 0x18], eax
jne 0x100d3b52
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x1c], eax
je 0x100d3b52
mov edx, dword [esi]
test edx, edx
jne 0x100d3b18
push 0x200
push edx
push dword [0x10164608]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100d3b6c
jmp 0x100d3b43
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100d3b43
shl eax, 3
push eax
push edx
push 0
push dword [0x10164608]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100d3b6c
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + ecx*4], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100d3ad7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x100d3bc6
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x100d3bc6
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100d3bb7
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.100d3940
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 8]
jb 0x100d3b84
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100d3bd0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x100d3c34
push ebx
xor ebx, ebx
cmp dword [edi + 8], ebx
jbe 0x100d3c23
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x100d3c13
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [edi + 8]
jb 0x100d3bf0
pop esi
push dword [edi]
push 0
push dword [0x10164608]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100d3c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x101d5a60]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100d3c8d
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100d3cae
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100d3ccf
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100d3ccf
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100d3cc9
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100d3ccf
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
shl bl, 2
add cl, cl
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
xor eax, eax
pop edi
mov byte [esi + 0x14], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100d486d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100d4894
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100d4897
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100d4849
pop esi
leave
ret 8
Function at 0x40afa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7cf
push 0x4b58f8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40b208
mov ecx, 0x4b58f8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40afd7
sub ecx, edx
sar ecx, 1
push ecx
push 0x4b58f8
mov ecx, 0x4b7840
call fcn.004021a0
mov edx, 0x5c
mov eax, 0x4b6896
lea edi, [edx - 0x2d]
movzx ecx, word [eax]
cmp dx, cx
je 0x40b010
cmp di, cx
jne 0x40b017
cmp eax, 0x4b6896
jne 0x40b023
sub eax, 2
cmp eax, 0x4b58f8
jae 0x40b003
jmp 0x40b03a
sub eax, 0x4b58f8
sar eax, 1
je 0x40b03a
lea edx, [eax*2 + 0x4b58fa]
cmp eax, 0x7cf
jb 0x40b03f
mov edx, 0x4b58f8
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b044
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x4b7858
call fcn.004021a0
mov eax, 0x4b6896
mov edx, 0x5c
nop dword [eax]
movzx ecx, word [eax]
cmp dx, cx
je 0x40b07d
cmp di, cx
jne 0x40b084
cmp eax, 0x4b6896
jne 0x40b090
sub eax, 2
cmp eax, 0x4b58f8
jae 0x40b070
jmp 0x40b0aa
sub eax, 0x4b58f8
sar eax, 1
je 0x40b0aa
cmp eax, 0x7cf
jae 0x40b0aa
xor ecx, ecx
mov word [eax*2 + 0x4b58fa], cx
push 0
push 0x1a
push 0x4b6898
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b0cd
push ecx
mov ecx, 0x4b6898
call fcn.0040ec90
add esp, 4
push 4
push 0
mov dword [ebp - 0x214], 0x24
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x4b783c], eax
test eax, eax
je 0x40b208
mov dword [eax], 0
xor esi, esi
nop dword [eax]
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp + esi - 0x214]
lea eax, [ebp - 0x210]
add esp, 0xc
push 0
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40b156
cmp edi, 0x24
jne 0x40b203
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40b203
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b160
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x40b188
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x210], cx
inc eax
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x4b783c]
mov dword [esi + ecx], eax
mov eax, dword [0x4b783c]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x40b203
lea eax, [edi + 2]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
push edi
lea eax, [ebp - 0x210]
push eax
mov eax, dword [0x4b783c]
mov eax, dword [esi + eax]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esi, 4
add esp, 0x18
cmp esi, 4
jb 0x40b100
pop edi
mov dword [0x4b7838], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004619c0
mov esp, ebp
pop ebp
ret
call fcn.0040af30
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004619c0
mov esp, ebp
pop ebp
ret
Function at 0x40b220
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef4
call fcn.00462050
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1f40
lea eax, [ebp - 0x2ee8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2eec], 0
lea eax, [ebp - 0x2eec]
push eax
push 0x1f40
lea eax, [ebp - 0x2ee8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40b34c
lea eax, [ebp - 0xfa8]
xor esi, esi
test dword [ebp - 0x2eec], 0xfffffffc
mov dword [ebp - 0x2ef0], eax
mov eax, 0xfa0
mov word [ebp - 0x2ef2], ax
jbe 0x40b338
nop word [eax + eax]
push 0xfa0
lea eax, [ebp - 0xfa8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xfa8]
push 0x7cf
push eax
push dword [ebp + esi*4 - 0x2ee8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xfa8]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b2f0
sub eax, edx
mov ecx, 0x4b58f0
sar eax, 1
add eax, eax
push 0
push dword [ebp + esi*4 - 0x2ee8]
mov word [ebp - 0x2ef4], ax
lea eax, [ebp - 0x2ef4]
push eax
call fcn.0040b360
test eax, eax
je 0x40b34c
mov eax, dword [ebp - 0x2eec]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40b2b0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004619c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004619c0
mov esp, ebp
pop ebp
ret
Function at 0x40f308
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
test edi, edi
jne 0x40f320
xor al, al
jmp 0x40f3cf
cmp word [ebp + 0xc], bx
jne 0x40f3c5
cmp dword [edi + 4], ebx
jle 0x40f345
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
call fcn.0040f243
inc dword [eax + 0x19c]
inc dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
cmp eax, 0x3e8
jbe 0x40f37c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi]
mov dword [esi + 0x10], eax
call fcn.0040f243
mov ecx, eax
call fcn.0040f6dd
push dword [esi]
call fcn.0040f243
mov ecx, eax
call fcn.0040f6fc
mov dword [esi], ebx
mov al, byte [esi + 4]
cmp al, byte [edi + 1]
je 0x40f394
push edi
mov ecx, esi
call fcn.0040f489
mov cl, byte [edi + 1]
mov byte [esi + 4], cl
jmp 0x40f3b8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 8]
cmp eax, 0x3a98
jbe 0x40f3a9
cmp dword [edi + 4], ebx
jg 0x40f3b0
cmp eax, 0x4268
jbe 0x40f3cd
push edi
mov ecx, esi
call fcn.0040f489
mov bl, al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
jmp 0x40f3cd
push edi
call fcn.0040f759
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40f65e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x40f6b2
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40f6b2
lea eax, [ebp - 0x104]
mov byte [ebp - 0xe5], 0
push eax
lea eax, [esi + 0x20c]
push 0x40
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004619c0
leave
ret 4
Function at 0x4108ed
Capabilities:
Get graphical window text

Disassembly:
push 0x414
mov eax, 0x463fae
call fcn.00461a33
mov ebx, ecx
mov dword [ebp - 0x41c], ebx
mov eax, dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], esi
call fcn.00410d9a
test al, al
je 0x410ab3
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp - 0x418]
add esp, 0xc
mov edi, esi
push 0x1ff
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jg 0x410965
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x32
jl 0x410940
mov ebx, dword [ebp - 0x41c]
cmp word [ebp - 0x410], si
je 0x410ab3
push dword [ebp - 0x418]
mov ecx, ebx
call fcn.00410d18
test al, al
je 0x4109ec
push esi
lea eax, [ebp - 0x410]
mov ecx, ebx
push eax
call fcn.0041010e
test al, al
je 0x4109ec
lea edi, [ebx + 0x24]
mov dword [ebp - 0x414], 3
mov dword [ebp - 0x420], edi
cmp dword [edi + 0x18], esi
je 0x4109bb
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x41c], 1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x418]
mov dword [ebx + 4], eax
or dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x18], esi
je 0x4109de
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x414]
call fcn.004619e2
ret 4
push esi
lea eax, [ebp - 0x410]
mov ecx, ebx
push eax
call fcn.00410014
test al, al
je 0x410a04
push 2
pop eax
jmp 0x4109e4
lea eax, [ebp - 0x410]
push 0x46b000
push eax
call sub.VCRUNTIME140.dll_wcsstr
pop ecx
pop ecx
test eax, eax
jne 0x410aab
lea eax, [ebp - 0x410]
push str.___Microsoft_PowerPoint
push eax
call sub.VCRUNTIME140.dll_wcsstr
pop ecx
pop ecx
test eax, eax
jne 0x410aab
push 4
mov ecx, str.PowerPoint
lea eax, [ebp - 0x410]
pop edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410a68
test dx, dx
je 0x410a64
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410a68
add eax, edi
add ecx, edi
test dx, dx
jne 0x410a44
mov eax, esi
jmp 0x410a6d
sbb eax, eax
or eax, 1
test eax, eax
je 0x410aab
mov ecx, str.Microsoft_PowerPoint
lea eax, [ebp - 0x410]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410a9e
test dx, dx
je 0x410aa3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410a9e
add eax, edi
add ecx, edi
test dx, dx
jne 0x410a7c
jmp 0x410aa3
sbb esi, esi
or esi, 1
test esi, esi
jne 0x4109de
xor eax, eax
inc eax
jmp 0x4109e4
mov eax, esi
jmp 0x4109e4
Function at 0x410bcd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0xff
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x410d05
push 4
mov ecx, str.OpusApp
lea eax, [ebp - 0x204]
pop ebx
mov dx, word [eax]
xor esi, esi
cmp dx, word [ecx]
jne 0x410c35
test dx, dx
je 0x410c31
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410c35
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x410c0f
mov eax, esi
jmp 0x410c3a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410d05
push 0xff
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x410d05
mov ecx, str.Word
lea eax, [ebp - 0x204]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410c8c
test dx, dx
je 0x410c88
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410c8c
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x410c68
mov eax, esi
jmp 0x410c91
sbb eax, eax
or eax, 1
test eax, eax
je 0x410d01
mov ecx, str.Microsoft_Word
lea eax, [ebp - 0x204]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410cc2
test dx, dx
je 0x410cc7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410cc2
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x410ca0
jmp 0x410cc7
sbb esi, esi
or esi, 1
test esi, esi
je 0x410d01
push 6
lea eax, [ebp - 0x204]
push str.Word__
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x410d01
push 0x10
lea ecx, [ebp - 0x204]
push str.Microsoft_Word__
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x410d05
mov al, 1
jmp 0x410d07
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret 4

Function at 0x410fdd
Capabilities:
Get graphical window text

Disassembly:
push 0x410
mov eax, 0x463fe8
call fcn.00461a33
mov edi, ecx
mov eax, dword [ebp + 8]
lea esi, [edi + 0x24]
mov dword [ebp - 0x41c], esi
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x414], eax
je 0x411013
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x414]
xor ebx, ebx
inc ebx
mov byte [ebp - 0x418], bl
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
jne 0x41102e
cmp eax, dword [edi + 4]
sete al
jmp 0x411093
push eax
mov ecx, edi
call fcn.00410d9a
test al, al
je 0x411091
push dword [ebp - 0x414]
mov ecx, edi
call fcn.00410d18
test al, al
je 0x411091
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x1ff
push eax
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.0041010e
test al, al
jne 0x411095
xor bl, bl
jmp 0x411095
xor al, al
mov bl, al
or dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x18], 0
je 0x4110a6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.004619e2
ret 8