joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x78306088
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x49b32acb
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10006050
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x100c7394]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x4bc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x3e8
push 0
push eax
mov dword [ebp - 0x4c4], esi
mov dword [ebp - 0x4c0], ebx
call fcn.10056af0
push 0xc8
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.10056af0
add esp, 0x18
test esi, esi
je 0x1000614c
test ebx, ebx
je 0x1000614c
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1000614c
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x1000614c
xor ecx, ecx
movzx edx, ax
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10006137
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x4c4]
call fcn.10059fac
add esp, 0xc
test eax, eax
je 0x1000615f
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x100060e1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x4c0]
call fcn.10008d30
xor ecx, ecx
test edi, edi
je 0x1000617d
cmp edi, 0x7fffffff
jbe 0x10006182
mov ecx, 0x80070057
test ecx, ecx
js 0x100061b8
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x100061a0
cmp word [eax], 0
je 0x100061a0
add eax, 2
sub esi, 1
jne 0x10006192
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x100061ba
xor esi, esi
test ecx, ecx
js 0x1000620b
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x100061fe
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7ffffffe
add esi, eax
lea eax, [ebx + ebx]
sub eax, ecx
add edi, eax
test esi, esi
je 0x100061fe
movzx eax, word [edi + ecx]
test ax, ax
je 0x100061fe
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x100061e5
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
Function at 0x10006640
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x100c7394]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x9c], eax
xor edi, edi
lea eax, [ebp - 0x88]
mov dword [ebp - 0x94], ecx
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x10006695
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
push esi
push ebx
call fcn.1005a1c6
add esp, 4
mov esi, eax
push esi
push ebx
push 0
push dword [ebp - 0x94]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100067aa
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x90]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100067aa
mov ebx, dword [ebp - 0x98]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test ebx, ebx
je 0x10006742
mov ecx, dword [ebp - 0x90]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.10008cb0
add esp, 0x14
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10006742
mov eax, dword [ebp - 0x8c]
push eax
push eax
call edi
inc eax
push eax
push ebx
call fcn.10008d30
mov ebx, dword [ebp - 0x9c]
test ebx, ebx
je 0x100067a5
mov ecx, dword [ebp - 0x90]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xCompanyName
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.10008cb0
add esp, 0x14
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100067a5
mov eax, dword [ebp - 0x8c]
push eax
push eax
call edi
inc eax
push eax
push ebx
call fcn.10008d30
mov edi, 1
push esi
call fcn.1005a1c1
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.1004d14a
mov esp, ebp
pop ebp
ret

Function at 0x10006bb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100c7394]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
or ebx, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10006c39
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.10056af0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10006c32
push edi
mov edi, dword [ebp + 8]
nop dword [eax]
cmp dword [ebp - 0x228], edi
je 0x10006c2b
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10006c10
jmp 0x10006c31
mov ebx, dword [ebp - 0x218]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
Function at 0x10007080
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.1004d160
mov eax, dword [0x100c7394]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1008], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x100071ef
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x64
jb 0x100071ef
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100070e5
push edi
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100071ef
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10056af0
add esp, 0xc
lea eax, [ebp - 0x804]
xor edi, edi
push 0x400
push eax
push edi
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x100071a7
push 0x800
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.10056af0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.100557b4
add esp, 0x14
test eax, eax
je 0x10007165
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x10007165
lea ecx, [edi + 1]
jmp 0x10007167
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
push ebx
cmovne eax, edx
push eax
push dword [ebp - 0x1008]
call fcn.10059df4
add esp, 0xc
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x100071d5
push ebx
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.10006050
mov edi, eax
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
Function at 0x10007c00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007d3a
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x10007d3a
cmp dword [ebp - 0x14], 0
ja 0x10007d3a
cmp edi, 0x12c00000
ja 0x10007d3a
lea eax, [edi + 1]
push ebx
push eax
call fcn.1004cdd9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10007c81
lea eax, [edi + 1]
push eax
push 0
push ebx
call fcn.10056af0
add esp, 0xc
jmp 0x10007c83
xor ebx, ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ebx
mov dword [ebp - 0xc], 0
call fcn.100038f0
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10007d19
push 0
push 0
push 0
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10007cd6
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x10007d19
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10007cef
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x10]
mov dword [esi], ebx
call fcn.10005030
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10005030
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov esp, ebp
pop ebp
ret

