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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x5b8321e0], esi
jne 0x5b831187
mov ecx, 0x47e
add dword [0x5b83200c], ecx
add dword [0x5b832044], ecx
add dword [0x5b83206c], ecx
add dword [0x5b832094], ecx
add dword [0x5b8320bc], ecx
add dword [0x5b8320e4], ecx
add dword [0x5b83210c], ecx
add dword [0x5b832134], ecx
add dword [0x5b83215c], ecx
add dword [0x5b832184], ecx
mov eax, 0x47f
add dword [0x5b832014], eax
add dword [0x5b83204c], eax
add dword [0x5b832074], eax
add dword [0x5b83209c], eax
add dword [0x5b8320c4], eax
add dword [0x5b8320ec], eax
add dword [0x5b832114], eax
add dword [0x5b83213c], eax
add dword [0x5b832164], eax
add dword [0x5b83218c], eax
mov dword [0x5b8321e4], 1
inc dword [0x5b8321e0]
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push 0x5b83106c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5b8311b9
mov dword [0x5b8321fc], esi
mov dword [0x5b832200], esi
jmp 0x5b831231
push ebx
push edi
push 4
pop edi
lea eax, [ebp - 4]
push eax
push 0x5b8321fc
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x5b831064
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
mov ebx, 0x50455246
je 0x5b8311f1
and dword [0x5b8321fc], 0
jmp 0x5b8311f7
sub dword [0x5b8321fc], ebx
lea eax, [ebp - 4]
push eax
push 0x5b832200
lea eax, [ebp - 0xc]
push eax
push 0
push 0x5b83105c
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x5b831220
and dword [0x5b832200], 0
jmp 0x5b831226
sub dword [0x5b832200], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 4

Function at 0x5b831374
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push 0x80000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
je 0x5b831401
push edi
push 4
push 0x5b8310c0
push ebx
mov dword [0x5b8321e8], esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 4
jne 0x5b8313c3
mov dword [0x5b8321e8], 1
cmp dword [0x5b8321e8], esi
je 0x5b8313f4
cmp dword [0x5b8321dc], esi
jne 0x5b8313f4
push 0x5b8310b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x5b8310a0
push eax
mov dword [0x5b8321dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5b832204], eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000445f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x1008e8cc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x100044a3
call ebx
test eax, eax
jns 0x10004499
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1008e8c8], eax
mov dword [0x1008e8cc], 1
mov eax, dword [0x1008e8c8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x100044bf
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x100044ef
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x100044e5
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x100044d9
push dword [eax + 8]
call dword [eax]
jmp 0x100044df
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x100044ee
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 0x100059b6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1008d414]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, ecx
je 0x10005a4e
mov ecx, dword [ebx + 0x2c]
call fcn.100047fc
test eax, eax
je 0x100059e7
push 1
mov ecx, eax
call fcn.10039a10
test byte [ebp + 0xc], 2
je 0x10005a46
push esi
push edi
mov edi, 0x1008eab8
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.10048a10
push edi
push 0x1006e118
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.100056d2
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004f347
leave
ret 0x10

