joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aabe
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea esi, [ebx + 0x124]
push dword [esi]
call edi
push dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push ebx
call fcn.0044866c
push 5
push dword [esi]
call edi
pop edi
pop esi
ret 8

Function at 0x43e966
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
call fcn.0049b261
test eax, eax
je 0x43e9dc
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43e9d8
push edi
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
pop edi
je 0x43e9dc
xor eax, eax
jmp 0x43e9ea
push 0x40000
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret

Function at 0x442c92
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4e7384]
push esi
xor esi, esi
mov dword [ebp - 4], eax
inc esi
push 0
lea eax, [esi + 0x7dc8]
push eax
push dword [ebp + 0xc]
call fcn.00430fe2
add esp, 0xc
inc esi
cmp esi, 9
jle 0x442ca7
push ebx
push edi
xor esi, esi
push 0xa
inc esi
pop ebx
mov eax, dword [0x4e9150]
push ebx
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x11c]
push 0x81c7
push eax
call fcn.00405bca
add esp, 0xc
cmp ebx, dword [0x4eb6d0]
mov eax, 0x400
jne 0x442cfb
mov eax, 0x608
mov edi, dword [ebp - 0x11c]
push edi
lea ecx, [esi + 0x7dc8]
push ecx
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_InsertMenuW]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x442d25
push eax
call fcn.004013aa
add ebx, 0xa
inc esi
cmp ebx, 0x5a
jle 0x442cc9
cmp dword [0x4eb6d0], 0
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
jne 0x442d4c
push 0x208
push 0x7dc8
push dword [ebp + 0xc]
call esi
cmp dword [0x4eb6cc], 0
je 0x442d61
push 8
push 0x7dd2
push dword [ebp + 0xc]
call esi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
pop edi
pop ebx
jne 0x442dc0
cmp dword [ebp - 0x114], 5
ja 0x442da4
jne 0x442dc0
cmp dword [ebp - 0x110], 1
jb 0x442dc0
push dword [ebp + 8]
call fcn.00481f52
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x7dde
push dword [ebp + 0xc]
call esi
jmp 0x442dd0
push 3
push 0x7dde
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004c2215
leave
ret 8
Function at 0x446951
Capabilities:
Create process on windows

Disassembly:
movzx eax, ax
sub eax, 0x8070
js 0x446984
cmp eax, 4
jae 0x446984
push 1
push 0
push 0
push dword [eax*4 + 0x4e7a18]
mov eax, dword [esp + 0x14]
push 0x4ceec8
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.0049bf52
xor eax, eax
ret 4
Function at 0x44c384
Capabilities:
Log keystrokes via polling

Disassembly:
and dword [ebx], 0
push esi
mov esi, eax
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x44c3af
cmp eax, 0x79
jne 0x44c3a6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x44c3af
cmp dword [esi + 0xa8], 0x20
jne 0x44c422
cmp dword [esp + 8], 0xf100
jne 0x44c422
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x44c3df
mov eax, esi
call fcn.0044e9ac
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x44c422
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x44c422
test byte [esi + 0x84], 0x40
jne 0x44c417
mov al, byte [esi + 0x85]
test al, 2
je 0x44c40c
test al, 4
jne 0x44c40c
test al, 8
je 0x44c40c
mov al, 1
call fcn.0044ea26
push edi
mov edi, esi
call fcn.0044fe01
pop edi
jmp 0x44c41c
cmp eax, 0x20
je 0x44c422
mov dword [ebx], 1
and byte [esi + 0x84], 0xbf
xor eax, eax
pop esi
ret 4

Function at 0x44e032
Capabilities:
Capture webcam image

Disassembly:
push 0
push dword [esp + 8]
push 0x419
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4
Function at 0x44f5a2
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
push edi
mov edi, dword [ebx + 0xdc]
and dword [ebx + 0xdc], 0
cmp dword [esp + 0x10], 0
jne 0x44f5df
test edi, edi
mov esi, dword [ebx + 0x60]
je 0x44f5d2
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
mov eax, 0xff
je 0x44f5d4
mov eax, esi
push 5
push eax
call fcn.00432856
mov dword [ebx + 0x60], esi
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x10], 0
je 0x44f61f
push dword [ebx + 4]
mov esi, dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_BringWindowToTop]
test edi, edi
mov eax, 0xff
jne 0x44f612
mov eax, esi
push eax
push 5
call fcn.00432856
mov dword [ebx + 0x60], esi
jmp 0x44f629
push 0xffffffffffffffff
push dword [ebx + 0x60]
call fcn.00432856
mov dword [ebx + 0xdc], edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x44fea6
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
push esi
push edi
lea esi, [ebx + 0x1c]
call fcn.00407c87
push esi
push 0x451416
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, ebx
neg eax
sbb eax, eax
lea ecx, [ebx - 0xc0]
and eax, ecx
mov ecx, dword [eax + 0xc]
add eax, 8
dec ecx
push 0
pop esi
js 0x44fef1
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
cmp ecx, esi
je 0x44fef1
push 0x13
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ecx
call ebp
lea edi, [ebx + 0x18]
push 8
xor eax, eax
xor ecx, ecx
call fcn.00403ade
push esi
push 1
push 0x401
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x13
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi]
call ebp
mov eax, dword [esp + 0x10]
pop edi
mov dword [ebx + 0x14], 1
mov dword [eax], esi
pop esi
xor eax, eax
pop ebp
ret 4

Function at 0x450231
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esi + 0xdc]
and dword [esi + 0xdc], 0
cmp dword [esp + 8], 0
push edi
jne 0x45026c
test ebx, ebx
mov edi, dword [esi + 0x60]
je 0x45025e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
mov eax, 0xff
je 0x450260
mov eax, edi
push 5
push eax
push esi
call fcn.00450177
mov dword [esi + 0x60], edi
mov eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 0
je 0x4502ad
push dword [esi + 4]
mov edi, dword [esi + 0x60]
call dword [sym.imp.USER32.dll_BringWindowToTop]
test ebx, ebx
mov eax, 0xff
jne 0x45029f
mov eax, edi
push eax
push 5
push esi
call fcn.00450177
mov dword [esi + 0x60], edi
jmp 0x4502b8
push 0xffffffffffffffff
push dword [esi + 0x60]
push esi
call fcn.00450177
pop edi
mov dword [esi + 0xdc], ebx
pop ebx
ret 4
Function at 0x4514d9
Capabilities:
Hide graphical window

Disassembly:
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, eax
test ebx, ebx
je 0x4514f7
push 0
push dword [esi + 4]
call edi
push 0xffffffffffffffe6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClassLongW]
cmp dword [esp + 0xc], 0
je 0x451510
or eax, 0x20000
jmp 0x451515
and eax, 0xfffdffff
push eax
push 0xffffffffffffffe6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetClassLongW]
test ebx, ebx
je 0x45152c
push 5
push dword [esi + 4]
call edi
pop edi
pop ebx
ret 4
Function at 0x45360b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4c29ae
call fcn.004c2540
sub esp, 0x210
mov eax, dword [0x4e7384]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, ecx
jne 0x453645
push dword [esi]
call ebx
cmp eax, 0xffffffff
jne 0x453645
xor eax, eax
jmp 0x4537ce
test al, 0x10
je 0x453651
push 5
pop eax
jmp 0x4537ce
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x2e
push eax
call edi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x21c], eax
je 0x4537ca
push str..lnk
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x453721
and dword [ebp + 8], eax
and dword [ebp - 4], eax
push dword [esi]
lea eax, [ebp + 8]
call fcn.004532c7
test eax, eax
je 0x453710
push 2
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
xor ecx, ecx
call fcn.0045331e
test eax, eax
je 0x453710
lea eax, [ebp - 0x218]
push eax
mov eax, esi
call fcn.00402ec3
push dword [esi]
call ebx
cmp eax, 0xffffffff
jne 0x4536e4
or dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4536dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x4537cd
test al, 0x10
je 0x453701
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x4536f9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
pop eax
jmp 0x4537cd
mov esi, dword [esi]
push 0x2e
push esi
call edi
pop ecx
pop ecx
mov dword [ebp - 0x21c], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x453721
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x21c], 0
je 0x4537ca
push dword [ebp - 0x21c]
lea edi, [ebp + 8]
call fcn.00402e10
mov esi, dword [ebp + 8]
push str..cue
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x453766
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x453762
push eax
call fcn.004013aa
push 3
jmp 0x4536fb
mov edi, 0x4ebc90
push esi
mov eax, edi
call fcn.004a51c7
test eax, eax
je 0x45378f
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x453788
push eax
call fcn.004013aa
push 4
jmp 0x4536fb
cmp dword [ebp + 0xc], 0
je 0x4537b9
push esi
mov eax, edi
call fcn.004a51b5
test eax, eax
je 0x4537b9
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x4537b2
push eax
call fcn.004013aa
push 2
jmp 0x4536fb
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x4537ca
push eax
call fcn.004013aa
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c2215
leave
ret
Function at 0x454921
Capabilities:
Set current directory

Disassembly:
mov eax, 0x4c8086
call fcn.004c2540
sub esp, 0x26c
mov eax, dword [0x4e7384]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea edi, [ebx + 0x14]
mov eax, edi
mov dword [ebx + 0x20], 1
call fcn.00402ec3
and dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x2e
push dword [ebp + 8]
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x220], eax
je 0x454b37
push str..ttbl
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x454997
push eax
push dword [ebp + 8]
push ebx
call fcn.004557a0
jmp 0x454b39
push str..m3u
push dword [ebp - 0x220]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4549b1
push eax
jmp 0x4549cd
push str..m3u8
push dword [ebp - 0x220]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4549e6
push 0xfde9
mov ecx, dword [ebp + 8]
push ebx
call fcn.004574aa
jmp 0x454b39
and dword [ebp - 0x228], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x454a2c
and word [eax + 2], 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebx + 0x10]
lea esi, [ebp - 0x220]
call fcn.00402de7
lea eax, [ebp - 0x250]
mov dword [ebp - 4], 2
call fcn.0049e1cd
push 0
mov ecx, ebx
lea eax, [ebp - 0x278]
call fcn.00454232
mov edi, dword [edi]
lea eax, [ebp - 0x278]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x224]
push 0
push eax
mov eax, edi
call fcn.00401603
pop ecx
pop ecx
mov byte [ebp - 4], 6
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x250]
call fcn.0049e1e1
test al, al
mov eax, dword [ebp - 0x224]
sete byte [ebp + 0xb]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x454aaf
push eax
call fcn.004013aa
lea esi, [ebp - 0x278]
mov byte [ebp - 4], 4
call fcn.00454b52
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x250], 0x4cbfe4
call fcn.0049dc36
cmp byte [ebp + 0xb], 0
mov eax, dword [ebp - 0x220]
jne 0x454b26
cmp dword [eax - 8], 0
je 0x454af7
lea edi, [ebp - 0x220]
lea eax, [ebx + 0x10]
call fcn.00402e80
mov esi, ebx
call fcn.0045887c
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x454b15
push eax
call fcn.004013aa
xor eax, eax
inc eax
jmp 0x454b39
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x454b37
push eax
call fcn.004013aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004c2215
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45a3eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x4ea818]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetACP]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0xc]
push 0x45a3d3
push eax
mov esi, 0xf0
push esi
xor edi, edi
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 8], 0x804
jne 0x45a434
mov dword [ebp - 4], 0x3a8
jmp 0x45a443
cmp word [ebp - 8], 0x404
jne 0x45a443
mov dword [ebp - 4], 0x3b6
movzx eax, word [ebp + 0xc]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x45a463
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x45a46a
xor eax, eax
jmp 0x45a546
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x45a53a
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov ax, word [ebx]
cmp ax, di
mov dword [ebp - 0xc], eax
je 0x45a53a
inc ebx
inc ebx
mov ax, word [ebx]
inc ebx
inc ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ax, 0x180
mov dword [ebp - 0x14], ecx
je 0x45a4ef
cmp ax, 0x401
je 0x45a4ef
cmp ax, 0x143
je 0x45a4b9
cmp ax, 0x403
jne 0x45a531
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp - 0x10], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004c2440
mov dword [ebp + 0xc], esp
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push edi
push 0x143
jmp 0x45a523
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp - 0x10], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004c2440
mov dword [ebp + 0xc], esp
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push edi
push 0x180
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
add ebx, dword [ebp - 0x14]
jne 0x45a481
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45ccf6
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4c49a1
call fcn.004c2540
sub esp, 0x2cc
mov eax, dword [0x4e7384]
push ebx
push esi
push edi
push 0x4001
push 0x2b4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c4]
push eax
xor esi, esi
push esi
push 0x4cc340
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [ebp + 8]
push eax
push 1
add edi, 4
push 0x1003
push dword [edi]
mov dword [ebp - 0x2c8], edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x2000140
xor eax, eax
xor ecx, ecx
call fcn.00403a94
mov dword [ebp - 0x2d8], esi
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2cc], esi
push 0x7c
push 5
lea eax, [ebp - 0x2d8]
push eax
push 0x815c
mov dword [ebp - 4], esi
call fcn.0049b69e
add esp, 0x10
cmp dword [ebp - 0x2d4], esi
jbe 0x45ce14
mov edi, dword [ebp - 0x2d8]
or ebx, 0xffffffff
push ebx
push esi
push dword [edi]
push esi
push dword [ebp - 0x2c8]
push 0x78
pop edx
call fcn.00405d2b
cmp dword [ebp - 0x2d4], 1
jbe 0x45ce14
push ebx
push esi
push dword [edi + 4]
push 1
push dword [ebp - 0x2c8]
push 0x64
pop edx
call fcn.00405d2b
cmp dword [ebp - 0x2d4], 2
jbe 0x45ce14
push ebx
push esi
push dword [edi + 8]
push 2
push dword [ebp - 0x2c8]
push 0x78
pop edx
call fcn.00405d2b
cmp dword [ebp - 0x2d4], 3
jbe 0x45ce14
push ebx
push esi
push dword [edi + 0xc]
push 3
push dword [ebp - 0x2c8]
push 0x32
pop edx
call fcn.00405d2b
cmp dword [ebp - 0x2d4], 4
ja 0x45ce1e
push 0x80070057
call fcn.004010ca
push ebx
push 0
push dword [edi + 0x10]
mov edi, dword [ebp - 0x2c8]
push 4
push edi
xor esi, esi
mov edx, 0x12c
call fcn.00405d2b
mov esi, dword [ebp + 8]
push 0
push 0
push 0x101f
push dword [edi]
add esi, 0x48
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi], eax
push 4
xor eax, eax
xor ecx, ecx
mov edi, esi
call fcn.00403a94
lea esi, [ebp - 0x2d8]
call fcn.0045238b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c2215
leave
ret 4
Function at 0x45dcd2
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4c2e45
call fcn.004c2540
sub esp, 0x220
mov eax, dword [0x4e7384]
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], edi
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp eax, edi
jge 0x45dd22
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, edi
je 0x45dd1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x45de86
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push edi
push 0xb
add esi, 0x4c
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x220], edi
push 0x4cc164
lea edi, [ebp - 0x22c]
call fcn.00402e10
push 0x43
pop eax
mov byte [ebp - 4], 1
mov dword [ebp + 8], eax
mov dword [ebp - 0x228], eax
lea ebx, [ebp - 0x22c]
call fcn.004032ec
mov edi, dword [ebp - 0x22c]
mov ax, word [ebp + 8]
push edi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x45de26
mov eax, dword [ebp - 0x21c]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x224]
push edx
push ebx
push edi
push ebx
push ebx
mov dword [ebp - 0x224], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x45de26
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
call fcn.0049058c
push ebx
push dword [ebp - 0x224]
xor ecx, ecx
inc ecx
call fcn.004905f0
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push esi
call fcn.00405da0
push dword [ebp - 0x228]
inc dword [ebp - 0x220]
push eax
push esi
call fcn.0041cf83
push dword [ebp - 0x224]
call dword [0x4eaf48]
mov edi, dword [ebp - 0x22c]
inc dword [ebp + 8]
inc dword [ebp - 0x228]
cmp word [ebp + 8], 0x5a
jbe 0x45dd5c
push 0xfffffffffffffffe
xor ebx, ebx
push ebx
push esi
call fcn.0041488b
push ebx
push 1
push 0xb
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push esi
call fcn.004148db
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x45de6a
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
pop esi
cmp eax, ebx
pop ebx
je 0x45de80
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
call fcn.004c2215
leave
ret 4
Function at 0x45e315
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x4e7384]
push ebx
push ebp
mov ebp, dword [esp + 0x2c4]
push esi
push edi
push 0x428
push dword [ebp + 4]
mov dword [esp + 0x2cc], eax
lea esi, [ebp + 0x4c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x4020
push 0
push 0x1036
push eax
mov dword [esi], eax
call ebx
mov edi, dword [esi]
call fcn.0049c1fe
push 0x4001
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
mov edi, 0x4cc340
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 1
push 0x1003
push dword [esi]
call ebx
or ebx, 0xffffffff
push ebx
push 0
push edi
push 0
push esi
xor esi, esi
mov edx, 0x12c
call fcn.00405d2b
push ebp
call fcn.0045dcd2
mov ecx, dword [esp + 0x2c4]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
call fcn.004c2215
add esp, 0x2b8
ret 4
Function at 0x461b5d
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4c3255
call fcn.004c2540
sub esp, 0x2c0
mov eax, dword [0x4e7384]
push ebx
mov dword [ebp - 0x10], eax
push edi
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebx, eax
jmp 0x461baf
mov edi, dword [esi + 0x90]
test edi, edi
je 0x461b9e
lea eax, [ebx + 0x7f58]
push eax
call fcn.0046a868
push 0x400
push ebx
push dword [ebp + 8]
call fcn.00430fe2
add esp, 0xc
dec ebx
cmp ebx, 2
jge 0x461b88
lea ecx, [esi + 0x234]
or eax, 0xffffffff
xor edi, edi
call fcn.0046ce56
push 0x4001
mov ebx, 0x2b4
push ebx
lea eax, [ebp - 0x2c4]
push eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4cc340
call edi
cmp dword [esi + 0x90], 0
mov dword [ebp - 0x2cc], eax
je 0x461c7d
lea eax, [ebp - 0x2c8]
push eax
call fcn.0049be6f
mov dword [esp], 0x4001
push ebx
lea ecx, [ebp - 0x2c4]
push ecx
push 0
push dword [eax]
call edi
mov eax, dword [ebp - 0x2c8]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x461c30
push eax
call fcn.004013aa
push 0
push dword [ebp - 0x2c0]
push dword [ebp - 0x2cc]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
test eax, eax
mov dword [ebp - 0x2c8], eax
je 0x461c7d
mov edi, dword [esi + 0x90]
mov ebx, 0x7f58
push ebx
call fcn.0046a868
mov eax, dword [esi + 0x90]
push ebx
push dword [ebp - 0x2c8]
call fcn.00447098
push dword [ebp - 0x2c8]
call dword [sym.imp.USER32.dll_DestroyIcon]
push dword [ebp - 0x2cc]
mov ecx, esi
push 0x60
push 9
push 0x7f59
push dword [ebp + 8]
call fcn.00461cdf
push 0
push 0
push 0x800
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.USER32.dll_AppendMenuW]
push dword [ebp - 0x2cc]
lea eax, [edi + 0x7f59]
push 0x20
push 0x11
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00461cdf
mov ecx, dword [ebp - 0xc]
add eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c2215
leave
ret 4