Function at 0x10008fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10009039
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10009039
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000902a
cmp esi, edx
jae 0x10009039
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10009018
cmp esi, edx
jae 0x10009039
cmp word [esi], 0
je 0x10009039
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000ee90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095c2a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100c7394]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.10005fe0
add eax, 0x10
mov dword [ebx], eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x30], eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov eax, dword [edi + 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [ebx + 0x3c], eax
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov eax, dword [edi + 0x40]
lea esi, [ebx + 0x40]
sub eax, 0x10
mov byte [ebp - 4], 5
push eax
mov dword [ebp + 8], esi
call fcn.10005fe0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x44]
lea esi, [ebx + 0x44]
sub eax, 0x10
mov byte [ebp - 4], 6
push eax
mov dword [ebp + 8], esi
call fcn.10005fe0
add esp, 0xc
add eax, 0x10
mov dword [esi], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10014500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096428
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100c7394]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001454e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x10]
call fcn.10003e40
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [eax - 0xc]
cmp eax, 1
jl 0x10014625
test eax, eax
js 0x1001465f
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
push eax
call fcn.1005d66e
mov ebx, dword [ebp + 0xc]
add esp, 4
movzx eax, ax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0xc]
call fcn.10012bd0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0xc]
je 0x10014625
mov edi, dword [eax + 0x14]
mov esi, dword [edi]
cmp esi, edi
je 0x10014619
mov ecx, dword [esi + 0x10]
mov eax, dword [ebx]
push dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.10013eb0
test al, al
jne 0x10014616
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x100145f7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100145f3
cmp esi, dword [eax + 8]
jne 0x100145f3
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100145e3
mov esi, eax
jmp 0x1001460d
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1001460d
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10014601
cmp esi, edi
je 0x10014616
mov ebx, dword [ebp + 0xc]
jmp 0x100145b6
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax + 0x14]
je 0x10014625
mov esi, 1
jmp 0x10014627
xor esi, esi
mov edi, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10014649
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.10005e80
int3
Function at 0x10014670
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096466
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x100c7394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x44c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x100146c0
xor eax, eax
jmp 0x100147f6
push 0x228
xor esi, esi
lea eax, [ebp - 0x440]
push esi
push eax
call fcn.10056af0
add esp, 0xc
mov dword [ebp - 0x444], 0x22c
lea eax, [ebp - 0x444]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100147ed
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10056af0
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x43c]
call fcn.10007080
add esp, 0x18
call fcn.10006af0
test eax, eax
je 0x10014814
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x448]
call fcn.10005ea0
test al, al
jne 0x10014792
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10014770
sub eax, edx
lea ecx, [ebp - 0x448]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10008270
push dword [ebp - 0x44c]
lea eax, [ebp - 0x448]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.10014500
mov edx, dword [ebp - 0x448]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100147d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x100147ed
lea eax, [ebp - 0x444]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10014700
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d14a
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10005e80
int3
Function at 0x10015d50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x100c7394]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
jne 0x10015d7f
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
push esi
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.10056af0
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 0
push eax
lea eax, [ebp - 0x204]
push str.PP_dFrameClass
push eax
call fcn.1001a320
add esp, 0xc
cmp eax, 1
je 0x10015f67
xor esi, esi
nop dword [eax]
mov eax, dword [esi + 0x100c60f8]
lea ecx, [ebp - 0x204]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10015e16
test dx, dx
je 0x10015e12
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10015e16
add ecx, 4
add eax, 4
test dx, dx
jne 0x10015df0
xor eax, eax
jmp 0x10015e1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10015f67
add esi, 4
cmp esi, 0xc
jb 0x10015de0
push 0x200
lea eax, [ebp - 0x60c]
push 0
push eax
call fcn.10056af0
add esp, 0xc
lea eax, [ebp - 0x60c]
push 0xff
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x60c]
push str.Microsoft_PowerPoint
push eax
call fcn.1005587b
add esp, 8
test eax, eax
jne 0x10015f67
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x628]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x208
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.10056af0
push 0x104
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x628]
call fcn.10006c50
add esp, 0x18
mov dword [ebp - 0x614], 0
xor eax, eax
mov dword [ebp - 0x610], 7
lea ecx, [ebp - 0x40c]
mov word [ebp - 0x624], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015ed7
sub ecx, edx
lea eax, [ebp - 0x40c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x624]
call fcn.1000aaa0
cmp dword [ebp - 0x614], 0
jbe 0x10015f48
cmp dword [ebp - 0x610], 8
lea eax, [ebp - 0x624]
push str.wpp.exe
cmovae eax, dword [ebp - 0x624]
push eax
call fcn.10059e37
add esp, 8
test eax, eax
jne 0x10015f48
lea ecx, [ebp - 0x624]
lea esi, [eax + 1]
call fcn.10004de0
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x624]
xor esi, esi
call fcn.10004de0
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop edi
call fcn.1004d14a
mov esp, ebp
pop ebp
ret
Function at 0x1001a4f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096e38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100c7394]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1001a528
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x18]
mov dword [ebp - 4], 0
test eax, eax
jne 0x1001a55c
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x1001f9d0
push 0
push 0
call fcn.100651cc
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x1001a55c
xor bl, bl
jmp 0x1001a65d
mov eax, dword [ebp + 8]
push 0x38
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
call fcn.1004cd9b
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1001a5a5
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__V___Binder_U_Unforced_std__P8ModeIdentifyBroadcastImp__AEXXZPAV3__2___V_std__X__V_std__.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x1001a5a7
xor esi, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x1001a5b8
lock inc dword [esi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x30]
lea ebx, [edi + 0x20]
mov ecx, dword [ebx + 8]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x1001a5dc
push 1
mov ecx, ebx
call fcn.10020630
mov ecx, dword [ebx + 8]
lea eax, [ecx - 1]
and dword [ebx + 0xc], eax
mov ecx, dword [ebx + 0x10]
add ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [ebx + 4]
mov dword [ebp + 8], eax
cmp dword [ecx + eax], 0
jne 0x1001a619
push 0x28
call fcn.1004cd9b
mov ecx, dword [ebx + 4]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [ebx + 4]
mov eax, dword [eax + ecx]
lea ecx, [esi + 0x10]
mov byte [ebp + 0xb], 1
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_82e1cdaef865a153ed289d13ce707ac7___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [ebx + 0x10]
test esi, esi
je 0x1001a65a
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1001a65a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1001a65a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov bl, byte [ebp + 0xb]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4