Function at 0x100064fe
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 0x10006558
cmp dword [ebp + 0x10], 1
je 0x1000653d
cmp dword [ebp + 0x10], 2
je 0x1000653d
push 0xd
pop eax
jmp 0x10006558
test edi, edi
mov eax, dword [ebp - 4]
je 0x10006554
test eax, eax
je 0x10006551
cmp byte [eax + edi - 1], 0
je 0x10006554
jmp 0x10006538
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x10007154
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 0x100071af
cmp dword [ebp - 0xc], 8
jne 0x100071af
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x100071af
push dword [ebp - 8]
mov ecx, esi
call fcn.100070d4
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 0x10
Function at 0x100074ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x504
lea ebp, [esp - 4]
mov eax, dword [0x1008d414]
xor eax, ebp
mov dword [ebp + 0x504], eax
push 0x40
mov eax, 0x10067f75
call fcn.1004f78c
mov ebx, dword [ebp + 0x510]
xor edi, edi
mov esi, 0x100a21f4
push esi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x24], edi
call fcn.100024cb
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], 1
call fcn.100024cb
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.100024cb
mov dword [ebp - 0x10], edi
push 0x1009ea38
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.10006b8b
push 0x20019
push 0x10095fb0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.100064c9
cmp eax, edi
jne 0x10007654
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x400]
push eax
push dword [0x1008cd94]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x104
call fcn.100064fe
cmp eax, edi
jne 0x10007654
push esi
lea ecx, [ebp - 0x1c]
call fcn.100024cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [0x1008cd90]
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 0x1000761c
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.100065ea
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.1000323b
add esp, 0x10
mov esi, dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x400]
push eax
push 0x10094628
lea eax, [ebp - 0x14]
push 0x1009e630
push eax
call fcn.1000323b
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.10007036
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.10001bf3
push 0x1009e420
push 0x1009c0a8
push 0x1009e528
push 0x1009b490
push str._br__br__a_href__s___s__a__br__a_href__s___s__a_
push ebx
call fcn.10006bb0
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.100064b2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10001bf3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10001bf3
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.1004f347
add ebp, 0x508
leave
ret
Function at 0x100081ca
Capabilities:
Accept command line arguments

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x10088c94], bl
je 0x100081f4
push ebx
push str.Embedding
mov byte [0x10088c94], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.100334e2
add esp, 0xc
test eax, eax
jne 0x10008253
call fcn.10007d03
test al, al
je 0x10008253
push esi
mov esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x154]
cmp eax, dword [0x1009f818]
jbe 0x10008245
cmp byte [esi + 0x158], bl
je 0x10008245
mov eax, dword [esi + 0x60]
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10008245
cmp byte [esi + 0x159], bl
je 0x10008245
mov eax, dword [esp + 0x14]
or word [eax], 0xffff
mov ecx, esi
call fcn.10008047
mov byte [esi + 0x158], 1
mov dword [esi + 0x154], ebx
pop esi
pop ebx
ret 0xc

