joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000434a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x100908cc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x1000438e
call ebx
test eax, eax
jns 0x10004384
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x100908c8], eax
mov dword [0x100908cc], 1
mov eax, dword [0x100908c8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x100043aa
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x100043da
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x100043d0
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x100043c4
push dword [eax + 8]
call dword [eax]
jmp 0x100043ca
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x100043d9
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000583b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, ecx
je 0x100058d3
mov ecx, dword [ebx + 0x2c]
call fcn.100046e7
test eax, eax
je 0x1000586c
push 1
mov ecx, eax
call fcn.1003ae60
test byte [ebp + 0xc], 2
je 0x100058cb
push esi
push edi
mov edi, 0x10090ab8
push edi
push str.__supdate_install.exe_
mov esi, 0x104
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.100011f2
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.10049ec0
push edi
push 0x10070138
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.100011f2
add esp, 0x2c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov ecx, dword [ebx + 0x2c]
call fcn.100055c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10050837
leave
ret 0x10

Function at 0x10006383
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100063dd
cmp dword [ebp + 0x10], 1
je 0x100063c2
cmp dword [ebp + 0x10], 2
je 0x100063c2
push 0xd
pop eax
jmp 0x100063dd
test edi, edi
mov eax, dword [ebp - 4]
je 0x100063d9
test eax, eax
je 0x100063d6
cmp byte [eax + edi - 1], 0
je 0x100063d9
jmp 0x100063bd
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x10006f7d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1012
push dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x10006fd8
cmp dword [ebp - 0xc], 8
jne 0x10006fd8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x10006fd8
push dword [ebp - 8]
mov ecx, esi
call fcn.10006efd
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 0x10
Function at 0x100072e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x504
lea ebp, [esp - 4]
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp + 0x504], eax
push 0x40
mov eax, 0x10069488
call fcn.10050c7c
mov ebx, dword [ebp + 0x510]
xor edi, edi
mov esi, 0x100a41f4
push esi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x24], edi
call fcn.10011c44
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], 1
call fcn.10011c44
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.10011c44
mov dword [ebp - 0x10], edi
push 0x100a0a38
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.100069c2
push 0x20019
push 0x10097fb0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.1000634e
cmp eax, edi
jne 0x1000747d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x400]
push eax
push dword [0x1008ed94]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x104
call fcn.10006383
cmp eax, edi
jne 0x1000747d
push esi
lea ecx, [ebp - 0x1c]
call fcn.10011c44
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [0x1008ed90]
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 0x10007445
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.1000646f
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.1000314f
add esp, 0x10
mov esi, dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x400]
push eax
push 0x10096628
lea eax, [ebp - 0x14]
push 0x100a0630
push eax
call fcn.1000314f
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.10006e5f
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.10001b56
push 0x100a0420
push 0x1009e0a8
push 0x100a0528
push 0x1009d490
push str._br__br__a_href__s___s__a__br__a_href__s___s__a_
push ebx
call fcn.100069e7
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.10006337
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10001b56
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10001b56
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.10050837
add ebp, 0x508
leave
ret
Function at 0x10008004
Capabilities:
Accept command line arguments

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x1008ac94], bl
je 0x1000802e
push ebx
push str.Embedding
mov byte [0x1008ac94], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.10033fb2
add esp, 0xc
test eax, eax
jne 0x1000808d
call fcn.10007b3d
test al, al
je 0x1000808d
push esi
mov esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x154]
cmp eax, dword [0x100a1818]
jbe 0x1000807f
cmp byte [esi + 0x158], bl
je 0x1000807f
mov eax, dword [esi + 0x60]
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1000807f
cmp byte [esi + 0x159], bl
je 0x1000807f
mov eax, dword [esp + 0x14]
or word [eax], 0xffff
mov ecx, esi
call fcn.10007e81
mov byte [esi + 0x158], 1
mov dword [esi + 0x154], ebx
pop esi
pop ebx
ret 0xc

Function at 0x100080cc
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 0x100080fd
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 0x1000811c
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 0x1000813b
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 0x100098b6
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 0x100098d8
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 0x100098ee
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 0x1000990d
push 0x7a
pop eax
jmp 0x10009922
cmp dword [ebp + 0xc], 0
je 0x10009920
push eax
push ebx
push dword [ebp + 0xc]
call fcn.10052100
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop ebp
ret

