joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016c89c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x30
push ebx
push esi
xor esi, esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
push esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push esi
push esi
push dword [esp + 0x68]
mov ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1016c8dd
push eax
call fcn.100bb859
jmp 0x1016ca63
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 8]
ja 0x1016c8eb
mov eax, dword [esp + 8]
push ebp
push edi
lea edi, [eax + 1]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.msvcr100.dll_malloc]
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x1016c90a
push 7
pop eax
jmp 0x1016ca61
push dword [esp + 0x20]
call dword [sym.imp.msvcr100.dll_malloc]
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x1016c927
push 7
pop ebx
jmp 0x1016ca57
mov eax, esi
mov dword [esp + 0x28], esi
cmp dword [esp + 0x2c], eax
jbe 0x1016c99d
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x24]
push edx
push ecx
lea ecx, [esp + 0x44]
push ecx
push esi
lea ecx, [esp + 0x48]
push ecx
push ebp
push eax
push dword [esp + 0x60]
mov dword [esp + 0x58], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1016c978
push dword [esp + 0x24]
push dword [esp + 0x20]
push dword [esp + 0x44]
push esi
push ebp
push dword [esp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test ebx, ebx
jne 0x1016c984
push eax
call fcn.100bb859
mov ebx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x2c]
jae 0x1016c99d
mov edi, dword [esp + 0x10]
jmp 0x1016c933
push ecx
call dword [sym.imp.msvcr100.dll_free]
pop ecx
cmp dword [esp + 0x30], esi
jbe 0x1016ca57
push dword [esp + 0x10]
push ebp
push esi
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
jne 0x1016ca40
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x18]
push eax
push ebp
push dword [esp + 0x50]
call fcn.1015692e
mov edi, eax
test edi, edi
je 0x1016c9ec
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jmp 0x1016ca40
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
push eax
push ebp
push dword [esp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, eax
test edi, edi
je 0x1016ca14
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
jmp 0x1016ca18
mov eax, dword [esp + 0x14]
test edi, edi
jne 0x1016ca36
push dword [esp + 0x18]
push eax
call fcn.1016c89c
test ebx, ebx
jne 0x1016ca2c
mov ebx, eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1016ca4c
push edi
call fcn.100bb859
mov ebx, eax
inc esi
cmp esi, dword [esp + 0x30]
jb 0x1016c9af
push ebp
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov eax, ebx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x30
ret 8
Function at 0x1016ce87
Capabilities:
Set registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
or dword [esp + 4], 0xffffffff
or dword [esp], 0xffffffff
push ebx
mov ebx, dword [esp + 0x98]
push ebp
push esi
push edi
push 0x27
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x28], ebx
xor esi, esi
call fcn.1015692e
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x4c]
push 0x1016d004
push eax
call ebp
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test edi, edi
jne 0x1016cfbf
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x4c]
push 0x1016d010
push eax
call ebp
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x4c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1016cf51
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jmp 0x1016cfbf
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x4c]
push 0x1016d01c
push eax
call ebp
mov ebp, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x24]
call fcn.1015692e
mov edi, eax
test edi, edi
je 0x1016cf88
mov dword [esp + 0x14], ebp
jmp 0x1016cfbf
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1016c89c
test eax, eax
je 0x1016cfa1
push eax
call fcn.100fc596
mov esi, eax
push dword [esp + 0x10]
call ebx
or dword [esp + 0x10], 0xffffffff
mov edi, eax
test edi, edi
jne 0x1016cfcc
push dword [esp + 0x14]
call ebx
or dword [esp + 0x14], 0xffffffff
mov edi, eax
cmp dword [esp + 0x10], 0xffffffff
je 0x1016cfcc
push dword [esp + 0x10]
call ebx
cmp dword [esp + 0x14], 0xffffffff
je 0x1016cfd9
push dword [esp + 0x14]
call ebx
test esi, esi
js 0x1016cfe5
push edi
call fcn.100bb880
mov esi, eax
mov ecx, dword [esp + 0x98]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x8c
ret 8
Function at 0x1017373a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1023904c]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
push 0x104
lea eax, [ebp - 0x70]
mov edi, ecx
push eax
xor esi, esi
push edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x1017378b
mov eax, 0x80004005
jmp 0x101738d4
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x147
lea eax, [ebp - 0x70]
push edi
mov dword [ebp - 0x78], eax
call ebx
test eax, eax
jns 0x10173855
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push 0x158
push edi
call ebx
test eax, eax
jns 0x10173855
push dword [ebp - 0x80]
call fcn.10173713
mov edi, eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10173662
test eax, eax
js 0x101738d4
cmp dword [ebp - 0x74], esi
je 0x10173801
push dword [ebp - 0x74]
call fcn.1015692e
mov edi, eax
test edi, edi
jne 0x10173801
push 0x23
call fcn.100fc596
jmp 0x101738d4
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
je 0x10173875
test edi, edi
je 0x10173849
test ebx, 0xffff0000
je 0x10173839
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10173819
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.1000c5c0
mov eax, esp
push ebx
push eax
call fcn.1001ce5b
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1015692e
mov esi, eax
test esi, esi
je 0x101737f5
jmp 0x10173875
push ebx
call fcn.1015692e
mov edi, eax
test edi, edi
jmp 0x10173845
push esi
push eax
push 0x150
push edi
call ebx
mov esi, eax
mov edi, dword [esi + 0x14]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10173662
mov eax, dword [0x102445b0]
test eax, eax
je 0x1017388d
cmp dword [eax + 8], 0
je 0x1017388d
push dword [eax + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [ebp - 0x78]
test ebx, 0xffff0000
je 0x101738bd
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1017389d
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.1000c5c0
mov eax, esp
push ebx
push eax
call fcn.1001ce5b
mov ebx, eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [0x102445b0]
mov dword [ecx + 8], eax
mov dword [ecx], edi
mov dword [ecx + 4], esi
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.10001e57
add ebp, 0x98
leave
ret 4
Function at 0x10173b28
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x1023904c]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x74]
push eax
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
call fcn.10173713
test eax, eax
je 0x10173b9f
mov ecx, eax
call fcn.1000e370
mov esi, eax
mov ecx, dword [esi]
lea eax, [ebp - 0x80]
push eax
push esi
call dword [ecx + 0x1c]
mov ecx, dword [esi]
push esi
mov ebx, eax
call dword [ecx + 8]
test ebx, ebx
js 0x10173c1c
mov esi, dword [ebp - 0x80]
mov eax, dword [esi]
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push 1
push 0x15
push esi
call dword [eax + 0xc]
jmp 0x10173bd1
mov ecx, dword [0x1023986c]
push 0
call fcn.10001f40
push eax
call fcn.100c0f78
mov esi, eax
test esi, esi
jne 0x10173bbf
mov eax, 0x8007000e
jmp 0x10173c1e
mov eax, dword [esi]
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 1
push 0x15
push esi
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
js 0x10173bf1
push edi
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
call fcn.10173a73
push dword [ebp - 0x7c]
mov ebx, eax
push dword [ebp - 0x78]
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0xffff0000
push 0
push 0x142
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, ebx
mov ecx, dword [ebp + 0x90]
pop esi
xor ecx, ebp
pop ebx
call fcn.10001e57
add ebp, 0x94
leave
ret
Function at 0x10173c35
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x124
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x12c]
push ebx
push ebp
mov ebp, dword [esp + 0x130]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x1554
push edi
mov dword [esp + 0x28], eax
call esi
push 0x1555
push edi
mov dword [esp + 0x24], eax
call esi
push 0x1556
push edi
mov dword [esp + 0x1c], eax
call esi
push 0x1557
push edi
mov dword [esp + 0x2c], eax
call esi
push 0x1558
push edi
mov dword [esp + 0x14], eax
call esi
and dword [esp + 0x10], 0
push ebp
mov dword [esp + 0x1c], eax
or ebx, 0xffffffff
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
xor esi, esi
inc esi
test eax, eax
je 0x10173cdd
push 0x104
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x28]
push eax
push ebx
push 0x158
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
jmp 0x10173ce1
mov dword [esp + 0x10], esi
mov eax, dword [0x102445b0]
mov ecx, dword [eax]
test ecx, ecx
je 0x10173cf9
call fcn.1000adde
test eax, eax
jne 0x10173cf9
xor ebp, ebp
jmp 0x10173cfb
mov ebp, esi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
test ebx, ebx
setns al
push eax
push dword [esp + 0x20]
call esi
test ebx, ebx
js 0x10173d1c
test ebp, ebp
je 0x10173d1c
xor eax, eax
inc eax
jmp 0x10173d1e
xor eax, eax
push eax
push dword [esp + 0x18]
call esi
test ebx, ebx
js 0x10173d32
test ebp, ebp
je 0x10173d32
xor eax, eax
inc eax
jmp 0x10173d34
xor eax, eax
push eax
push dword [esp + 0x28]
call esi
test ebx, ebx
js 0x10173d48
test ebp, ebp
je 0x10173d48
xor eax, eax
inc eax
jmp 0x10173d4a
xor eax, eax
push eax
push dword [esp + 0x1c]
call esi
test ebx, ebx
js 0x10173d64
push 0
push dword [esp + 0x10]
call esi
push 0x1554
jmp 0x10173d91
cmp dword [esp + 0x10], 0
jne 0x10173d87
push dword [esp + 0x20]
call fcn.10173713
test eax, eax
je 0x10173d87
push 1
push dword [esp + 0x10]
call esi
push 0x1557
jmp 0x10173d91
push 0
push dword [esp + 0x10]
call esi
push 2
push edi
call fcn.1015692e
mov ecx, dword [esp + 0x12c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x124
ret 8
Function at 0x10176b75
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x18
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
push 8
pop ebx
push 3
pop ebp
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 9
mov dword [eax], edi
call fcn.1000ae10
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x10176bcc
mov eax, 0x800a0209
jmp 0x10176c24
test esi, esi
jne 0x10176c60
mov ebx, edi
push dword [esp + ebx*4 + 0x14]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x10176c39
inc ebx
cmp ebx, 4
jb 0x10176bd6
mov ebx, dword [sym.imp.USER32.dll_GetClipboardData]
push esi
call ebx
mov ebp, eax
test ebp, ebp
je 0x10176c1c
mov eax, edi
cmp dword [0x10240a88], eax
je 0x10176c0c
cmp esi, 2
jne 0x10176c0c
push 9
call ebx
push edi
push edi
push eax
push esi
push ebp
push dword [esp + 0x24]
call fcn.1015692e
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x18
ret 8
mov esi, dword [esp + ebx*4 + 0x14]
cmp esi, ebp
jne 0x10176bea
mov ebx, dword [sym.imp.USER32.dll_EnumClipboardFormats]
push edi
jmp 0x10176c54
cmp eax, ebp
je 0x10176c5c
cmp eax, 0xe
je 0x10176c5c
push eax
call ebx
test eax, eax
je 0x10176bea
jmp 0x10176c4a
mov esi, eax
jmp 0x10176bea
cmp esi, 2
je 0x10176bea
cmp esi, ebp
je 0x10176bea
cmp esi, ebx
je 0x10176bea
cmp esi, 0xe
je 0x10176bea
cmp esi, 9
je 0x10176bea
mov edi, 0x800a01cc
jmp 0x10176c1c
Function at 0x10179d9b
Capabilities:
Get common file path

Disassembly:
sub esp, 0x128
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x12c]
push ebx
push ebp
push edi
mov ebx, ecx
mov edi, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
call fcn.1000e7de
mov ebp, 0x102413c8
mov ecx, ebp
call fcn.100c4046
test eax, eax
jne 0x10179e1b
push 0x104
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10179e06
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.1001b0b5
test eax, eax
jne 0x10179e1b
push 7
call fcn.10156628
lea ecx, [esp + 0x14]
call fcn.1001b92f
jmp 0x10179f6f
mov eax, dword [0x10239cd8]
xor ebp, ebp
push esi
push 0x70
cmp dword [eax + 0x48], ebp
je 0x10179ea2
call fcn.1000e3fc
mov ecx, dword [0x10239cd8]
mov esi, dword [ecx + 0x48]
mov ebx, eax
push ebx
mov dword [esp + 0x18], esi
call fcn.10195969
push esi
mov edi, eax
call fcn.10195969
mov esi, eax
lea ecx, [esi + edi]
push ecx
call dword [sym.imp.msvcr100.dll_malloc]
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
push eax
call sub.msvcr100.dll_memcpy
mov ecx, dword [esp + 0x20]
push edi
dec ecx
add ecx, esi
push ebx
push ecx
call sub.msvcr100.dll_memcpy
mov ebx, dword [esp + 0x30]
add esp, 0x1c
test ebx, ebx
je 0x10179e92
push ebx
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
je 0x10179e92
inc ebx
inc ebp
add ebx, eax
jne 0x10179e81
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
shr ebp, 1
jmp 0x10179ea9
call fcn.1000e3fc
mov esi, eax
push 0x102413c8
lea eax, [ebp + 1]
push eax
push esi
push 0
push 0x58
call fcn.1000e3fc
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1015692e
mov ecx, dword [0x10239cd8]
cmp dword [ecx + 0x48], 0
mov ebp, eax
je 0x10179edd
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
test ebp, ebp
je 0x10179f65
lea ecx, [esp + 0x18]
call fcn.100e202e
push eax
call fcn.1001b2f9
mov esi, eax
test esi, esi
jne 0x10179f0c
push 7
call fcn.10156628
push 2
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x10179f65
mov ecx, edi
call fcn.10179b00
test eax, eax
je 0x10179f4e
lea ecx, [esp + 0x18]
call fcn.100e202e
push eax
call fcn.101600b4
push esi
push dword [esp + 0x30]
call fcn.101ab310
test eax, eax
je 0x10179f3c
push eax
call fcn.101a7afd
jmp 0x10179f5e
mov ecx, edi
call fcn.10198e4d
mov ecx, edi
call fcn.10179a67
test eax, eax
jne 0x10179f5e
push 7
call fcn.10156628
push 2
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x18]
call fcn.1001b92f
pop esi
mov ecx, dword [esp + 0x130]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x128
ret 4
Function at 0x1017b580
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push esi
push esi
push 0x18b
push dword [edi + 4]
mov ebp, esi
call ebx
test eax, eax
jle 0x1017b5e8
push esi
push ebp
push 0x199
push dword [edi + 4]
call ebx
push 0
push ebp
push 0x187
push dword [edi + 4]
mov esi, eax
call ebx
imul esi, esi, 0x1c
mov ecx, dword [esp + 0x18]
mov edx, eax
mov eax, dword [ecx + esi + 0x18]
xor eax, edx
and eax, 1
xor dword [ecx + esi + 0x18], eax
xor esi, esi
push esi
push esi
push 0x18b
push dword [edi + 4]
inc ebp
call ebx
cmp ebp, eax
jl 0x1017b5a4
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
ret 8