Function at 0x10008292
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 0x100082c3
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 0x100082e2
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 0x10008301
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 0x10009b1f
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 0x10009b41
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 0x10009b57
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 0x10009b76
push 0x7a
pop eax
jmp 0x10009b8b
cmp dword [ebp + 0xc], 0
je 0x10009b89
push eax
push ebx
push dword [ebp + 0xc]
call fcn.10050c60
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop ebp
ret

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x10009cfe
push 0x80004005
call fcn.1000199c
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 0x10009d01
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 0x1000a6ad
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1008d414]
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.100064c9
mov edi, eax
cmp edi, esi
je 0x1000a715
lea ecx, [ebp - 0x70]
call fcn.100064b2
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004f347
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000a72d
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.1000a6ad
cmp eax, esi
jne 0x1000a760
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 0x1000a71d
lea ecx, [ebp - 0x70]
call fcn.100064b2
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.100064b2
mov eax, esi
jmp 0x1000a6fb
Function at 0x1000d2f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x1008d414]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x1006847d
call fcn.1004f7bf
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 [0x1008d3d4]
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 0x1000d3b0
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.10001938
add esp, 0xc
test eax, eax
jl 0x1000d3b0
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x1000d398
push edi
call fcn.100020ba
test al, al
pop ecx
je 0x1000d398
mov eax, edi
call fcn.10050610
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000d3a1
push edi
lea ecx, [ebp - 0x20]
call fcn.10002460
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.100099b6
cmp eax, ebx
jne 0x1000d3f5
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d3c0
lea ecx, [ebp]
call fcn.1000a5a8
lea ecx, [ebp - 0x20]
call fcn.10001f0a
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.1004f347
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call fcn.1000b050
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x1000d413
call fcn.10009af1
mov esi, eax
jmp 0x1000d4dd
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000d430
call fcn.10009af1
jmp 0x1000d4d2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1000d426
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 0x1000d477
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d463
lea ecx, [ebp]
call fcn.1000a5a8
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.10001f0a
mov eax, esi
jmp 0x1000d3cd
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.1000bfef
mov dword [ebp - 4], 1
jmp 0x1000d49f
cmp dword [ebp], ebx
jne 0x1000d4ab
mov esi, 0x8007000e
jmp 0x1000d4d4
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.10009a1a
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.1000cee8
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d468
lea ecx, [ebp]
call fcn.1000a5a8
jmp 0x1000d468
Function at 0x10015b25
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x1008d414]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x10068b24
call fcn.1004f78c
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 0x10015b7e
call fcn.1001114a
jmp 0x10015b80
xor eax, eax
push eax
push 0xffffffffffffffff
push 0x158
push dword [edi]
call esi
cmp eax, 0xffffffff
jne 0x10015c7e
cmp dword [ebp - 0x10], 0x14
jl 0x10015bba
mov eax, dword [ebp - 0x10]
dec eax
push eax
mov ecx, edi
call fcn.10011115
push ebx
push ebx
push 0x146
push dword [edi]
call esi
cmp eax, 0x14
mov dword [ebp - 0x10], eax
jge 0x10015b9b
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x10015bcb
call fcn.1001114a
jmp 0x10015bcd
xor eax, eax
push eax
push ebx
push 0x14a
push dword [edi]
call esi
push 0x10095ea8
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], SysReAllocString
call fcn.1000a6ad
lea ecx, [ebp - 0x14]
call fcn.100064b2
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push 0x10095ea8
push SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.10009c32
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 0x10015c58
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 0x10015c27
lea ecx, [ebp - 0x14]
call fcn.100064b2
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
push 0x7fff0002
push eax
call dword [ecx + 0x4c]
push ebx
push ebx
push 0x14e
push dword [edi]
call esi
jmp 0x10015c86
push eax
mov ecx, edi
call fcn.100110e5
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x10015c95
call fcn.10012118
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.1004f347
add ebp, 0x404
leave
ret 4
Function at 0x10016682
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1008d414]
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 0x100166c1
push str.err_CTB_E_OBJECTREMOVED
push 0x1009fba4
mov esi, 0x80041401
push esi
call fcn.10003395
add esp, 0xc
mov dword [ebp - 8], esi
jmp 0x1001677e
cmp dword [ebp + 0xc], 0
jne 0x100166d3
mov dword [ebp - 8], 0x80004003
jmp 0x1001677e
push dword [esi + 0x84]
mov edi, 0x1006dd58
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x10016732
inc ebx
mov eax, ebx
call fcn.10050610
mov edi, esp
push ebx
push edi
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x10016732
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10016716
call esi
jmp 0x10016722
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 8], eax
jl 0x1001677e
mov dword [ebp - 8], 0x80004005
jmp 0x1001677e
call dword [0x1008d3d4]
test edi, edi
mov ebx, eax
je 0x10016750
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x10016754
xor eax, eax
jmp 0x10016767
lea eax, [esi + esi]
call fcn.10050610
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10001965
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x1001678e
mov dword [ebp - 8], 0x8007000e
push dword [0x1008a558]
push dword [ebp - 8]
call fcn.10003274
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.1004f347
leave
ret 8

Function at 0x100167eb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1008d414]
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 0x10016845
push str.err_CTB_E_OBJECTREMOVED
push 0x1009fba4
mov edi, 0x80041401
push edi
call fcn.10003395
add esp, 0xc
push dword [0x1008a558]
push edi
call fcn.10003274
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.1004f347
leave
ret 4
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x1001682f
inc ebx
mov eax, ebx
call fcn.10050610
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 0x100168a6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10016888
call esi
mov edi, eax
jmp 0x10016898
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
test edi, edi
jl 0x10016821
mov edi, 0x80004005
jmp 0x10016821
push ecx
mov ecx, esp
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call fcn.1001198c
lea ecx, [esi - 0xc8]
call fcn.10015b25
jmp 0x1001682f