joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440a48
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fda0]
cmp dword [eax + 0x30], 0
je 0x440af2
cmp dword [ebx + 0x94], 0
jne 0x440aec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4409d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x440aec
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x440ab2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x440aec
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413d58
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x440ac1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x441654
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x441689
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040404c
jmp 0x441696
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fb0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x442564
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4425a5
mov eax, esi
call fcn.00456848
test al, al
je 0x4425a5
mov eax, dword [ebx + 0x84]
call fcn.004565e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4425a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.004565e8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4455d0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403f5c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44561f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44da84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x45fe20], 0
je 0x44dbd3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45ea44]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x44dbd3
mov eax, dword [0x45fe24]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45fe20]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x44dba2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45fe20]
call fcn.00413d58
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44db9a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x44db9a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x44db9a
mov eax, dword [ebp - 0x14]
call fcn.004565e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44db9a
push ebp
call fcn.0044da40
pop ecx
test al, al
jne 0x44db9a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x44db56
mov eax, dword [ebp - 0x14]
call fcn.00455118
dec eax
jle 0x44db9a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004032d4
cmp byte [ebp - 1], 0
je 0x44db9a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x44db9a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45fe24]
call fcn.0044d20c
inc edi
dec ebx
jne 0x44dae9
mov eax, dword [0x45fe24]
cmp dword [eax + 8], 0
jle 0x44dbba
mov eax, dword [0x45fe24]
call fcn.0044d29c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44dbd3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044d8a8
pop ecx
test al, al
jne 0x44dbd3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45116c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4511b8
mov eax, esi
call fcn.00438df4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4511b8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4511b8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4512f7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4511f8
cmp eax, 0x108
ja 0x4511f8
mov eax, esi
call fcn.00438df4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4512ee
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4512f7
jmp 0x4512ee
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4512d7
cmp eax, 0x20a
ja 0x4512d7
test byte [esi + 0x50], 0x80
jne 0x45122a
sub eax, 0x203
je 0x451227
sub eax, 3
je 0x451227
sub eax, 3
jne 0x45122a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x45123e
dec eax
je 0x451253
dec eax
je 0x451270
dec eax
je 0x451253
jmp 0x451277
mov ecx, ebx
mov eax, dword [0x45ea44]
mov eax, dword [eax]
mov edx, esi
call fcn.0044241c
jmp 0x4512ee
cmp byte [esi + 0x5d], 1
jne 0x451269
mov eax, esi
mov si, 0xffed
call fcn.004032d4
jmp 0x4512f7
or word [esi + 0x54], 1
jmp 0x4512ee
and word [esi + 0x54], 0xfffe
jmp 0x4512ee
mov eax, dword [0x45fddc]
cmp byte [eax + 0x20], 0
je 0x4512ee
mov eax, dword [0x45fddc]
cmp dword [eax + 0x1c], 0
je 0x4512ee
mov eax, dword [ebx]
mov edx, dword [0x45fddc]
cmp eax, dword [edx + 0x1c]
jne 0x4512ee
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00438d38
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004032d4
jmp 0x4512f7
cmp eax, 0xb00b
jne 0x4512ee
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0044fad4
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454778
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x454794
cmp dword [esi + 4], 0
je 0x4547c1
test byte [ebx + 0x55], 1
jne 0x4547b3
mov eax, ebx
call fcn.00453384
test eax, eax
jne 0x4547b3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4548d1
mov edx, esi
mov eax, ebx
call fcn.0045429c
jmp 0x4548d1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4548ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004565e8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004510a0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00454778
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004565e8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4548d1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ad24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45ebac]
cmp byte [eax + 0xc], 0
je 0x45ae91
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ae8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45fe30], 0
jne 0x45ad78
push 0x45ae98
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x45aea0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe30], eax
cmp dword [0x45e77c], 0
jne 0x45ae73
push 0x45aeb0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45e77c], eax
cmp dword [0x45e77c], 0
je 0x45ae73
push 0x45aebc
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe34], eax
push 0x45aecc
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe38], eax
push 0x45aee0
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe3c], eax
push 0x45aef8
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe40], eax
push 0x45af10
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe44], eax
push 0x45af24
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe48], eax
push 0x45af3c
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe4c], eax
push 0x45af54
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe50], eax
push 0x45af70
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe54], eax
push 0x45af7c
mov eax, dword [0x45e77c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fe58], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ae91
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45bb40
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov esi, edx
mov ebx, eax
push 0x4010
push 0x160
lea eax, [esp + 8]
push eax
push esi
mov eax, ebx
call fcn.0040441c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x45be7c
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
test dl, dl
je 0x45beb7
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x45beec
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x45bee3
mov edx, eax
mov eax, ebx
call fcn.00443340
mov byte [ebx + 0x42], 1
jmp 0x45bee3
push 0x4000
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x45beec
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x45bee3
mov edx, eax
mov eax, ebx
call fcn.00443340
mov byte [ebx + 0x42], 1
add esp, 0x160
pop ebx
ret
Function at 0x45c2e4
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov al, byte [ebp + 8]
xor edx, edx
push ebp
push 0x45c406
push dword fs:[edx]
mov dword fs:[edx], esp
cmp al, 1
jne 0x45c394
cmp dword [0x45fff0], 0
je 0x45c31a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c410
push 0
mov eax, dword [0x45f660]
push eax
mov eax, 0x45c080
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fff0], eax
cmp dword [0x45fff0], 0
jne 0x45c347
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x45c3fc
push 0
mov eax, dword [0x45f660]
push eax
mov eax, 0x45c0a0
push eax
push 4
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fff4], eax
push 0
mov eax, dword [0x45f660]
push eax
mov eax, 0x45c1fc
push eax
push 9
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fff8], eax
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 0
push 0xffff
call sub.user32.dll_PostMessageA
jmp 0x45c3fc
cmp dword [0x45fff0], 0
je 0x45c3a8
mov eax, dword [0x45fff0]
push eax
call sub.user32.dll_UnhookWindowsHookEx
cmp dword [0x45fff4], 0
je 0x45c3bc
mov eax, dword [0x45fff4]
push eax
call sub.user32.dll_UnhookWindowsHookEx
cmp dword [0x45fff8], 0
je 0x45c3d0
mov eax, dword [0x45fff8]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x45fff8], eax
xor eax, eax
mov dword [0x45fff0], eax
xor eax, eax
mov dword [0x45fff8], eax
push 0
push 0
push 0
push 0xffff
call sub.user32.dll_PostMessageA
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c410
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x40234b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00402377
test eax, eax
pop ecx
jne 0x40235d
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret

Function at 0x4027ee
Capabilities:
Find taskbar

Disassembly:
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x402820
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
cmp eax, edi
je 0x402820
push edi
push str.ToolbarWindow32
push edi
push eax
call esi
pop edi
pop esi
ret

Function at 0x402823
Capabilities:
Find taskbar

Disassembly:
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x402863
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
cmp eax, edi
je 0x402863
push edi
push str.SysPager
push edi
push eax
call esi
cmp eax, edi
je 0x402863
push edi
push str.ToolbarWindow32
push edi
push eax
call esi
pop edi
pop esi
ret

Function at 0x402d73
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0040dff7
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0040dff7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp - 0x10], 0xa
jg 0x402dd0
cmp dword [ebp - 0xc], 0xa
jg 0x402dc1
cmp dword [ebp - 8], 0x320
jl 0x402dbd
push 2
jmp 0x402dc3
xor eax, eax
jmp 0x402dd3
push 3
pop eax
mov dword [esi + 0x208], 1
jmp 0x402dda
push 1
pop eax
and dword [esi + 0x208], 0
pop edi
pop esi
leave
ret
Function at 0x40517a
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x418b43
call fcn.00416550
mov eax, 0x10010
call fcn.004165f0
and dword [ebp - 0x18], 0
push ebx
test byte [0x4236f0], 1
push esi
push edi
mov edi, 0x4236f4
jne 0x4051bc
or byte [0x4236f0], 1
mov ecx, edi
call sub.MFC42u.DLL_CString::CString_1
push 0x4053af
call fcn.004165be
pop ecx
push 2
mov esi, 0x4236f8
pop ebx
test byte [0x4236f0], bl
jne 0x4051e4
or byte [0x4236f0], bl
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
push 0x4053a5
call fcn.004165be
pop ecx
cmp dword [0x421158], 0
je 0x405284
call fcn.00405343
test eax, eax
je 0x405284
and dword [0x421158], 0
lea eax, [ebp - 0x1c]
push str._programfiles_
push eax
call fcn.0040517a
pop ecx
pop ecx
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00416328
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004162ce
lea eax, [ebp - 0x14]
push str._commonprogramfiles_
push eax
call fcn.0040517a
pop ecx
pop ecx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00416328
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004162ce
mov ecx, edi
call sub.MFC42u.DLL_CString::MakeLower
mov ebx, str.__x86_
push 0x423544
push ebx
mov ecx, edi
call sub.MFC42u.DLL_CString::Replace
mov ecx, esi
call sub.MFC42u.DLL_CString::MakeLower
push 0x423544
push ebx
mov ecx, esi
call sub.MFC42u.DLL_CString::Replace
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov ecx, 0x423668
mov dword [ebp - 4], 3
call fcn.0040dffa
test eax, eax
je 0x4052ec
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::MakeLower
mov ecx, edi
call fcn.00404fff
test eax, eax
jne 0x4052cc
mov ecx, edi
call fcn.0040dffa
push eax
push str._programfiles_
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Replace
mov ecx, esi
call fcn.00404fff
test eax, eax
jne 0x4052ec
mov ecx, esi
call fcn.0040dffa
push eax
push str._commonprogramfiles_
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Replace
and word [ebp - 0x1001c], 0
lea eax, [ebp - 0x1001c]
push 0x8000
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dffa
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1001c]
push eax
call sub.MFC42u.DLL_CString::CString_3
mov dword [ebp - 0x18], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004162ce
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4053b9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40547b
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40547b
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call fcn.00405343
test eax, eax
je 0x40547b
cmp ebx, 0x26
je 0x40545c
cmp ebx, 0x2b
je 0x40545c
cmp ebx, 0x25
jne 0x40547b
push str.SysWOW64
push esi
call fcn.004038f5
pop ecx
cmp eax, edi
pop ecx
je 0x40547b
mov word [eax], di
push str.System32
push 0x104
push esi
call fcn.0040500f
test eax, eax
jge 0x40547b
xor eax, eax
jmp 0x40547e
push str.__x86_
push esi
call fcn.004038f5
pop ecx
cmp eax, edi
pop ecx
je 0x40547b
mov word [eax], di
add eax, 0xc
cmp word [eax], di
je 0x40547b
push eax
jmp 0x405449
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40636f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa70
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x24c]
mov dword [ebp - 0x250], esi
rep stosd dword es:[edi], eax
mov edx, 0x103
lea edi, [ebp - 0x65e]
mov ecx, edx
mov word [ebp - 0x660], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xa6e]
cmp dword [ebp + 0xc], esi
mov word [ebp - 0xa70], si
mov ebx, 0x80004005
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x4064c1
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
jbe 0x4064c1
push dword [ebp + 0xc]
mov esi, 0x410
lea eax, [ebp - 0x660]
push 0x421424
push esi
push eax
call fcn.004064ca
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
test edi, edi
je 0x4064c1
mov ebx, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x224]
push 0x421420
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x4064a2
lea eax, [ebp - 0x224]
push 0x421418
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x4064a2
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0xa70]
push dword [ebp + 0xc]
push str._s_s
push esi
push eax
call fcn.004064ca
add esp, 0x14
test byte [ebp - 0x250], 0x10
je 0x406475
push 1
pop eax
jmp 0x40648f
lea eax, [ebp - 0x224]
push str.desktop.ini
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4064a2
xor eax, eax
push eax
lea eax, [ebp - 0xa70]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00406542
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406420
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x406ddd
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x418d9a
call fcn.00416550
push ecx
push esi
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [esi + 8]
mov dword [esi + 4], eax
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebp + 0xb]
lea ecx, [esi + 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0040df30
and dword [esi + 0x20], 0
and dword [esi + 0x24], 0
mov ecx, dword [ebp - 0xc]
and dword [esi + 0x30], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x409279
Capabilities:
Get file attributes

Disassembly:
push 0xe
call fcn.00404224
pop ecx
push dword [esp + 4]
test eax, eax
je 0x40928d
call eax
jmp 0x409293
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret 4