joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1059d13
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1080bec]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x5de
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call fcn.0106c761
cmp eax, 0x43
jne 0x1059d8b
push 0x30
lea eax, [ebp - 0x94]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x1ff
push esi
call fcn.0106c6f6
push 0
push 0x10
push 0xc5
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x30
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0106bffe
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01070ac3
leave
ret 0x10

Function at 0x1059d9d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1080bec]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x5de
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call fcn.0106c761
cmp eax, 0x1ff
jne 0x1059e17
push edi
push 0x30
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x43
push esi
mov edi, eax
call fcn.0106c6f6
push 0
push 0x20
push 0xc5
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0106c0b5
lea eax, [ebp - 0x94]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01070ac3
leave
ret 0x10

Function at 0x105ce5b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
cmp dword [ebp + 0x14], 0x200
mov eax, dword [0x1080bec]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
jne 0x105cedc
push esi
push 0x20
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
lea eax, [ebp - 0x44]
mov dword [esp], 0x1005e1c
push eax
call dword [sym.imp.msvcrt.dll_wcsspn]
cmp eax, esi
pop ecx
pop ecx
je 0x105cedb
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0xb1
push dword [ebp + 0xc]
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp + 0xc]
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.01070ac3
leave
ret 0x10
Function at 0x105f464
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x194
cmp dword [0x1085dec], 0
mov eax, dword [0x1080bec]
mov dword [ebp - 4], eax
push esi
jne 0x105f5b3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x102a6a0
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1085de8], eax
je 0x105f4af
push 0x102a688
push eax
call esi
mov dword [0x1085db4], eax
push 0x102a670
call edi
test eax, eax
mov dword [0x1085de4], eax
pop edi
je 0x105f5b3
push 0x102a664
push eax
call esi
test eax, eax
mov dword [0x1085dd8], eax
je 0x105f4ee
lea ecx, [ebp - 0x194]
push ecx
push 0x101
call eax
test eax, eax
je 0x105f4f5
and dword [0x1085dd8], 0
xor eax, eax
jmp 0x105f5b8
push 0x102a654
push dword [0x1085de4]
call esi
push 0x102a644
push dword [0x1085de4]
mov dword [0x1085dbc], eax
call esi
push 0x102a638
push dword [0x1085de4]
mov dword [0x1085dc0], eax
call esi
push 0x102a62c
push dword [0x1085de4]
mov dword [0x1085dc4], eax
call esi
push 0x102a620
push dword [0x1085de4]
mov dword [0x1085db0], eax
call esi
push 0x102a614
push dword [0x1085de4]
mov dword [0x1085db8], eax
call esi
push 0x102a608
push dword [0x1085de4]
mov dword [0x1085dc8], eax
call esi
push 0x102a600
push dword [0x1085de4]
mov dword [0x1085dcc], eax
call esi
push 0x102a5f8
push dword [0x1085de4]
mov dword [0x1085dd0], eax
call esi
push 0x102a5ec
push dword [0x1085de4]
mov dword [0x1085dd4], eax
call esi
mov dword [0x1085ddc], eax
mov dword [0x1085dec], 1
mov eax, dword [0x1085dec]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01070ac3
leave
ret
Function at 0x1060745
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [0x1085df8], 0
mov eax, dword [0x1080bec]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x1060773
mov ax, word [0x1085df4]
mov word [ebx], ax
jmp 0x10607f3
lea eax, [ebp - 0x118]
push eax
mov dword [0x1085df8], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x10607f3
push edi
push 0x102a7d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10607f2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x102a7bc
push edi
call esi
test eax, eax
je 0x10607f1
call eax
cmp ax, 0x409
jne 0x10607f1
push 0x102a7a0
push edi
call esi
test eax, eax
je 0x10607f1
call eax
cmp ax, 0x409
mov word [0x1085df4], ax
je 0x10607f1
mov dword [0x1085df0], 1
mov word [ebx], ax
pop esi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x1085df0]
pop ebx
call fcn.01070ac3
leave
ret 4
Function at 0x1062294
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1080bec]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, dword [ebp + 8]
push 0xe7a
push edi
mov dword [ebp - 4], eax
call esi
push 0xe78
push edi
mov dword [ebp - 0x214], eax
call esi
push 0xe77
push edi
mov dword [ebp - 0x208], eax
call esi
push 0xe75
push edi
mov dword [ebp - 0x20c], eax
call esi
push 0xe79
push edi
mov dword [ebp - 0x210], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x218], eax
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call esi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov ecx, dword [0x1085dfc]
mov dword [ecx], eax
mov eax, dword [0x1085dfc]
mov eax, dword [eax]
cmp eax, 1
jb 0x1062480
mov ecx, dword [0x1085e00]
inc ecx
cmp eax, ecx
ja 0x1062480
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call esi
push 0x16b5
call fcn.0106bcca
mov ebx, dword [sym.imp.msvcrt.dll_wcscmp]
push eax
lea eax, [ebp - 0x204]
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10623da
push 0x16b4
call fcn.0106bcca
push eax
lea eax, [ebp - 0x204]
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10623da
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov ecx, dword [0x1085dfc]
mov dword [ecx + 8], eax
mov eax, dword [0x1085dfc]
mov eax, dword [eax + 8]
cmp eax, 1
jb 0x10623be
cmp eax, 0x7ffffffe
jbe 0x1062403
push 0x16b7
call fcn.0106bcca
push eax
push edi
call fcn.0106bdb1
push dword [ebp - 0x20c]
jmp 0x1062497
push 0x16b5
call fcn.0106bcca
push eax
lea eax, [ebp - 0x204]
push eax
call ebx
neg eax
sbb eax, eax
pop ecx
and eax, 0xfffffffc
pop ecx
mov ecx, dword [0x1085dfc]
add eax, 0x6a
mov dword [ecx + 8], eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf2
push dword [ebp - 0x210]
call ebx
test eax, eax
je 0x1062427
mov eax, dword [0x1085dfc]
or dword [eax + 4], 1
push 0
push 0
push 0xf2
push dword [ebp - 0x218]
call ebx
test eax, eax
je 0x1062445
mov eax, dword [0x1085dfc]
or dword [eax + 4], 2
mov eax, dword [0x1085dfc]
push 0x3e4
add eax, 0xe
push eax
push dword [ebp - 0x214]
call esi
mov eax, dword [0x1085dfc]
add eax, 0xe
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [0x1085dfc]
push 1
push edi
mov word [ecx + 0xc], ax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x106249d
push 0x16b6
call fcn.0106bcca
push eax
push edi
call fcn.0106bdb1
push dword [ebp - 0x208]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01070ac3
leave
ret 0x10
Function at 0x10634f4
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x717
push dword [ebp + 8]
call esi
push 0x716
push dword [ebp + 8]
mov ebx, eax
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
dec eax
je 0x1063574
dec eax
jne 0x10635dc
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x10635dc
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 1
push ebx
call edi
push 1
push dword [ebp - 4]
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ebx
call edi
push 5
push dword [ebp - 4]
call edi
push 0x1005b28
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x16
push dword [0x10815b0]
jmp 0x10635b7
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10635dc
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
push 0
push dword [ebp - 4]
call edi
push 0x1002088
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call edi
push 0
push dword [ebp - 4]
call edi
push 0x16
push dword [0x10815ac]
push dword [0x10815a8]
push dword [0x10815a4]
push dword [0x10815a0]
push 0
push 0x715
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10635e8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1080bec]
and dword [ebp - 0x108], 0
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x717
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10636a8
push 0x80
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0105e69d
test ax, ax
je 0x10636a8
movsx eax, word [ebp - 0x108]
mov ecx, dword [0x1081598]
mov dword [ecx + 0x10], eax
cmp dword [ebp - 0x108], 0
je 0x10636a8
mov eax, dword [0x1081598]
push dword [eax + 0x10]
lea eax, [ebp - 0x104]
push 0x1002064
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x1081598]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x102aaac
push dword [eax]
call esi
lea eax, [ebp - 0x104]
push eax
mov eax, dword [0x1081598]
push dword [eax]
call esi
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop esi
call fcn.01070ac3
leave
ret 4
Function at 0x1063bb3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x1086e14], esi
mov dword [ebp - 4], esi
je 0x1063c07
push 0x800
push 0x1085f68
push 1
push 0x1004948
push dword [0x10869a0]
call dword [sym.imp.USER32.dll_DrawTextW]
add dword [0x1085f6c], eax
mov eax, dword [0x1085f74]
sub eax, dword [0x1085f6c]
cmp eax, dword [0x1086e60]
jg 0x1063c57
cmp dword [0x1086e50], esi
jne 0x1063c57
jmp 0x1063c51
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0x102ab20
push dword [0x1086e30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [0x1086e44]
cmp dword [0x1086e50], esi
jne 0x1063c57
cmp dword [0x108094c], esi
je 0x1063c57
cmp dword [0x1086e1c], esi
jne 0x1063c48
cmp dword [0x1086e44], 0x38
jg 0x1063c51
jmp 0x1063c57
cmp dword [0x1086e44], 0x36
jle 0x1063c57
push esi
call fcn.01064cda
pop esi
leave
ret
Function at 0x1064cda
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [0x1086e50], 1
je 0x1064d15
cmp dword [0x1086e14], edi
jne 0x1064d15
push 0x39
pop eax
sub eax, dword [0x1086e44]
cmp eax, edi
jle 0x1064d15
mov esi, eax
call fcn.01063bb3
dec esi
jne 0x1064d0d
inc dword [0x1086e48]
push dword [0x1086e48]
push 0x1674
call fcn.0106bcca
push eax
mov esi, 0x1086590
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
push esi
call fcn.01064b1c
cmp dword [0x1086e14], edi
mov dword [0x1086e50], edi
je 0x1064d74
push dword [0x10869a0]
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x1064d66
mov dword [0x1086e54], edi
mov dword [0x1085f6c], edi
mov dword [0x1086e5c], edi
jmp 0x1064d8c
push edi
lea eax, [ebp - 4]
push eax
push 1
push 0x102ab2c
push dword [0x1086e30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 8], edi
mov dword [0x1086e44], edi
pop edi
pop esi
jne 0x1064da8
push 0x1086190
push 0x1086790
call fcn.01064b93
leave
ret 4

Function at 0x1064db1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x1086e14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x1064df5
push 0x800
push 0x1085f68
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push dword [ebp + 8]
push dword [0x10869a0]
call dword [sym.imp.USER32.dll_DrawTextW]
add dword [0x1085f6c], eax
jmp 0x1064e39
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0106bc55
test eax, eax
je 0x1064e39
cmp dword [ebp - 4], ebx
je 0x1064e39
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1064e10
push ebx
lea ecx, [ebp - 8]
push ecx
sub eax, edx
push eax
push dword [ebp - 4]
push dword [0x1086e30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call sub.NMSUPP.dll_FreeMemory
mov dword [ebp - 4], ebx
cmp dword [0x1086e14], ebx
jne 0x1064e48
call fcn.01063bb3
jmp 0x1064e69
mov eax, dword [0x1085f74]
sub eax, dword [0x1085f6c]
cmp eax, dword [0x1086e60]
jg 0x1064e69
cmp dword [0x1086e50], ebx
jne 0x1064e69
push ebx
call fcn.01064cda
pop ebx
leave
ret 4
Function at 0x106a521
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1080bec]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0106be8a
push 6
push dword [0x1085d10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x15fe
call fcn.0106bcca
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x204]
push eax
call edi
sub ebx, eax
add esp, 0xc
lea eax, [ebp - 0x204]
push ebx
push eax
call edi
pop ecx
lea eax, [ebp + eax*2 - 0x204]
push eax
mov eax, dword [0x1086f54]
push dword [eax + 0x88]
call fcn.01051055
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x204]
push eax
push esi
call edi
mov eax, dword [0x1086f58]
mov eax, dword [eax]
test eax, eax
je 0x106a605
push dword [eax + 8]
push 0x1603
call fcn.0106bcca
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
push 0xa92
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
call fcn.01051078
test eax, eax
jne 0x106a628
push 0x15ff
call fcn.0106bcca
push eax
push 0xa8f
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call fcn.0106a4f7
push 0x106a3e7
push 0x64
push 0xbd
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.01070ac3
leave
ret 0xc
Function at 0x106a661
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1080bec]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x14
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
mov edi, 0xa8f
push edi
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x1604
call fcn.0106bcca
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x106a71b
push 0xbd
push ebx
call dword [sym.imp.USER32.dll_KillTimer]
push 0x1600
call fcn.0106bcca
push eax
push edi
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0x46
push 0x111
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x1086f58]
mov eax, dword [eax]
push dword [eax + 8]
push 0x1605
call fcn.0106bcca
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0xa92
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x106a75b
push 0x106a3e7
push 0x64
push 0xbd
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
push 0x1601
call fcn.0106bcca
push eax
push edi
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0x47
push 0x111
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01070ac3
leave
ret 4
Function at 0x106c561
Capabilities:
Get graphical window text
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1080bec]
push esi
push edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffeb
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
pop ecx
mov cx, word [ebp + 0xc]
cmp cx, 0x30
jb 0x106c5aa
cmp cx, 0x39
ja 0x106c5aa
mov eax, dword [esi]
test al, 1
jne 0x106c619
jmp 0x106c6ec
cmp cx, 0x41
jb 0x106c5bc
cmp cx, 0x46
ja 0x106c5bc
mov eax, dword [esi]
test al, 2
jmp 0x106c5a3
cmp cx, 0x47
jb 0x106c5c8
cmp cx, 0x57
jbe 0x106c5e0
cmp cx, 0x58
jne 0x106c5d4
mov eax, dword [esi]
test al, 8
jmp 0x106c5a3
cmp cx, 0x59
jb 0x106c5e6
cmp cx, 0x5a
ja 0x106c5e6
mov eax, dword [esi]
test al, 4
jmp 0x106c5a3
cmp cx, 0x20
mov eax, dword [esi]
jne 0x106c5f2
test al, 0x10
jmp 0x106c5a3
cmp cx, 0x2e
jne 0x106c5fc
test al, 0x20
jmp 0x106c5a3
cmp cx, 0x3a
jne 0x106c607
test ah, 1
jmp 0x106c5a3
cmp cx, 8
jne 0x106c611
test al, 0x40
jmp 0x106c5a3
test al, al
jns 0x106c6ec
test eax, eax
jns 0x106c67f
cmp cx, 0x2e
je 0x106c629
cmp cx, 0x20
jne 0x106c66f
push 0xff
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0x204]
test cx, cx
je 0x106c6ec
xor edx, edx
lea eax, [ebp - 0x204]
cmp cx, 0x20
je 0x106c65f
cmp cx, 0x2e
jne 0x106c660
inc edx
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x106c653
cmp edx, 3
jge 0x106c6ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01070ac3
leave
ret 8
test eax, 0x40000000
je 0x106c6ad
cmp cx, 0x2e
jne 0x106c66f
push 0xff
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x204], 0
je 0x106c6ec
push 0x2e
jmp 0x106c6d9
test eax, 0x20000000
je 0x106c66f
cmp cx, 0x3a
jne 0x106c66f
push 0xff
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x204], 0
je 0x106c6ec
push 0x3a
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll__mbschr]
test eax, eax
pop ecx
pop ecx
je 0x106c66f
xor eax, eax
inc eax
jmp 0x106c671
Function at 0x106deac
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x1080bec]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
xor eax, eax
lea edi, [ebp - 0x84]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x8c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.0106dc6e
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x106e051
push 0
push 0
push 0x31
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x106e051
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0xd8]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
push 0x32
lea eax, [ebp - 0x68]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPointW]
pop ecx
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
call edi
lea eax, [ebp - 0x8c]
push eax
push 0xb
push 0x102ad98
push ebx
call edi
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x78]
push 3
pop ecx
cdq
idiv ecx
mov edi, dword [sym.imp.USER32.dll_MoveWindow]
push 0
push dword [ebp - 0xd8]
push dword [ebp - 0x84]
mov ebx, eax
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0xd8]
sub eax, ecx
push eax
push dword [ebp - 0x78]
push dword [esi]
call edi
mov eax, dword [ebp - 0x6c]
push 0
push dword [ebp - 0xd8]
inc eax
push ebx
push eax
push dword [ebp - 0x78]
push dword [esi + 4]
call edi
mov eax, dword [ebp - 0x6c]
push 0
push dword [ebp - 0xd8]
inc eax
push ebx
push eax
mov eax, dword [ebp - 0x70]
sub eax, ebx
push eax
push dword [esi + 8]
call edi
mov eax, dword [ebp - 0x6c]
push 0
push dword [ebp - 0xd8]
inc eax
push dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x78]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x78]
push eax
push dword [esi + 0xc]
call edi
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
sub edi, ebx
mov dword [esi + 0x28], edi
mov ecx, dword [ebp - 0x94]
sub ecx, dword [ebp - 0x9c]
sub eax, ebx
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x20]
sub eax, ebx
imul eax, ecx
div edi
mov dword [esi + 0x38], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01070ac3
leave
ret 0x10