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

Disassembly:
push ebp
sub esp, 0x504
lea ebp, [esp - 4]
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp + 0x504], eax
push 0x40
mov eax, 0x100620c0
call fcn.1004b3e7
mov ebx, dword [ebp + 0x510]
xor edi, edi
mov esi, 0x1009a864
push esi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x24], edi
call fcn.100029aa
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], 1
call fcn.100029aa
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.100029aa
mov dword [ebp - 0x10], edi
push 0x100978f0
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.10006c79
push 0x20019
push 0x1008ee68
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.10006590
cmp eax, edi
jne 0x100078eb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x400]
push eax
push dword [0x10085d20]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x104
call fcn.100065c5
cmp eax, edi
jne 0x100078eb
push esi
lea ecx, [ebp - 0x1c]
call fcn.100029aa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [0x10085d1c]
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
mov dword [ebp - 0x28], 0xb
mov dword [ebp - 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x100078b3
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x38]
call fcn.100066b1
push 0x200
lea eax, [ebp]
push eax
push edi
lea eax, [ebp - 0x4c]
push eax
push edi
mov esi, 0x800
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x200
lea eax, [ebp + 0x200]
push eax
push edi
lea eax, [ebp - 0x4c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp + 0x200]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push str._s__s
push eax
call fcn.10003753
add esp, 0x10
mov esi, dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x400]
push eax
push 0x1008d4e0
lea eax, [ebp - 0x14]
push 0x100974e8
push eax
call fcn.10003753
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.10007116
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.10002373
push 0x100972d8
push 0x10094f60
push 0x100973e0
push 0x10094348
push str._br__br__a_href__s___s__a__br__a_href__s___s__a_
push ebx
call fcn.10006c9e
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.10006579
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10002373
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10002373
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x504]
xor ecx, ebp
call fcn.1004ada8
add ebp, 0x508
leave
ret
Function at 0x1000845e
Capabilities:
Accept command line arguments

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x10081cdc], bl
je 0x10008488
push ebx
push str.Embedding
mov byte [0x10081cdc], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.100313e4
add esp, 0xc
test eax, eax
jne 0x100084e7
call fcn.10007fa3
test al, al
je 0x100084e7
push esi
mov esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x154]
cmp eax, dword [0x10097e90]
jbe 0x100084d9
cmp byte [esi + 0x158], bl
je 0x100084d9
mov eax, dword [esi + 0x60]
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100084d9
cmp byte [esi + 0x159], bl
je 0x100084d9
mov eax, dword [esp + 0x14]
or word [eax], 0xffff
mov ecx, esi
call fcn.100082e7
mov byte [esi + 0x158], 1
mov dword [esi + 0x154], ebx
pop esi
pop ebx
ret 0xc

Function at 0x10008545
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x148], 0
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
jne 0x10008576
call ebx
push eax
push 0
lea eax, [esi + 0x120]
push eax
push 7
call edi
mov dword [esi + 0x148], eax
lea ebp, [esi + 0x14c]
cmp dword [ebp], 0
jne 0x10008595
call ebx
push eax
push 0
lea eax, [esi + 0x12a]
push eax
push 2
call edi
mov dword [ebp], eax
lea ebp, [esi + 0x150]
cmp dword [ebp], 0
jne 0x100085b4
call ebx
push eax
push 0
add esi, 0x134
push esi
push 4
call edi
mov dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10009ed6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x539
push 5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x10009ef8
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10009f0e
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, dword [esi]
mov dword [esi], eax
jbe 0x10009f2d
push 0x7a
pop eax
jmp 0x10009f42
cmp dword [ebp + 0xc], 0
je 0x10009f40
push eax
push ebx
push dword [ebp + 0xc]
call fcn.1004c690
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop ebp
ret

