joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417e32
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x432c60
call fcn.0040ceb8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x43d870], edi
jne 0x417e76
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417e61
mov dword [0x43d870], ebx
jmp 0x417e76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417e76
mov dword [0x43d870], 2
mov eax, dword [0x43d870]
cmp eax, ebx
jne 0x417e96
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x417f59
cmp eax, 2
je 0x417e9f
cmp eax, edi
jne 0x417ec7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x417eb2
mov eax, dword [0x43d71c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x417ece
xor eax, eax
jmp 0x417f59
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00408580
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x417f01
cmp esi, edi
jne 0x417f17
push dword [ebp - 0x24]
call fcn.00409393
pop ecx
mov esi, eax
cmp esi, edi
je 0x417ec7
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x417f4a
cmp dword [ebp + 0x14], edi
jne 0x417f34
push edi
push edi
jmp 0x417f3a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x417f56
push esi
call fcn.004093a5
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040cef1
ret
Function at 0x417f62
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x432c70
call fcn.0040ceb8
xor esi, esi
cmp dword [0x43d874], esi
jne 0x417fa6
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417f91
mov dword [0x43d874], edi
jmp 0x417fa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417fa6
mov dword [0x43d874], 2
mov eax, dword [0x43d874]
cmp eax, 2
je 0x418087
cmp eax, esi
je 0x418087
cmp eax, 1
jne 0x417feb
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x417fd4
mov eax, dword [0x43d71c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x417ff2
xor eax, eax
jmp 0x418099
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00408580
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x418028
cmp edi, esi
jne 0x418043
lea eax, [ebx + ebx]
push eax
call fcn.00409393
pop ecx
mov edi, eax
cmp edi, esi
je 0x417feb
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x418076
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x418060
push esi
push esi
jmp 0x418066
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x418082
push edi
call fcn.004093a5
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x418099
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040cef1
ret
Function at 0x418642
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x4186aa
push 0x3d
push esi
call fcn.0040905b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x4186aa
cmp esi, eax
je 0x4186aa
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x43d428]
sete cl
cmp eax, dword [0x43d42c]
mov dword [ebp - 4], ecx
jne 0x418690
mov edi, eax
call fcn.004185e1
mov dword [0x43d428], eax
cmp eax, ebx
jne 0x4186e9
cmp dword [ebp + 0xc], ebx
je 0x4186b2
cmp dword [0x43d430], ebx
je 0x4186b2
call fcn.00417b2f
test eax, eax
je 0x4186e9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4187f3
push 4
call fcn.00409393
cmp eax, ebx
pop ecx
mov dword [0x43d428], eax
je 0x4186aa
mov dword [eax], ebx
cmp dword [0x43d430], ebx
jne 0x4186e9
push 4
call fcn.00409393
cmp eax, ebx
pop ecx
mov dword [0x43d430], eax
je 0x4186aa
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x43d428]
sub edi, esi
push esi
call fcn.00418594
mov edi, eax
test edi, edi
pop ecx
jl 0x418745
cmp dword [ebx], 0
je 0x418745
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004093a5
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41872a
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x41877b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x418721
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040ccec
test eax, eax
mov esi, dword [ebp + 8]
pop ecx
pop ecx
je 0x41877b
jmp 0x418776
cmp dword [ebp - 4], 0
jne 0x4187ec
test edi, edi
jge 0x418755
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0040ccec
test eax, eax
pop ecx
pop ecx
je 0x4186aa
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x43d428], eax
cmp dword [ebp + 0xc], 0
je 0x4187d7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418786
sub eax, edx
add eax, 2
push eax
call fcn.00409393
mov edi, eax
test edi, edi
pop ecx
je 0x4187d7
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x4187a3
mov ecx, dword [ebp - 8]
add eax, ecx
and byte [eax], dl
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4187d0
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004093a5
pop ecx
cmp dword [ebp - 4], 0
je 0x4187e4
push esi
call fcn.004093a5
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4186ad
push esi
call fcn.004093a5
pop ecx
xor eax, eax
jmp 0x4186ad
Function at 0x41c5a9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41c5e1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041ff4b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041ff23
jmp 0x41c5ed
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x41e3ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41e3ed
call fcn.0042ae09
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41e3ed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41e3e4
xor eax, eax
jmp 0x41e3f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041e3fb
pop edi
pop esi
pop ebx
ret 4
Function at 0x51ac10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x51ad1c
test eax, eax
je 0x51ad1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x535fe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x51ad03
lea edi, [eax + 4]
jmp 0x51ac67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x51ac7c
mov dword [ebp - 4], 2
jmp 0x51ac9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x51ac93
mov dword [ebp - 4], 1
jmp 0x51ac9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x51ad13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x51acd6
mov byte [ecx], 0x3d
jmp 0x51ace2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x51aced
mov byte [ecx], 0x3d
jmp 0x51acf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x51ac64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c444
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42de70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040949a
mov dword [ebp - 0x14], eax
cmp dword [0x2c8a690], esi
jne 0x40c537
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c4c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c617
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c617
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c617
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2c8a690], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2c8a694], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2c8a698], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c8a6a0], eax
test eax, eax
je 0x40c534
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c8a69c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c55c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c54f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c571
push 4
pop eax
jmp 0x40c619
cmp dword [ebp - 0x14], esi
je 0x40c571
push dword [0x2c8a690]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c556
mov eax, dword [0x2c8a69c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c5cf
cmp dword [0x2c8a6a0], edi
je 0x40c5cf
push eax
call ebx
push dword [0x2c8a6a0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c5cf
test eax, eax
je 0x40c5cf
call ecx
test eax, eax
je 0x40c5c4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c5c4
test byte [ebp - 8], 1
jne 0x40c5cf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c5ff
mov eax, dword [0x2c8a694]
cmp eax, edi
je 0x40c5fc
push eax
call ebx
test eax, eax
je 0x40c5fc
call eax
mov esi, eax
test esi, esi
je 0x40c5fc
mov eax, dword [0x2c8a698]
cmp eax, edi
je 0x40c5fc
push eax
call ebx
test eax, eax
je 0x40c5fc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2c8a690]
call ebx
test eax, eax
je 0x40c617
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c619
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fce
mov esp, ebp
pop ebp
ret
Function at 0x100536f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100538a
test al, 0x10
je 0x100538a
mov al, 1
jmp 0x100538c
xor al, al
pop ebp
ret 4
Function at 0x100a864
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1036f44]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
je 0x100a96d
test esi, esi
je 0x100a96d
and dword [ebp - 0x210], 0
push 0x12c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x100a8c2
push ebx
push esi
push edi
mov ecx, eax
call fcn.010082ef
mov esi, eax
jmp 0x100a8c4
xor esi, esi
test esi, esi
je 0x100a95c
cmp dword [ebp - 0x214], 0
je 0x100a904
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100a904
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x128], eax
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x100a81f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, ecx
mov dword [esi], eax
je 0x100a942
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
call edi
push eax
push dword [esi]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x100a965
cmp dword [esi + 0x128], ecx
je 0x100a951
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
mov ecx, esi
call fcn.0100a691
jmp 0x100a965
push 1
mov ecx, edi
call fcn.01008321
mov eax, dword [ebp - 0x210]
jmp 0x100a96f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01024a32
leave
ret 0x10