Function at 0x1017dbd4
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x40c
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push ebp
push esi
push edi
xor ebp, ebp
push 5
push dword [0x1023a16c]
inc ebp
xor esi, esi
jmp 0x1017dcbd
cmp esi, 7
jg 0x1017dcc9
push 0x100
lea eax, [esp + 0x11c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1017dcba
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1017dcba
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1017dcba
lea eax, [esi + 1]
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push 0x1017dd14
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x104
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x120]
push eax
call dword [0x10241a10]
push 0x100
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1015692e
lea ecx, [esp + 0x218]
lea eax, [esi + 0x76]
push ecx
push eax
call fcn.1017dd96
mov ebp, eax
test ebp, ebp
je 0x1017dcc9
push 1
lea eax, [esi + 0x76]
push eax
call fcn.100b626e
mov dword [esi*4 + 0x10244658], edi
mov esi, dword [esp + 0x10]
push 2
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x1017dc04
mov edi, esi
cmp esi, 7
jg 0x1017dce1
push 0
lea eax, [edi + 0x76]
push eax
call fcn.100b626e
inc edi
cmp edi, 7
jle 0x1017dcd0
xor eax, eax
cmp esi, 7
setg al
push eax
push 0x7e
call fcn.100b626e
mov ecx, dword [esp + 0x418]
pop edi
xor eax, eax
test ebp, ebp
pop esi
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x40c
ret

