joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101588b5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101ba0ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea edi, [ebx + 8]
mov dword [ebx], vtable.Cabinet::CExtract.0
mov dword [ebp - 0x14], edi
lea ecx, [edi + 4]
push 0x12c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10052410
mov eax, dword [edi + 4]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
lea ecx, [edi + 0xc]
push 0x12c
call fcn.10052410
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 1
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x40], ecx
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x44], 0xc8
mov dword [ebp - 0x14], ecx
call fcn.10051680
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x58]
push 0x12c
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
call fcn.10052410
mov eax, dword [ebx + 0x58]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], ecx
lea ecx, [ebx + 0x60]
push 0x12c
call fcn.10052410
mov eax, dword [ebx + 0x60]
xor ecx, ecx
mov word [eax], cx
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x70], 0xffffffff
mov dword [ebx + 0x10c0], ecx
mov dword [ebx + 0x10c4], ecx
mov dword [ebx + 0x10c8], ecx
lea edi, [ebx + 0x10cc]
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], edi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
lea ecx, [edi + 0x10]
push 0x12c
call fcn.10052410
mov eax, dword [edi + 0x10]
xor ecx, ecx
xorps xmm0, xmm0
mov word [eax], cx
mov dword [edi + 0xc], 1
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
movq qword [edi], xmm0
mov dword [edi + 8], ecx
mov dword [ebx + 0x10f0], ecx
mov dword [ebx + 0x110c], ecx
mov dword [ebx + 0x10fc], ecx
mov dword [ebx + 0x1100], 0x4e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x1108], 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