Function at 0x1000a04c
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x1000a09f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x1000a0b5
push 0x80004005
call fcn.10001fb5
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x1000a0b8
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x1000abec
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.10006590
mov edi, eax
cmp edi, esi
je 0x1000ac54
lea ecx, [ebp - 0x70]
call fcn.10006579
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ada8
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000ac6c
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.1000abec
cmp eax, esi
jne 0x1000ac9f
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x1000ac5c
lea ecx, [ebp - 0x70]
call fcn.10006579
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.10006579
mov eax, esi
jmp 0x1000ac3a
Function at 0x1000d644
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x1006262b
call fcn.1004b41a
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x10086284]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x1000d6fe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.10001f51
add esp, 0xc
test eax, eax
jl 0x1000d6fe
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x1000d6e6
push edi
call fcn.100025c1
test al, al
pop ecx
je 0x1000d6e6
mov eax, edi
call fcn.1004c100
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000d6ef
push edi
lea ecx, [ebp - 0x20]
call fcn.1000293f
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.10009d6d
cmp eax, ebx
jne 0x1000d743
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d70e
lea ecx, [ebp]
call fcn.1000a90b
lea ecx, [ebp - 0x20]
call fcn.10002406
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1004ada8
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call fcn.1000b3a8
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x1000d761
call fcn.10009eae
mov esi, eax
jmp 0x1000d824
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000d77e
call fcn.10009eae
jmp 0x1000d819
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1000d774
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x1000d7c5
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d7b1
lea ecx, [ebp]
call fcn.1000a90b
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.10002406
mov eax, esi
jmp 0x1000d71b
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.1000c34a
mov dword [ebp - 4], 1
jmp 0x1000d7e6
cmp dword [ebp], ebx
jne 0x1000d7f2
mov esi, 0x8007000e
jmp 0x1000d81b
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.10009dd1
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.1000d23a
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d7b6
lea ecx, [ebp]
call fcn.1000a90b
jmp 0x1000d7b6
Function at 0x10015ac5
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x10062c03
call fcn.1004b3e7
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x146
add edi, 0x14c
push dword [edi]
mov dword [ebp - 4], ebx
call esi
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
mov dword [ebp - 0x10], eax
je 0x10015b1e
call fcn.10011569
jmp 0x10015b20
xor eax, eax
push eax
push 0xffffffffffffffff
push 0x158
push dword [edi]
call esi
cmp eax, 0xffffffff
jne 0x10015c1e
cmp dword [ebp - 0x10], 0x14
jl 0x10015b5a
mov eax, dword [ebp - 0x10]
dec eax
push eax
mov ecx, edi
call fcn.10011534
push ebx
push ebx
push 0x146
push dword [edi]
call esi
cmp eax, 0x14
mov dword [ebp - 0x10], eax
jge 0x10015b3b
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x10015b6b
call fcn.10011569
jmp 0x10015b6d
xor eax, eax
push eax
push ebx
push 0x14a
push dword [edi]
call esi
push 0x1008ed60
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], SysReAllocString
call fcn.1000abec
lea ecx, [ebp - 0x14]
call fcn.10006579
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push 0x1008ed60
push SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.10009ffe
push ebx
push ebx
push 0x146
push dword [edi]
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
jle 0x10015bf8
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push 0x148
push dword [edi]
call esi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x10015bc7
lea ecx, [ebp - 0x14]
call fcn.10006579
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
push 0x7fff0002
push eax
call dword [ecx + 0x3c]
push ebx
push ebx
push 0x14e
push dword [edi]
call esi
jmp 0x10015c26
push eax
mov ecx, edi
call fcn.10011504
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x10015c35
call fcn.100057ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.1004ada8
add ebp, 0x404
leave
ret 4
Function at 0x1001635b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi - 4], 0
push edi
je 0x1001639a
push str.err_CTB_E_OBJECTREMOVED
push 0x1009821c
mov esi, 0x80041401
push esi
call fcn.100038ad
add esp, 0xc
mov dword [ebp - 8], esi
jmp 0x10016457
cmp dword [ebp + 0xc], 0
jne 0x100163ac
mov dword [ebp - 8], 0x80004003
jmp 0x10016457
push dword [esi + 0x84]
mov edi, 0x10067dc0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x1001640b
inc ebx
mov eax, ebx
call fcn.1004c100
mov edi, esp
push ebx
push edi
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x1001640b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100163ef
call esi
jmp 0x100163fb
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 8], eax
jl 0x10016457
mov dword [ebp - 8], 0x80004005
jmp 0x10016457
call dword [0x10086284]
test edi, edi
mov ebx, eax
je 0x10016429
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x1001642d
xor eax, eax
jmp 0x10016440
lea eax, [esi + esi]
call fcn.1004c100
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10001f7e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x10016467
mov dword [ebp - 8], 0x8007000e
push dword [0x100835a0]
push dword [ebp - 8]
call fcn.1000378c
pop ecx
pop ecx
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ada8
leave
ret 8