Function at 0x10009a17
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 0x10009a6a
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x10009a80
push 0x80004005
call fcn.100019a4
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 0x10009a83
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 0x1000a4d7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1008f414]
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.1000634e
mov edi, eax
cmp edi, esi
je 0x1000a53f
lea ecx, [ebp - 0x70]
call fcn.10006337
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10050837
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000a557
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.1000a4d7
cmp eax, esi
jne 0x1000a58a
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 0x1000a547
lea ecx, [ebp - 0x70]
call fcn.10006337
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.10006337
mov eax, esi
jmp 0x1000a525
Function at 0x1000d27e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x10069963
call fcn.10050caf
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 [0x1008f3d4]
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 0x1000d338
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.10001940
add esp, 0xc
test eax, eax
jl 0x1000d338
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x1000d320
push edi
call fcn.1000200a
test al, al
pop ecx
je 0x1000d320
mov eax, edi
call fcn.10051ab0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000d329
push edi
lea ecx, [ebp - 0x20]
call fcn.10002462
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.1000974d
cmp eax, ebx
jne 0x1000d37d
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d348
lea ecx, [ebp]
call fcn.1000a3b0
lea ecx, [ebp - 0x20]
call fcn.10001e5a
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.10050837
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call fcn.1000af08
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x1000d39b
call fcn.10009888
mov esi, eax
jmp 0x1000d465
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000d3b8
call fcn.10009888
jmp 0x1000d45a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1000d3ae
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 0x1000d3ff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d3eb
lea ecx, [ebp]
call fcn.1000a3b0
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.10001e5a
mov eax, esi
jmp 0x1000d355
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.1000befc
mov dword [ebp - 4], 1
jmp 0x1000d427
cmp dword [ebp], ebx
jne 0x1000d433
mov esi, 0x8007000e
jmp 0x1000d45c
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.100097b1
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.1000ce5e
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d3f0
lea ecx, [ebp]
call fcn.1000a3b0
jmp 0x1000d3f0
Function at 0x10015cfa
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x10069fcc
call fcn.10050c7c
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 0x10015d53
call fcn.100113be
jmp 0x10015d55
xor eax, eax
push eax
push 0xffffffffffffffff
push 0x158
push dword [edi]
call esi
cmp eax, 0xffffffff
jne 0x10015e53
cmp dword [ebp - 0x10], 0x14
jl 0x10015d8f
mov eax, dword [ebp - 0x10]
dec eax
push eax
mov ecx, edi
call fcn.10011375
push ebx
push ebx
push 0x146
push dword [edi]
call esi
cmp eax, 0x14
mov dword [ebp - 0x10], eax
jge 0x10015d70
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x10015da0
call fcn.100113be
jmp 0x10015da2
xor eax, eax
push eax
push ebx
push 0x14a
push dword [edi]
call esi
push 0x10097ea8
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], SysReAllocString
call fcn.1000a4d7
lea ecx, [ebp - 0x14]
call fcn.10006337
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push 0x10097ea8
push SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.100099c9
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 0x10015e2d
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 0x10015dfc
lea ecx, [ebp - 0x14]
call fcn.10006337
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
push 0x7fff0002
push eax
call dword [ecx + 0x50]
push ebx
push ebx
push 0x14e
push dword [edi]
call esi
jmp 0x10015e5b
push eax
mov ecx, edi
call fcn.10011345
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x10015e6a
call fcn.100123ef
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.10050837
add ebp, 0x404
leave
ret 4
Function at 0x10016857
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1008f414]
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 0x10016896
push str.err_CTB_E_OBJECTREMOVED
push 0x100a1ba4
mov esi, 0x80041401
push esi
call fcn.1000330d
add esp, 0xc
mov dword [ebp - 8], esi
jmp 0x10016953
cmp dword [ebp + 0xc], 0
jne 0x100168a8
mov dword [ebp - 8], 0x80004003
jmp 0x10016953
push dword [esi + 0x84]
mov edi, 0x1006fd78
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x10016907
inc ebx
mov eax, ebx
call fcn.10051ab0
mov edi, esp
push ebx
push edi
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x10016907
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100168eb
call esi
jmp 0x100168f7
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 8], eax
jl 0x10016953
mov dword [ebp - 8], 0x80004005
jmp 0x10016953
call dword [0x1008f3d4]
test edi, edi
mov ebx, eax
je 0x10016925
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x10016929
xor eax, eax
jmp 0x1001693c
lea eax, [esi + esi]
call fcn.10051ab0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.1000196d
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x10016963
mov dword [ebp - 8], 0x8007000e
push dword [0x1008c558]
push dword [ebp - 8]
call fcn.100031ec
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.10050837
leave
ret 8