Function at 0x100b0f4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [ebp + 8]
mov dword [ebp - 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
leave
ret 8

Function at 0x100b300
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
mov edi, ecx
call esi
xor ebx, ebx
mov bx, ax
push 0x10
shr ebx, 0xf
and bl, 1
call esi
push 0x12
shr eax, 0xf
and al, 1
mov byte [ebp - 1], al
call esi
mov ecx, dword [ebp + 0xc]
shr eax, 0xf
and al, 1
cmp word [ecx + 0xc], 0x41
jne 0x100b362
test bl, bl
je 0x100b362
cmp byte [ebp - 1], 0
jne 0x100b362
test al, al
jne 0x100b362
push 0
push 0x40d
push 0x111
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x100bcdc
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x1036f44]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x3cc], eax
call fcn.0100b9ea
test al, al
jne 0x100bd0b
xor eax, eax
jmp 0x100be0e
mov eax, dword [esi + 0x230]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x100be0d
push edi
lea eax, [ebp - 0x114]
push eax
lea ecx, [esi + 0x10]
call fcn.0100bc77
xor eax, eax
mov dword [ebp - 0x3c8], ebx
mov ecx, 0xac
lea edi, [ebp - 0x3c4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x4e0]
push eax
push 0x1001948
lea ecx, [ebp - 0x5f0]
call fcn.01006bd5
mov ecx, eax
call fcn.0100bc0c
mov eax, dword [eax + 4]
xor ecx, ecx
cmp byte [ebp + 0xc], bl
setne cl
add ecx, 0x110
push ecx
push 0x2b4
lea ecx, [ebp - 0x3c8]
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, 0x1001644
lea ecx, [ebp - 0x4e0]
mov dword [ebp - 0x3d0], eax
mov dword [ebp - 0x4e0], edi
call fcn.010047d1
lea ecx, [ebp - 0x5f0]
mov dword [ebp - 0x5f0], edi
call fcn.010047d1
cmp dword [ebp - 0x3d0], ebx
je 0x100bdd1
mov eax, dword [ebp - 0x3c8]
cmp eax, ebx
je 0x100bdd1
mov dword [esi + 0x230], eax
cmp dword [esi + 0x230], ebx
jne 0x100bdf3
cmp dword [ebp - 0x3cc], ebx
je 0x100bdf3
push dword [ebp - 0x3cc]
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [esi + 0x230], eax
mov esi, dword [esi + 0x230]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], edi
call fcn.010047d1
mov eax, esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01024a32
leave
ret 8