Function at 0x100164c4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp byte [esi - 4], 0
je 0x1001651e
push str.err_CTB_E_OBJECTREMOVED
push 0x1009821c
mov edi, 0x80041401
push edi
call fcn.100038ad
add esp, 0xc
push dword [0x100835a0]
push edi
call fcn.1000378c
pop ecx
pop ecx
mov eax, edi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ada8
leave
ret 4
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x10016508
inc ebx
mov eax, ebx
call fcn.1004c100
mov dword [ebp - 8], esp
push ebx
push dword [ebp - 8]
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x1001657f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10016561
call esi
mov edi, eax
jmp 0x10016571
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
test edi, edi
jl 0x100164fa
mov edi, 0x80004005
jmp 0x100164fa
push 0x10067dc0
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ecx
mov ecx, esp
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call fcn.10011bb2
lea ecx, [esi - 0xc8]
call fcn.10015ac5
jmp 0x10016508
Function at 0x10017ab5
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1004c130
push 0xffffffffffffffff
push 0x10062e49
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1c6b
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, edi
call fcn.10011e0e
mov esi, 0x400
push esi
lea eax, [ebp + 0x800]
push eax
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
xor ebx, ebx
cmp byte [ebp + 0x800], bl
je 0x10017cb6
lea eax, [ebp + 0x800]
push 0x10088bb0
push eax
call fcn.1004baea
test eax, eax
pop ecx
pop ecx
jne 0x10017ba2
push 0x10067dc0
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, vtable.Candeo::AboutDlg.0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x34]
call fcn.10017a7e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], esi
je 0x10017cb6
push dword [ebp - 0x20]
call fcn.1004a489
jmp 0x10017cb6
lea eax, [ebp + 0x800]
push 0x10088b28
push eax
call fcn.1004baea
test eax, eax
pop ecx
pop ecx
jne 0x10017bc5
mov ecx, edi
call fcn.10015c5c
jmp 0x10017cb6
push esi
lea eax, [ebp + 0xc00]
push eax
lea eax, [ebp + 0x800]
push eax
call fcn.10031590
add esp, 0xc
cmp byte [ebp + 0xc00], bl
jne 0x10017bfa
push 0x10067dc0
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x10017cb6
push ecx
lea eax, [ebp + 0xc00]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.10011bb2
mov ecx, edi
call fcn.10015ac5
push esi
lea eax, [ebp]
push eax
push esi
lea eax, [ebp + 0xc00]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push esi
lea eax, [ebp + 0xc00]
push eax
push esi
lea eax, [ebp]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [edi + 0x178]
push ebx
lea ecx, [ebp + 0xc00]
push ecx
push eax
call fcn.10019304
add esp, 0xc
test eax, eax
je 0x10017c63
xor eax, eax
inc eax
jmp 0x10017cb8
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [0x10085d4c]
call fcn.10032e10
add esp, 0xc
test eax, eax
jne 0x10017c8d
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
push dword [0x10085d4c]
call fcn.10032ee0
pop ecx
pop ecx
cmp dword [0x10097e8c], ebx
je 0x10017cb6
mov ecx, dword [edi + 0x60]
cmp ecx, ebx
je 0x10017cb6
cmp dword [ecx + 0x60], ebx
je 0x10017cb6
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x10017cb1
cmp eax, dword [0x10097ea8]
jne 0x10017cb6
call fcn.10022624
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1004ada8
add ebp, 0x1004
leave
ret
Function at 0x10017da7
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x10017db8
xor eax, eax
inc eax
jmp 0x10017e53
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx - 0x24]
cmp eax, ecx
je 0x10017dd9
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x10017dd9
inc eax
jmp 0x10017e52
push edi
mov edi, dword [esi + 8]
cmp edi, 0xd
jne 0x10017dfc
and dword [esi + 8], 0
cmp dword [esi + 4], 0x101
jne 0x10017e3c
lea ecx, [ebx - 0x170]
call fcn.10017ab5
jmp 0x10017e4f
mov eax, dword [esi + 4]
cmp eax, 0x101
je 0x10017e0d
cmp eax, 0x100
jne 0x10017e12
cmp edi, 8
je 0x10017e41
cmp edi, 0x23
jl 0x10017e1c
cmp edi, 0x28
jle 0x10017e41
cmp edi, 0x2e
je 0x10017e41
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x10017e3c
cmp edi, 0x43
je 0x10017e41
cmp edi, 0x56
je 0x10017e41
cmp edi, 0x58
je 0x10017e41
xor eax, eax
inc eax
jmp 0x10017e51
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
xor eax, eax
pop edi
pop ebx
pop esi
ret 8
Function at 0x1001c74b
Capabilities:
Capture webcam image