Function at 0x10051b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1013ee3c
add esp, 0xc
pop ebp
ret 0xc
Function at 0x10051b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov edx, dword [edi + 0x4c]
test edx, edx
jle 0x10051b52
mov ecx, dword [edi + 0x50]
cmp dword [ecx], esi
je 0x10051b67
inc eax
add ecx, 4
cmp eax, edx
jl 0x10051b46
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1013ee3c
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc
test eax, eax
js 0x10051b52
push dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1c]
test eax, eax
jle 0x10051b61
add dword [esi + 4], eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10051c90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [ebp + 0xc], 0x100
je 0x10051cab
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1013d82a
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10051ce0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test bl, bl
jns 0x10051d2b
test dword [ebp + 0xc], 0x100
je 0x10051d02
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1013d82a
mov ecx, dword [ebp + 0x10]
add esp, 0x18
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov eax, ecx
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [eax + 0x18]
pop ebx
pop ebp
ret 0xc
Function at 0x10052020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101588d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101ba0ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x1134]
push eax
lea ecx, [ebp - 0x18]
call fcn.10051ef0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x1130]
test eax, eax
je 0x1005207c
push eax
lea eax, [ebp - 0x18]
push 0x1018f238
push eax
call fcn.10051f90
add esp, 0xc
mov ecx, dword [edi + 0x1128]
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052087
sub ecx, esi
sar ecx, 1
cmp ecx, dword [edi + 0x112c]
jb 0x100520b3
push 0x101af210
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], str.The_string_has_no_terminating_null_character_
push eax
call fcn.1012b32d
test ecx, ecx
je 0x100520bd
mov edx, dword [edi + 0x1128]
mov ebx, dword [edi + 0x1150]
test ebx, ebx
jne 0x100520d0
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push dword [edi + 0x113c]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov dword [edi + 0x1144], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [edi + 0x1144], 0
mov dword [edi + 0x114c], eax
mov dword [edi + 0x1148], 0
je 0x10052123
test eax, eax
je 0x10052123
mov esi, 1
jmp 0x10052143
mov dword [edi + 0x10e4], 0x3ec
xor esi, esi
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
push dword [ebp - 0x18]
call fcn.10050eb0
add esp, 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
Function at 0x10052850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x101ba0ec]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x100529c5
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call fcn.1012bd00
add esp, 0xc
lea ecx, [esp + 8]
call fcn.10052590
cmp dword [eax + 0x14], 8
jb 0x1005289d
mov eax, dword [eax]
push str..wnpf
push esi
push eax
lea eax, [esp + 0x2c]
push str._s_s_s
push eax
call fcn.10041b40
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, 8
jb 0x100528ce
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10042120
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052920
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
call fcn.1004e470
push eax
mov ecx, ebx
call fcn.10041550
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x1005290a
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10042120
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.1010a832
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.1012bd00
add esp, 0xc
lea ecx, [esp + 8]
call fcn.10052590
cmp dword [eax + 0x14], 8
jb 0x10052948
mov eax, dword [eax]
push str..swnpf
push esi
push eax
lea eax, [esp + 0x234]
push str._s_s_s
push eax
call fcn.10041b40
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, 8
jb 0x1005297c
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10042120
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100529c5
lea edx, [esp + 0x228]
lea ecx, [esp + 8]
call fcn.1004e470
push eax
mov ecx, ebx
call fcn.10041550
lea ecx, [esp + 8]
call fcn.100420d0
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.1010a832
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x434]
xor al, al
pop esi
pop ebx
xor ecx, esp
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x100529e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101589d8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101ba0ec]
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 esi, ecx
push 0x1018f320
push esi
call fcn.10138ecb
add esp, 8
test eax, eax
jne 0x10052a29
mov eax, 1
jmp 0x10052afd
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
mov ecx, esi
call fcn.10052850
test al, al
jne 0x10052a55
xor esi, esi
jmp 0x10052ae6
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp edi, 8
mov dword [ebp - 0x44], fcn.1013cc8c
cmovae ecx, esi
cmovae ebx, esi
lea edx, [ecx + eax*2]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
cmovae ecx, esi
push ebx
call fcn.1004b3c0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10052730
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x1018f334
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x2c]
neg esi
cmp eax, 8
jb 0x10052ad2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10042120
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x10052afb
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10042120
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.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x10054290
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x10054170
push 0
push 0
mov dword [0x101c7da4], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov esi, dword [0x101c7da4]
cmp esi, 1
jle 0x100543fe
xor edi, edi
test esi, esi
jle 0x100543fe
cmp esi, 8
jb 0x100543e0
cmp dword [0x101c58a0], 2
jl 0x100543e0
mov ecx, esi
and ecx, 0x80000007
jns 0x10054342
dec ecx
or ecx, 0xfffffff8
inc ecx
movd xmm0, eax
mov edx, esi
pshufd xmm4, xmm0, 0
sub edx, ecx
movaps xmm5, xmm4
mov eax, 0x101c7e70
nop word [eax + eax]
movd xmm2, dword [eax + 0x10]
lea eax, [eax + 0x80]
movd xmm0, dword [eax - 0x80]
add edi, 8
movd xmm1, dword [eax - 0x90]
movd xmm3, dword [eax - 0xa0]
punpckldq xmm3, xmm0
movd xmm0, dword [eax - 0x40]
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x30]
punpckldq xmm3, xmm1
movd xmm1, dword [eax - 0x50]
punpckldq xmm1, xmm2
pmaxsd xmm4, xmm3
movd xmm3, dword [eax - 0x60]
punpckldq xmm3, xmm0
punpckldq xmm3, xmm1
pmaxsd xmm5, xmm3
cmp edi, edx
jl 0x10054360
pmaxsd xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
pmaxsd xmm4, xmm0
movaps xmm0, xmm4
psrldq xmm0, 4
pmaxsd xmm4, xmm0
movd eax, xmm4
cmp edi, esi
jge 0x100543fe
mov edx, edi
shl edx, 4
add edx, 0x101c7e50
sub esi, edi
cmp dword [edx], eax
cmovg eax, dword [edx]
lea edx, [edx + 0x10]
sub esi, 1
jne 0x100543f1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x10054410
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x10054170
push 0
push 0
mov dword [0x101c7da4], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
mov eax, dword [0x101c7da4]
cmp eax, 1
jle 0x100544de
xor ebx, ebx
test eax, eax
jle 0x100544de
mov edi, 0x101c7e54
nop word [eax + eax]
push dword [ebp + 0xc]
lea eax, [edi - 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100544d2
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100544d0
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
jmp 0x100544d2
mov esi, dword [edi]
inc ebx
add edi, 0x10
cmp ebx, dword [0x101c7da4]
jl 0x100544a0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x10054500
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x10054170
push 0
push 0
mov ebx, ecx
mov dword [0x101c7da4], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
mov ecx, dword [0x101c7da4]
cmp ecx, 1
jle 0x100546de
mov eax, dword [ebx + 8]
xor edi, edi
mov edx, dword [ebx + 0xc]
xor ebx, ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edi
test ecx, ecx
jle 0x100545f6
mov edi, 0x101c7e54
push edx
push eax
lea eax, [edi - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100545d7
push dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x40], 1
push dword [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100545d5
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
jmp 0x100545d7
mov esi, dword [edi]
mov ecx, dword [0x101c7da4]
inc ebx
mov eax, dword [ebp - 0x38]
add edi, 0x10
mov edx, dword [ebp - 0x3c]
cmp ebx, ecx
jl 0x100545a2
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x100546de
xor edi, edi
test ecx, ecx
jle 0x100546de
cmp ecx, 8
jb 0x100546c0
cmp dword [0x101c58a0], 2
jl 0x100546c0
mov eax, ecx
and eax, 0x80000007
jns 0x10054624
dec eax
or eax, 0xfffffff8
inc eax
movd xmm0, esi
mov edx, ecx
pshufd xmm4, xmm0, 0
sub edx, eax
movaps xmm5, xmm4
mov eax, 0x101c7e74
nop dword [eax]
movd xmm2, dword [eax + 0x10]
lea eax, [eax + 0x80]
movd xmm0, dword [eax - 0x80]
add edi, 8
movd xmm1, dword [eax - 0x90]
movd xmm3, dword [eax - 0xa0]
punpckldq xmm3, xmm0
movd xmm0, dword [eax - 0x40]
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x30]
punpckldq xmm3, xmm1
movd xmm1, dword [eax - 0x50]
punpckldq xmm1, xmm2
pminsd xmm4, xmm3
movd xmm3, dword [eax - 0x60]
punpckldq xmm3, xmm0
punpckldq xmm3, xmm1
pminsd xmm5, xmm3
cmp edi, edx
jl 0x10054640
pminsd xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
pminsd xmm4, xmm0
movaps xmm0, xmm4
psrldq xmm0, 4
pminsd xmm4, xmm0
movd esi, xmm4
cmp edi, ecx
jge 0x100546de
mov edx, edi
shl edx, 4
add edx, 0x101c7e54
sub ecx, edi
cmp dword [edx], esi
cmovl esi, dword [edx]
lea edx, [edx + 0x10]
sub ecx, 1
jne 0x100546d1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x10054990
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
sub eax, dword [ebp - 0x10]
pop edi
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x10059a30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x101ba0ec]
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 edi, edx
mov esi, ecx
push esi
lea eax, [ebp - 0x628]
push 0x10184a18
push eax
call fcn.10041b40
add esp, 0xc
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
mov dword [ebp - 0x894], ecx
cmp ecx, 0xffffffff
je 0x10059c14
mov ebx, dword [ebp + 8]
nop
lea eax, [ebp - 0x890]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [ebp - 0x894]
test eax, eax
je 0x10059c14
cmp word [ebp - 0x864], 0x2e
je 0x10059aa0
mov ax, word [ebp - 0x862]
test ax, ax
je 0x10059aa0
cmp ax, 0x2e
jne 0x10059ae2
cmp word [ebp - 0x860], 0
je 0x10059aa0
test byte [ebp - 0x890], 0x10
je 0x10059b3d
mov ecx, dword [ebp - 0x894]
test bl, bl
je 0x10059aa0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1012bd00
lea eax, [ebp - 0x864]
push eax
push esi
lea eax, [ebp - 0x420]
push str._s_s_
push eax
call fcn.10041b40
push ebx
mov edx, edi
lea ecx, [ebp - 0x420]
call fcn.10059a30
mov ecx, dword [ebp - 0x894]
add esp, 0x20
jmp 0x10059aa0
lea eax, [ebp - 0x864]
push eax
push esi
lea eax, [ebp - 0x218]
push 0x10184440
push eax
call fcn.10041b40
xor eax, eax
mov dword [ebp - 0x62c], 7
add esp, 0x10
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
cmp word [ebp - 0x218], ax
je 0x10059b9f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10059b90
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.10041f80
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.10049880
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
cmp eax, 8
jb 0x10059bec
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.10042120
mov ecx, dword [ebp - 0x894]
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
jmp 0x10059aa0
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
setne al
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.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x10059cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158fdb
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101c589c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101c8790]
cmp eax, dword [ecx + 4]
jle 0x10059d6a
push 0x101c8790
call fcn.1010aad0
add esp, 4
cmp dword [0x101c8790], 0xffffffff
jne 0x10059d6a
push 0x101c8798
mov dword [0x101c8794], 0x1018f6f8
mov dword [0x101c8798], 0
call dword [sym.imp.gdiplus.dll_GdipNewPrivateFontCollection]
push 0x10166c20
mov dword [0x101c879c], eax
call fcn.1010af0c
push 0x101c8790
call fcn.1010aa91
add esp, 8
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
push dword [0x101c8798]
call dword [sym.imp.gdiplus.dll_GdipGetFontCollectionFamilyCount]
cmp dword [ebp - 0x424], 1
mov dword [0x101c879c], eax
jge 0x10059e82
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push str._sFonts_
push eax
call fcn.10041b40
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
push 0
lea edx, [ebp - 0x430]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x420]
call fcn.10059a30
mov esi, dword [ebp - 0x430]
add esp, 0x10
mov eax, dword [ebp - 0x42c]
cmp esi, eax
je 0x10059e41
mov edi, dword [sym.imp.gdiplus.dll_GdipPrivateAddFontFile]
cmp dword [esi + 0x14], 8
jb 0x10059e1e
mov eax, dword [esi]
jmp 0x10059e20
mov eax, esi
push eax
push dword [0x101c8798]
call edi
mov dword [0x101c879c], eax
add esi, 0x18
mov eax, dword [ebp - 0x42c]
cmp esi, eax
jne 0x10059e14
mov esi, dword [ebp - 0x430]
test esi, esi
je 0x10059e82
push dword [ebp - 0x424]
lea ecx, [ebp - 0x430]
push ecx
push eax
push esi
call fcn.1004a9d0
mov ecx, dword [ebp - 0x428]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x430]
add esp, 0x10
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.1004a500
mov eax, 0x101c8794
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a832
mov esp, ebp
pop ebp
ret