Function at 0x100169c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1008f414]
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 0x10016a1a
push str.err_CTB_E_OBJECTREMOVED
push 0x100a1ba4
mov edi, 0x80041401
push edi
call fcn.1000330d
add esp, 0xc
push dword [0x1008c558]
push edi
call fcn.100031ec
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.10050837
leave
ret 4
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x10016a04
inc ebx
mov eax, ebx
call fcn.10051ab0
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 0x10016a7b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10016a5d
call esi
mov edi, eax
jmp 0x10016a6d
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
test edi, edi
jl 0x100169f6
mov edi, 0x80004005
jmp 0x100169f6
push ecx
mov ecx, esp
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call fcn.10011bf7
lea ecx, [esi - 0xc8]
call fcn.10015cfa
jmp 0x10016a04
Function at 0x100183f4
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.10051b60
push 0xffffffffffffffff
push 0x1006a272
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1008f414]
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.10011e92
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 0x100185f5
lea eax, [ebp + 0x800]
push 0x10091cf8
push eax
call fcn.100512a1
test eax, eax
pop ecx
pop ecx
jne 0x100184e1
push 0x1006fd78
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.100183bd
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], esi
je 0x100185f5
push dword [ebp - 0x20]
call fcn.1004fef9
jmp 0x100185f5
lea eax, [ebp + 0x800]
push 0x10091c70
push eax
call fcn.100512a1
test eax, eax
pop ecx
pop ecx
jne 0x10018504
mov ecx, edi
call fcn.10015e91
jmp 0x100185f5
push esi
lea eax, [ebp + 0xc00]
push eax
lea eax, [ebp + 0x800]
push eax
call fcn.1003415e
add esp, 0xc
cmp byte [ebp + 0xc00], bl
jne 0x10018539
push 0x1006fd78
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x100185f5
push ecx
lea eax, [ebp + 0xc00]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.10011bf7
mov ecx, edi
call fcn.10015cfa
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.100199e5
add esp, 0xc
test eax, eax
je 0x100185a2
xor eax, eax
inc eax
jmp 0x100185f7
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [0x1008edc0]
call fcn.10035b30
add esp, 0xc
test eax, eax
jne 0x100185cc
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
push dword [0x1008edc0]
call fcn.10035c00
pop ecx
pop ecx
cmp dword [0x100a17f0], ebx
je 0x100185f5
mov ecx, dword [edi + 0x60]
cmp ecx, ebx
je 0x100185f5
cmp dword [ecx + 0x60], ebx
je 0x100185f5
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x100185f0
cmp eax, dword [0x100a1830]
jne 0x100185f5
call fcn.10023d24
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.10050837
add ebp, 0x1004
leave
ret
Function at 0x1001d5c6
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 0x100205f6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1008f414]
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 0x10020635
push str.err_CTB_E_OBJECTREMOVED
push 0x100a1ba4
mov esi, 0x80041401
push esi
call fcn.1000330d
add esp, 0xc
mov dword [ebp - 8], esi
jmp 0x100206ec
cmp dword [ebp + 0xc], 0
jne 0x10020647
mov dword [ebp - 8], 0x80004003
jmp 0x100206ec
push dword [esi + 0x58]
mov edi, 0x1006fd78
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x100206a0
inc ebx
mov eax, ebx
call fcn.10051ab0
mov edi, esp
push ebx
push edi
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x100206a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10020684
call esi
jmp 0x10020690
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 8], eax
jl 0x100206ec
mov dword [ebp - 8], 0x80004005
jmp 0x100206ec
call dword [0x1008f3d4]
test edi, edi
mov ebx, eax
je 0x100206be
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x100206c2
xor eax, eax
jmp 0x100206d5
lea eax, [esi + esi]
call fcn.10051ab0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.1000196d
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x100206fc
mov dword [ebp - 8], 0x8007000e
push dword [0x1008e450]
push dword [ebp - 8]
call fcn.100031ec
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.10050837
leave
ret 8