Disassembly:
push 0
push dword [esp + 8]
push 0x419
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageA]
ret 4

Function at 0x1001ed9c
Capabilities:
Log keystrokes via polling

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x1001edad
xor eax, eax
inc eax
jmp 0x1001ee5c
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [esp + 0xc]
mov ecx, dword [esi - 0x24]
cmp eax, ecx
je 0x1001edd1
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x1001edd1
inc eax
jmp 0x1001ee5b
push ebx
mov ebx, dword [edi + 8]
cmp ebx, 0xd
jne 0x1001ee05
and dword [edi + 8], 0
cmp dword [edi + 4], 0x101
jne 0x1001ee45
mov eax, dword [esi - 0xe4]
push 0
push dword [esi - 0xd8]
push 0x111
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x1001ee58
mov eax, dword [edi + 4]
cmp eax, 0x101
je 0x1001ee16
cmp eax, 0x100
jne 0x1001ee1b
cmp ebx, 8
je 0x1001ee4a
cmp ebx, 0x23
jl 0x1001ee25
cmp ebx, 0x28
jle 0x1001ee4a
cmp ebx, 0x2e
je 0x1001ee4a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x1001ee45
cmp ebx, 0x43
je 0x1001ee4a
cmp ebx, 0x56
je 0x1001ee4a
cmp ebx, 0x58
je 0x1001ee4a
xor eax, eax
inc eax
jmp 0x1001ee5a
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
xor eax, eax
pop ebx
pop esi
pop edi
ret 8
Function at 0x1001f668
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi - 4], 0
push edi
je 0x1001f6a7
push str.err_CTB_E_OBJECTREMOVED
push 0x1009821c
mov esi, 0x80041401
push esi
call fcn.100038ad
add esp, 0xc
mov dword [ebp - 8], esi
jmp 0x1001f75e
cmp dword [ebp + 0xc], 0
jne 0x1001f6b9
mov dword [ebp - 8], 0x80004003
jmp 0x1001f75e
push dword [esi + 0x58]
mov edi, 0x10067dc0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x1001f712
inc ebx
mov eax, ebx
call fcn.1004c100
mov edi, esp
push ebx
push edi
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x1001f712
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1001f6f6
call esi
jmp 0x1001f702
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 8], eax
jl 0x1001f75e
mov dword [ebp - 8], 0x80004005
jmp 0x1001f75e
call dword [0x10086284]
test edi, edi
mov ebx, eax
je 0x1001f730
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x1001f734
xor eax, eax
jmp 0x1001f747
lea eax, [esi + esi]
call fcn.1004c100
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10001f7e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x1001f76e
mov dword [ebp - 8], 0x8007000e
push dword [0x10085420]
push dword [ebp - 8]
call fcn.1000378c
pop ecx
pop ecx
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ada8
leave
ret 8