Function at 0x100cad1
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push 0
push 0x103635c
push 0x1036330
push 0
push dword [ebp + 0xc]
mov esi, ecx
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x100cbc3
mov ecx, dword [eax + 0xc]
dec ecx
dec ecx
jne 0x100cbc3
mov ecx, dword [eax + 8]
dec ecx
jne 0x100cbc3
push dword [eax + 0x1c]
mov eax, dword [esi + 0x18]
push dword [eax + 0xd34]
call fcn.01004fa9
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100cbc3
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push eax
mov edi, 0x3e8
push edi
push dword [esi + 0x14]
call ebx
push eax
mov ecx, esi
call fcn.0100b139
test eax, eax
mov dword [ebp - 4], eax
jl 0x100cbc1
push eax
push dword [ebp + 0xc]
push edi
push dword [esi + 0x14]
call ebx
push eax
mov ecx, esi
call fcn.0100c9c7
mov edx, eax
test edx, edx
jl 0x100cbc1
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
xor edi, edi
push edi
push 0x104c
push 0x3e8
push dword [esi + 0x14]
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x1c], edx
call ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
push edi
push edi
push 0x476
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
cmp eax, dword [esi + 0x14]
jne 0x100cbc1
mov ecx, esi
call fcn.0100b610
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x100cbcd
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x184
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], esi
call fcn.0100aefd
xor edi, edi
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov dword [ebp - 0x28], 0x1001718
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0xa
mov dword [ebp - 0x18], edi
call fcn.0100babe
test eax, eax
je 0x100cd8e
cmp dword [ebp - 0x24], edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 8], edi
jle 0x100cd5d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
lea edi, [eax + ecx*4]
push dword [edi]
mov dword [ebp - 0x2c], edi
push 0x3e8
push dword [esi + 0x14]
call ebx
push eax
mov ecx, esi
call fcn.0100b0f4
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0xc], ecx
je 0x100ccfd
push 1
call fcn.01005b2d
test al, al
je 0x100ccd8
cmp word [ebp + 8], 0x40c
mov byte [ebp - 0x14], 1
jne 0x100cc76
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
call fcn.0100af21
push dword [edi]
push dword [ebp - 0xc]
push 0x3e8
push dword [esi + 0x14]
call ebx
push eax
mov ecx, esi
call fcn.0100c9c7
push 0xd
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0x104c
push 0x3e8
push dword [esi + 0x14]
mov dword [ebp - 0x74], 2
mov dword [ebp - 0x58], edx
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 1], 1
jmp 0x100ccfd
mov esi, dword [ebp - 0xc]
add esi, 0x54
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 4
pop ecx
mov edi, 0x10028b4
lea esi, [ebp - 0x40]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, dword [ebp - 0x10]
je 0x100ccd2
mov byte [ebp - 2], 1
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x24]
jl 0x100cc2e
cmp byte [ebp - 1], 0
jne 0x100cd5d
cmp byte [ebp - 2], 0
je 0x100cd5d
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x20e
push dword [esi + 0x14]
call ebx
push eax
push dword [0x1037438]
lea ecx, [ebp - 0x184]
push 0x91
call fcn.01007053
mov ecx, eax
call fcn.0100b499
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x184], 0x1001644
call fcn.010047d1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push dword [eax + ecx*4 - 4]
mov edi, 0x3e8
push dword [eax]
push 0x1015
push edi
push dword [esi + 0x14]
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push dword [esi + 0x14]
call ebx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x1001718
call fcn.010056f6
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
leave
ret 8
Function at 0x100e111
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
push 0x125
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x100e215
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ecx
je 0x100e200
mov eax, dword [edi + 4]
cmp eax, ecx
je 0x100e200
cmp dword [ebp + 8], ecx
je 0x100e200
mov eax, dword [eax + 0x698]
dec eax
dec eax
je 0x100e197
push dword [esi + 0x70]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], ecx
lea ecx, [edi + 0x10]
call fcn.01025f54
test eax, eax
jl 0x100e183
push dword [ebp + 0xc]
push 0
push 1
push ebx
call fcn.0100dee7
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x100e214
cmp dword [esi + 0xc], ecx
je 0x100e1e8
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ecx
push ebx
call edi
lea eax, [esi + 0x20]
push eax
push ebx
call fcn.0100dea6
lea eax, [esi + 0x28]
push eax
push 0
push 0
push ebx
call fcn.0100df38
add esi, 0x30
push esi
push 0
push 0
push ebx
call fcn.0100df65
push 1
push ebx
call fcn.0100e001
push dword [ebp + 8]
push 1
push 1
push ebx
call fcn.0100dee7
push 5
push ebx
call edi
jmp 0x100e214
push dword [ebp + 8]
push 1
push 1
push ebx
call fcn.0100dee7
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x100e214
push ecx
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 1
push ebx
call fcn.0100dee7
pop esi
pop edi
pop ebx
pop ebp
ret 8