joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e3c0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157ca8
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x101b90ec]
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
mov dword [ebp - 0xf0], esi
xor eax, eax
mov dword [ebp - 0xf4], 0
push eax
push 0x1018344c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10041f70
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0
call fcn.10110522
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004e553
push 0
push 1
push 4
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004e481
push 0x1018344c
mov ecx, esi
call fcn.10041a60
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1004e586
inc ecx
push ecx
jmp 0x1004e57b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xec], eax
inc eax
push eax
mov dword [ebp - 0xf0], eax
call fcn.10050e10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1004e4bf
push 0x1018344c
mov ecx, esi
call fcn.10041a60
lea ecx, [ebp - 0x28]
call fcn.100420c0
jmp 0x1004e586
push dword [ebp - 0xf0]
push 0
push ebx
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0xf8]
push 0
push eax
push dword [ebp - 0xec]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe8]
push ebx
call fcn.10110ef0
push ebx
call fcn.10050e00
add esp, 4
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xe8]
push eax
call fcn.1011073b
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.10110068
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.10046700
cmp dword [ebp - 0x30], 0
jbe 0x1004e54b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10041c00
lea ecx, [ebp - 0x40]
call fcn.100420c0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.100419a0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1004e586
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10042110
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.10109ec2
mov esp, ebp
pop ebp
ret
Function at 0x1004f4f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157e28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101b90ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004f546
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x1004f546
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x14]
call fcn.10051dc0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f560
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jle 0x1004f583
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x1004f583
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push 0x5c
push edi
call fcn.1012a364
add esp, 8
test eax, eax
jne 0x1004f597
lea esi, [eax + 0xf]
jmp 0x1004f5c7
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.1004f4f0
mov esi, eax
test esi, esi
jne 0x1004f5c7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1004f5c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x1004f5c7
xor esi, esi
push edi
call fcn.10050e00
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 0x1004f710
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004f7a0
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x1004f78c
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test esi, 0x100
ja 0x1004f77d
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10050e20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x1108], eax
je 0x10050e53
mov dword [edi + 0x10e4], 0x3f3
xor eax, eax
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
pop edi
ret
mov eax, dword [0x101c6dac]
push esi
cmp eax, 0xffffffff
je 0x10050fea
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x10050e92
pop esi
mov dword [edi + 0x10e4], 0x3f4
xor eax, eax
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
pop edi
ret
mov eax, dword [0x101c6dac]
cmp eax, 0xffffffff
je 0x10050fea
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10050fea
push dword [0x101c6dac]
call esi
test eax, eax
je 0x10050fea
push ebx
lea ebx, [edi + 0x10cc]
xorps xmm0, xmm0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
cmp dword [edi + 0x10f0], 0
jne 0x10050fa0
cmp dword [edi + 0x110c], 0
jne 0x10050fa6
push 0x1018e188
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [edi + 0x110c], eax
call esi
push str.FDICopy
push dword [edi + 0x110c]
mov dword [edi + 0x1110], eax
call esi
push str.FDIIsCabinet
push dword [edi + 0x110c]
mov dword [edi + 0x1114], eax
call esi
push str.FDIDestroy
push dword [edi + 0x110c]
mov dword [edi + 0x1118], eax
call esi
cmp dword [edi + 0x1110], 0
mov dword [edi + 0x111c], eax
je 0x10050f81
cmp dword [edi + 0x1114], 0
je 0x10050f81
cmp dword [edi + 0x1118], 0
je 0x10050f81
test eax, eax
jne 0x10050fa6
mov dword [edi + 0x110c], 0
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
pop ebx
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [edi + 0x1110]
push ebx
push 1
push 0x10050220
push 0x10050380
push 0x10050530
push 0x10050b50
push 0x10050dc0
push fcn.10050e00
push fcn.10050e10
call eax
add esp, 0x24
mov dword [edi + 0x10f0], eax
xor ecx, ecx
test eax, eax
setne cl
pop ebx
pop esi
mov eax, ecx
pop edi
ret
pop esi
mov dword [edi + 0x10e4], 0
xor eax, eax
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10ec], 0
pop edi
ret
Function at 0x10051650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157f75
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101b90ec]
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.10052360
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.10052360
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.100515d0
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x58]
push 0x12c
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
call fcn.10052360
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.10052360
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.10052360
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 0x10051a60
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.1013e585
add esp, 0xc
pop ebp
ret 0xc
Function at 0x10051a80
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 0x10051aa2
mov ecx, dword [edi + 0x50]
cmp dword [ecx], esi
je 0x10051ab7
inc eax
add ecx, 4
cmp eax, edx
jl 0x10051a96
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1013e585
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc
test eax, eax
js 0x10051aa2
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 0x10051ab1
add dword [esi + 4], eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10051be0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [ebp + 0xc], 0x100
je 0x10051bfb
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.1013cf73
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 0x10051c30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test bl, bl
jns 0x10051c7b
test dword [ebp + 0xc], 0x100
je 0x10051c52
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.1013cf73
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 0x10051f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157f98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101b90ec]
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.10051e40
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x1130]
test eax, eax
je 0x10051fcc
push eax
lea eax, [ebp - 0x18]
push 0x1018e228
push eax
call fcn.10051ee0
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 0x10051fd7
sub ecx, esi
sar ecx, 1
cmp ecx, dword [edi + 0x112c]
jb 0x10052003
push 0x101ae030
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], str.The_string_has_no_terminating_null_character_
push eax
call fcn.1012a9dd
test ecx, ecx
je 0x1005200d
mov edx, dword [edi + 0x1128]
mov ebx, dword [edi + 0x1150]
test ebx, ebx
jne 0x10052020
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 0x10052073
test eax, eax
je 0x10052073
mov esi, 1
jmp 0x10052093
mov dword [edi + 0x10e4], 0x3ec
xor esi, esi
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
push dword [ebp - 0x18]
call fcn.10050e00
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 0x100527a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x101b90ec]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x10052915
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
lea ecx, [esp + 8]
call fcn.100524e0
cmp dword [eax + 0x14], 8
jb 0x100527ed
mov eax, dword [eax]
push str..wnpf
push esi
push eax
lea eax, [esp + 0x2c]
push str._s_s_s
push eax
call fcn.10041b30
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, 8
jb 0x1005281e
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10042110
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052870
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
call fcn.1004e3c0
push eax
mov ecx, ebx
call fcn.10041540
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x1005285a
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10042110
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.10109ec2
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
lea ecx, [esp + 8]
call fcn.100524e0
cmp dword [eax + 0x14], 8
jb 0x10052898
mov eax, dword [eax]
push str..swnpf
push esi
push eax
lea eax, [esp + 0x234]
push str._s_s_s
push eax
call fcn.10041b30
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, 8
jb 0x100528cc
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10042110
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052915
lea edx, [esp + 0x228]
lea ecx, [esp + 8]
call fcn.1004e3c0
push eax
mov ecx, ebx
call fcn.10041540
lea ecx, [esp + 8]
call fcn.100420c0
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.10109ec2
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x434]
xor al, al
pop esi
pop ebx
xor ecx, esp
call fcn.10109ec2
mov esp, ebp
pop ebp
ret
Function at 0x10052930
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158098
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101b90ec]
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 0x1018e310
push esi
call fcn.1013860b
add esp, 8
test eax, eax
jne 0x10052979
mov eax, 1
jmp 0x10052a4d
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.100527a0
test al, al
jne 0x100529a5
xor esi, esi
jmp 0x10052a36
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.1013c3f0
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.1004b310
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10052680
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 0x1018e324
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x2c]
neg esi
cmp eax, 8
jb 0x10052a22
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10042110
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 0x10052a4b
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10042110
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.10109ec2
mov esp, ebp
pop ebp
ret
Function at 0x100541d0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x101b90ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x100540b0
push 0
push 0
mov dword [0x101c6b6c], 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 [0x101c6b6c]
cmp esi, 1
jle 0x1005433e
xor edi, edi
test esi, esi
jle 0x1005433e
cmp esi, 8
jb 0x10054320
cmp dword [0x101c4840], 2
jl 0x10054320
mov ecx, esi
and ecx, 0x80000007
jns 0x10054282
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, 0x101c6c38
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 0x100542a0
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 0x1005433e
mov edx, edi
shl edx, 4
add edx, 0x101c6c18
sub esi, edi
cmp dword [edx], eax
cmovg eax, dword [edx]
lea edx, [edx + 0x10]
sub esi, 1
jne 0x10054331
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10109ec2
mov esp, ebp
pop ebp
ret
Function at 0x10054350
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101b90ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x100540b0
push 0
push 0
mov dword [0x101c6b6c], 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 [0x101c6b6c]
cmp eax, 1
jle 0x1005441e
xor ebx, ebx
test eax, eax
jle 0x1005441e
mov edi, 0x101c6c1c
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 0x10054412
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 0x10054410
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
jmp 0x10054412
mov esi, dword [edi]
inc ebx
add edi, 0x10
cmp ebx, dword [0x101c6b6c]
jl 0x100543e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10109ec2
mov esp, ebp
pop ebp
ret
Function at 0x10054440
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x101b90ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x100540b0
push 0
push 0
mov ebx, ecx
mov dword [0x101c6b6c], 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 [0x101c6b6c]
cmp ecx, 1
jle 0x1005461e
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 0x10054536
mov edi, 0x101c6c1c
push edx
push eax
lea eax, [edi - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x10054517
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 0x10054515
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
jmp 0x10054517
mov esi, dword [edi]
mov ecx, dword [0x101c6b6c]
inc ebx
mov eax, dword [ebp - 0x38]
add edi, 0x10
mov edx, dword [ebp - 0x3c]
cmp ebx, ecx
jl 0x100544e2
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x1005461e
xor edi, edi
test ecx, ecx
jle 0x1005461e
cmp ecx, 8
jb 0x10054600
cmp dword [0x101c4840], 2
jl 0x10054600
mov eax, ecx
and eax, 0x80000007
jns 0x10054564
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, 0x101c6c3c
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 0x10054580
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 0x1005461e
mov edx, edi
shl edx, 4
add edx, 0x101c6c1c
sub ecx, edi
cmp dword [edx], esi
cmovl esi, dword [edx]
lea edx, [edx + 0x10]
sub ecx, 1
jne 0x10054611
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10109ec2
mov esp, ebp
pop ebp
ret