Function at 0x1017df83
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, dword [esp + 8]
push 0
push 0
mov eax, esi
and eax, 0x80000000
mov dword [0x1024468c], eax
pop eax
setne al
push eax
push 0x130c
push dword [0x10240ba0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x1024468c]
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [0x10240ba4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x1024468c], 0
je 0x1017dfec
push 0
lea eax, [esi - 0x80000000]
push eax
push 0x186
push dword [0x10240ba4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push esi
call fcn.1017e508
mov dword [0x10244690], eax
pop esi
ret 4
Function at 0x1017eba6
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
xor ebx, ebx
test ax, ax
sets bl
test ebx, ebx
jne 0x1017ebf6
cmp dword [0x102446cc], 0
jne 0x1017ebec
push dword [0x102446d4]
push dword [0x102446d0]
push esi
push edi
call fcn.1018069c
test eax, eax
jne 0x1017ecd1
mov dword [0x102446cc], 1
mov ecx, dword [0x102446b4]
mov eax, edi
sub eax, ecx
add dword [0x102446bc], eax
mov eax, edi
sub eax, ecx
add dword [0x102446c4], eax
mov ecx, dword [0x102446b8]
mov eax, esi
sub eax, ecx
add dword [0x102446c0], eax
push ebp
mov eax, esi
sub eax, ecx
add dword [0x102446c8], eax
push 4
pop ebp
mov dword [0x102446ec], ebp
mov dword [0x102446b4], edi
mov dword [0x102446b8], esi
test ebx, ebx
jne 0x1017ec8d
mov ecx, dword [0x102446f4]
lea eax, [esp + 0x18]
push eax
call fcn.1017f8dd
lea eax, [esp + 0x10]
push eax
push 0x1017e872
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 0x102446ec
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
cmp dword [0x102446ec], ebp
je 0x1017ec8d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jmp 0x1017ecac
mov ecx, dword [0x102446e0]
sub ecx, dword [0x102446d8]
mov eax, dword [0x102446e4]
sub eax, dword [0x102446dc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov esi, 0x102446bc
push esi
push eax
push ecx
push 0x102446b4
call fcn.1017f3d6
xor eax, eax
cmp dword [0x102446ec], ebp
sete al
push eax
push esi
call fcn.10180448
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x1017f050
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [esp + 0x14], eax
push 1
push 0x20e
push 0x200
xor ebp, ebp
push ebp
lea eax, [esp + 0x28]
push eax
call ebx
test eax, eax
jne 0x1017f0cd
push 1
push 0x109
push 0x100
push eax
lea eax, [esp + 0x28]
push eax
call ebx
test eax, eax
jne 0x1017f0cd
push 1
push 0x215
push 0x215
push eax
lea eax, [esp + 0x28]
push eax
call ebx
test eax, eax
jne 0x1017f0cd
push 1
push 0x1f
push 0x1f
push eax
lea eax, [esp + 0x28]
push eax
call ebx
test eax, eax
jne 0x1017f0cd
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x1017f069
mov eax, dword [esp + 0x1c]
sub eax, 0x1f
je 0x1017f19c
sub eax, 0xe1
je 0x1017f0e6
sub eax, 4
jne 0x1017f0fb
cmp byte [esp + 0x20], 0x1b
je 0x1017f19c
cmp byte [esp + 0x20], 0x11
jne 0x1017f0fb
xor ebp, ebp
inc ebp
mov esi, dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetCapture]
cmp esi, eax
jne 0x1017f19c
call dword [sym.imp.USER32.dll_GetMessagePos]
mov esi, eax
push 1
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov eax, dword [0x102446a8]
js 0x1017f132
mov ecx, eax
dec ecx
je 0x1017f189
dec ecx
je 0x1017f176
test ebp, ebp
jne 0x1017f140
cmp esi, dword [esp + 0x14]
je 0x1017f069
dec eax
je 0x1017f160
dec eax
jne 0x1017f069
movsx eax, word [esp + 0x12]
push eax
movsx eax, si
push eax
mov ecx, edi
call fcn.1015692e
jmp 0x1017f069
movsx eax, word [esp + 0x12]
push eax
movsx eax, si
push eax
mov ecx, edi
call fcn.1017eba6
jmp 0x1017f069
movsx eax, word [esp + 0x12]
push eax
movsx eax, si
push eax
mov ecx, edi
call fcn.1017ef67
jmp 0x1017f1a3
movsx eax, word [esp + 0x12]
push eax
movsx eax, si
push eax
mov ecx, edi
call fcn.1017ecda
jmp 0x1017f1a3
mov ecx, edi
call fcn.1017ee0d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret