joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4725f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6f1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi + 4], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x4e8bd8
mov dword [esi + 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.UserMenu.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xff000000
mov edi, dword [0x4e9d58]
test edi, edi
je 0x47268e
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x47269b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], edi
cmp dword [0x4ea554], 0
jne 0x4726af
mov dword [0x4ea554], esi
jmp 0x4726b7
mov eax, dword [0x4ea558]
mov dword [eax + 0x20], esi
inc dword [0x4ea55c]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword [0x4ea558], esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x47d480
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
mov dword [ebp - 4], edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47d555
push 0
push 0
push ebx
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x47d555
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47d4d0
sub esi, ecx
sar esi, 1
lea edi, [esi + 4]
lea eax, [edi + edi]
call fcn.004b5ce0
mov ebx, esp
push dword [ebp - 4]
push str.__s_
push edi
push ebx
call fcn.00481690
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
add esp, 0x10
lea esi, [esi*2 + 6]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47d520
cmp dword [ebp - 0xc], esi
je 0x47d539
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
sbb eax, eax
and eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
sbb eax, eax
and eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ddf0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push 0
push edi
call ebx
cmp eax, 0x103
je 0x47dea7
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4e4788]
mov eax, dword [eax + 0x84]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x47deb4
mov ecx, dword [esp + 0x14]
call fcn.0047ddf0
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x47deb4
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x47deb4
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebx
cmp eax, 0x103
jne 0x47de31
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret

Function at 0x482c70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004b5e80
push esi
push edi
push 0x7fff
lea eax, [esp + 0xc]
mov edi, edx
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x482cc5
lea ecx, [esi + 1]
cmp ecx, 0x7fff
ja 0x482cc5
lea ecx, [esi*2 + 2]
push ecx
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0049d480
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x10000
ret
xor eax, eax
mov word [edi], ax
mov eax, esi
pop edi
pop esi
add esp, 0x10000
ret

Function at 0x482ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
or eax, 1
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x482d99
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x208
push eax
push edi
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x482d99
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x482d99
shr ecx, 1
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
cmp word [edi + eax*2], si
jne 0x482d7f
test eax, eax
je 0x482d9e
mov esi, eax
mov edx, eax
mov ecx, eax
nop dword [eax + eax]
cmp word [edi + ecx*2 - 2], 0
mov eax, edx
jne 0x482d9e
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x1c], eax
mov esi, eax
mov edx, eax
test ecx, ecx
jne 0x482d60
pop edi
pop esi
pop ecx
ret
mov dword [esp + 0x1c], ecx
cmp ecx, 0x104
jae 0x482d99
xor eax, eax
mov word [edi + ecx*2], ax
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ecx
ret
xor eax, eax
mov word [edi], ax
pop edi
pop esi
pop ecx
ret
Function at 0x484ad0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.00406f50
test eax, eax
jne 0x484b4b
mov eax, dword [0x4e4788]
cmp dword [eax + 0x34], 0
jne 0x484b29
cmp dword [0x4ea534], 0
jne 0x484b29
cmp byte [0x4e9e3e], 0
jne 0x484b29
push 0
push 0
push 0x4cee30
push 9
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4e9ec0
call fcn.0040d630
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 9
push 0
push 0x4cee30
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4e9ec0
call fcn.0040c4b0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x484bd2
nop
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x484bd2
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x484bd2
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x484bd2
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x484ccb
test edi, edi
je 0x484bbc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x484c21
push edi
push ebx
push eax
call fcn.0049d480
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x484b60
cmp dword [0x4e9ebc], 0
je 0x484c14
cmp dword [0x4e9eac], 0
je 0x484bfa
push dword [0x4e9ea4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e9eac], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e9ebc], 0
mov dword [0x4e9ea4], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4e9ebc], 0
je 0x484c6a
cmp dword [0x4e9eac], 0
je 0x484c50
push dword [0x4e9ea4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e9eac], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e9ebc], 0
mov dword [0x4e9ea4], 0
mov eax, dword [0x4e4788]
cmp dword [eax + 0x34], 0
jne 0x484ca9
cmp dword [0x4ea534], 0
jne 0x484ca9
cmp byte [0x4e9e3e], 0
jne 0x484ca9
push 0
push 0
push 0x4cee30
push 9
push str.An_internal_function_call_failed.
mov ecx, 0x4e9ec0
call fcn.0040d630
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 9
push 0
push 0x4cee30
push str.An_internal_function_call_failed.
mov ecx, 0x4e9ec0
call fcn.0040c4b0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4e9ebc], 0
je 0x484d0d
cmp dword [0x4e9eac], 0
je 0x484cf3
push dword [0x4e9ea4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e9eac], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e9ebc], 0
mov dword [0x4e9ea4], 0
push dword [0x4e9dc0]
mov ecx, 0x4e9ec0
push 0
push 0
push 0
push str.Out_of_memory.
call fcn.0040ca40
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485cd0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x485d3b
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x485d48
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x485d48
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x485d48
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x485d48
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x485da1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, 1
mov dword [esp + 0x18], eax
mov ecx, 0x8000012f
call fcn.00401600
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x485da1
add edi, dword [esp + 0x18]
nop
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x485da1
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401600
push esi
call ebp
test eax, eax
jne 0x485d80
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x487a00
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x487abb
mov eax, dword [esi]
test eax, eax
je 0x487abb
push edi
test al, 1
jne 0x487a2d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x487a47
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x487a47
mov word [edi], ax
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x487a61
lea eax, [esi + 0x1854]
push eax
push dword [esi + 0x1850]
call edi
test byte [esi], 0x20
je 0x487a9d
lea eax, [esp + 8]
push eax
push dword [esi + 0x1850]
call edi
test eax, eax
je 0x487a9d
movzx eax, byte [esi + 0x1828]
lea edx, [esi + 0x11a58]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004290cb
add esp, 8
test eax, eax
jne 0x487a9d
mov word [esi + 0x11a58], ax
test byte [esi], 8
pop edi
je 0x487abb
push 0x101
lea eax, [esi + 0x11856]
push eax
push dword [esi + 0x1850]
call dword [sym.imp.USER32.dll_GetClassNameW]
pop esi
pop ecx
ret

Function at 0x487f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4e8e6c], 0
mov eax, dword [0x4e4788]
mov byte [eax + 0x53], 1
je 0x487ff8
push ebx
mov bl, byte [0x4e8f7d]
mov al, bl
and al, 0xc0
movzx ecx, al
neg ecx
push esi
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test bl, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test bl, 0x30
cmove ecx, edx
mov esi, ecx
or esi, 2
test bl, 3
cmove esi, ecx
mov edx, esi
mov ecx, esi
and dl, 2
neg dl
sbb dl, dl
and dl, 3
mov al, dl
or al, 0x30
and cl, 4
movzx ebx, al
movzx eax, dl
cmove ebx, eax
or bl, 0xcc
not bl
and bl, byte [0x4e8f7b]
je 0x487ff6
cmp esi, 8
jne 0x487fdf
movzx eax, word [0x4e4d04]
lea ecx, [esi - 6]
mov dl, byte [0x4e4c1e]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00419b50
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor cl, cl
call fcn.0041bb60
add esp, 0x10
pop esi
pop ebx
push 0x4bf
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test eax, eax
je 0x488017
mov edx, 1
or ecx, 0xffffffff
jmp fcn.00401600
ret
Function at 0x488430
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c64
call fcn.004b5e80
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x48863c
mov byte [edi], 1
cmp dword [0x4e9e0c], edi
je 0x48846a
mov dword [0x4e9e0c], edi
mov dword [0x4e9e14], 0
cmp dword [0x4e9e10], 0
jne 0x48848a
mov ecx, 0x7d0
call fcn.0047e4d0
test eax, eax
je 0x488647
mov dword [0x4e9e10], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x4e4788]
mov esi, eax
add ecx, 0x58
push ecx
push esi
mov ecx, edi
call fcn.00488830
mov ecx, dword [0x4e9e14]
test eax, eax
setne bh
xor edx, edx
test eax, eax
mov dword [esp + 0x183c], edx
mov dword [esp + 0x1840], edx
cmove ecx, edx
mov dword [esp + 0x1844], edx
mov dword [0x4e9e14], ecx
mov dword [esp + 0x1850], edx
mov dword [esp + 0x185c], edx
mov dword [esp + 0x1860], edx
cmp byte [ebp + 8], dl
je 0x4884f6
mov byte [esp + 0x1839], dl
test bh, bh
je 0x4884fe
mov byte [esp + 0x1839], 1
mov eax, dword [0x4e4788]
mov edx, dword [0x4e9e10]
mov dword [esp + 0x1848], edx
mov dword [esp + 0x184c], ecx
mov dword [esp + 0x101c], 0x4cee30
mov dword [esp + 0x1020], 0
mov dword [esp + 0x1024], 0x4cee30
mov dword [esp + 0x1028], 0x4cee30
test eax, eax
je 0x488550
add eax, 0x58
mov dword [esp + 0x14], eax
jmp 0x488558
mov dword [esp + 0x14], 0
test ecx, ecx
mov dword [esp + 0x1034], edi
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x10], 0x10
setg bl
test bh, bh
je 0x48859c
xor eax, eax
test ecx, ecx
jle 0x48858a
nop dword [eax]
cmp dword [edx + eax*4], esi
je 0x48859c
inc eax
cmp eax, ecx
jl 0x488580
cmp ecx, 0x1f4
jge 0x48859c
mov dword [edx + ecx*4], esi
inc ecx
mov dword [0x4e9e14], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x184c], ecx
push eax
push 0x486a70
call edi
mov ecx, dword [esp + 0x1840]
test ecx, ecx
jne 0x4885d2
test bl, bl
je 0x48863c
mov edx, dword [0x4e9e10]
xor bl, bl
mov dword [0x4e9e14], ecx
jmp 0x488572
call fcn.00485980
mov ecx, dword [0x4e9e14]
xor eax, eax
mov edx, dword [esp + 0x1840]
mov esi, dword [0x4e9e10]
test ecx, ecx
jle 0x4885fa
cmp dword [esi + eax*4], edx
je 0x488613
inc eax
cmp eax, ecx
jl 0x4885f0
cmp ecx, 0x1f4
jge 0x488613
mov dword [esi + ecx*4], edx
inc ecx
mov edx, dword [esp + 0x1840]
mov dword [0x4e9e14], ecx
mov eax, dword [0x4e4788]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x488631
mov edx, 1
call fcn.00401600
mov edx, dword [esp + 0x1840]
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040dd70
int3
Function at 0x488650
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c64
call fcn.004b5e80
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi], 0
cmp dword [0x4e9e0c], esi
je 0x488680
mov dword [0x4e9e0c], esi
mov dword [0x4e9e14], 0
cmp dword [0x4e9e10], 0
jne 0x4886a0
mov ecx, 0x7d0
call fcn.0047e4d0
test eax, eax
je 0x488829
mov dword [0x4e9e10], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 4
push edi
call ebx
test eax, eax
je 0x4886c2
push 4
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x4886b7
mov eax, dword [0x4e4788]
mov ecx, esi
add eax, 0x58
push eax
push edi
call fcn.00488830
mov ecx, dword [0x4e9e14]
xor edx, edx
test eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x101c], 0x4cee30
cmovne ecx, edx
mov dword [esp + 0x183c], edx
mov dword [0x4e9e14], ecx
mov dword [esp + 0x1840], edx
mov dword [esp + 0x1844], edx
mov dword [esp + 0x185c], edx
mov dword [esp + 0x1860], edx
cmp byte [ebp + 8], dl
je 0x488728
mov byte [esp + 0x1839], dl
test ecx, ecx
je 0x488730
mov byte [esp + 0x1839], 1
mov eax, dword [0x4e9e10]
mov dword [esp + 0x1848], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1850], eax
lea eax, [esp + 0x10]
push eax
push 0x488900
mov dword [esp + 0x1854], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
test eax, eax
je 0x4887cc
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov ecx, eax
call fcn.00485980
mov ecx, dword [0x4e9e14]
xor eax, eax
mov edx, dword [esp + 0x1840]
mov esi, dword [0x4e9e10]
test ecx, ecx
jle 0x48879a
nop
cmp dword [esi + eax*4], edx
je 0x4887ac
inc eax
cmp eax, ecx
jl 0x488790
cmp ecx, 0x1f4
jge 0x4887ac
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4e9e14], ecx
mov eax, dword [0x4e4788]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x488820
mov edx, 1
call fcn.00401600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4e9e14]
test eax, eax
je 0x48880c
cmp eax, 1
mov dword [0x4e9e14], 0
setg al
test al, al
je 0x488820
mov eax, dword [0x4e9e10]
mov ecx, esi
push 0
mov dword [0x4e9e14], 1
mov dword [eax], edi
call fcn.00488650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, eax
call fcn.00485980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040dd70
int3
Function at 0x49c88f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49c8ce
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49c8ce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49c8ce
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49c8ce
cmp dword [ecx + 0x74], 0xe
jbe 0x49c8ce
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4ae433
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e2014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4ae47e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ae5d2
test al, al
jne 0x4ae478
sub edx, 2
cmp edx, edi
jne 0x4ae45e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ae4a0
lea eax, [edi + 2]
cmp edx, eax
je 0x4ae4a0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ae37f
add esp, 0x10
jmp 0x4ae59a
push esi
lea ecx, [ebp - 0x255]
call fcn.004ae5d2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ae4e3
push dword [ebp - 0x25c]
jmp 0x4ae490
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4ae520
cmp word [ebp - 0x226], 0
je 0x4ae541
cmp word [ebp - 0x226], ax
jne 0x4ae520
cmp word [ebp - 0x224], 0
je 0x4ae541
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ae37f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ae58d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ae4fa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ae575
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ae59a
push 0x4ae1af
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a9950
add esp, 0x10
jmp 0x4ae56a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049cae3
leave
ret

Function at 0x4af255
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb7a4
push 0x4bb79c
push str.FlsAlloc
push 0x1e
call fcn.004af192
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4af289
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87a4]
call esi
jmp 0x4af28f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4af2d3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb7b4
push 0x4bb7ac
push str.FlsGetValue
push 0x20
call fcn.004af192
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4af30a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4b5a20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b5a4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b5a4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9c58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4f07b8]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x4f07b8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
xorps xmm0, xmm0
push eax
movq qword [esp + 0x14], xmm0
call fcn.0048a438
push 0x4ecc38
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0
push esi
push eax
call fcn.0048a406
lea eax, [esp + 0x20]
push eax
push edi
call fcn.0048a3e6
lea eax, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
push eax
call fcn.0048a489
add esp, 0x1c
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0048464b
mov esp, ebp
pop ebp
ret

Function at 0x409770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409789
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4097c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4097c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4097c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4097b0
cmp esi, edx
jb 0x4097cb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret