joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490eb0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
and ecx, 1
je 0x490f0c
push 0x208
push 0x2b4
push 0x5fc590
push 0
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004dfdf0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x490f0c
push 0x5fc59c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
and edx, 2
je 0x490f4a
push 0xc009
push 0x2b4
push 0x5fc590
push 0
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004dfdf0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x490f4a
mov eax, dword [ebp - 4]
mov ecx, dword [0x5fc594]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
and eax, 0x20
je 0x490f88
push 0x400b
push 0x2b4
push 0x5fc590
push 0
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004dfdf0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x490f88
mov ecx, dword [ebp - 4]
mov edx, dword [0x5fc594]
mov dword [ecx + 0x28], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x491390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 4]
add ecx, 4
call fcn.0046b190
mov ecx, eax
call fcn.004dfdf0
mov dword [ebp - 4], eax
push 0x20
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
add ecx, 4
call fcn.00492060
and eax, 0x20
mov dword [ebp - 8], eax
je 0x49143b
push 0x8001
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 4]
add ecx, 4
call fcn.0046b620
push 2
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 4]
add ecx, 4
call fcn.0046b620
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
add ecx, 4
call fcn.0046b5e0
mov ecx, eax
call fcn.004dfdf0
cmp dword [ebp - 4], eax
jne 0x49143b
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00491450
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x491450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570754
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x49148c
xor eax, eax
jmp 0x49152c
push 0
lea ecx, [ebp - 0x18]
call fcn.00468df0
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 8
call fcn.00469400
push eax
lea ecx, [ebp - 0x10]
call fcn.00468df0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00476080
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
push eax
lea ecx, [ebp - 0x18]
call fcn.004dfdf0
push eax
push 0
mov ecx, dword [ebp - 0x20]
add ecx, 8
call fcn.00469e20
movzx ecx, al
test ecx, ecx
je 0x491508
lea ecx, [ebp - 0x18]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004915f0
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00468e10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00468e10
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4918d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570785
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push esi
push edi
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0x7c]
call fcn.0045f300
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], 0
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], 0
push 0x3c
push 0
lea ecx, [ebp - 0x48]
push ecx
call fcn.0053c870
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x491970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00496090
jmp 0x491ac8
lea ecx, [ebp - 0x7c]
call fcn.00476080
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jge 0x491997
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00496090
jmp 0x491ac8
push 0x10
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x8c], 0
je 0x4919c7
mov ecx, dword [ebp - 0x8c]
call fcn.0046b2e0
mov dword [ebp - 0x9c], eax
jmp 0x4919d1
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x84], 0
jne 0x491a0a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00496090
jmp 0x491ac8
mov edx, dword [ebp - 0x80]
push edx
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.00468980
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x98]
add ecx, 8
call fcn.004694e0
push eax
mov ecx, dword [ebp - 0x84]
add ecx, 8
call fcn.00468980
mov dword [ebp - 0x78], 0x67
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x5c], 0xffffffff
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], 1
mov ecx, 0xa
lea esi, [ebp - 0x78]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x48], 0xffff0002
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 4]
add ecx, 4
call fcn.0046b0d0
mov ecx, eax
call fcn.004dfdf0
mov dword [ebp - 0x50], eax
push 2
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
add ecx, 4
call fcn.0046b620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00496090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x492a40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
je 0x492a6b
xor eax, eax
jmp 0x492b4b
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x20
push 0
lea edx, [ebp - 0x23c]
push edx
call fcn.0053c870
add esp, 0xc
mov dword [ebp - 0x22c], 9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x230], edx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x492b45
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x492b16
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
je 0x492b16
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [edx + 0x14]
call ecx
mov edx, dword [ebp - 0x218]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret

Function at 0x492d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570928
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00493bb0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CWTLFoldersFilesSelectDialog.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x488
call fcn.004381b0
mov ecx, dword [ebp - 0x10]
add ecx, 0x4a0
call fcn.00438030
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x68], 0xd1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x54]
or eax, 0x260
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0x4c
mov eax, dword [ebp - 0x10]
add eax, 0x4a4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 0x10]
add ecx, 0x4a4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x484], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x493770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
jne 0x4937a2
xor eax, eax
jmp 0x4937e0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.HideFileExt
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x10], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x493930
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570a04
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68c], ecx
mov eax, dword [ebp - 0x68c]
add eax, 0x6ac
push eax
lea ecx, [ebp - 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 0xc]
call fcn.004dfdf0
push eax
lea edx, [ebp - 0x46c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x584bf0
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x264], 0
push 0x24c
push 0
lea ecx, [ebp - 0x260]
push ecx
call fcn.0053c870
add esp, 0xc
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0xffffffff
jne 0x4939ec
xor eax, eax
jmp 0x493af3
mov dword [ebp - 0x10], 0
push 0x584bf8
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x493a1f
push 0x584bfc
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x493a24
jmp 0x493ac7
mov eax, dword [ebp - 0x68c]
add eax, 0x6ac
push eax
lea ecx, [ebp - 0x684]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x684]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x478]
call fcn.00468eb0
mov dword [ebp - 4], 0
push 0x4003
lea ecx, [ebp - 0x684]
push ecx
lea ecx, [ebp - 0x478]
call fcn.00468f60
mov dword [ebp - 0x688], eax
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0x688]
jne 0x493ab5
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0041a580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00468ee0
jmp 0x493ae3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00468ee0
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4939f3
mov eax, dword [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 8

Function at 0x493ea0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0053c870
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x493f20
cmp dword [ebp - 0x11c], 5
jae 0x493f14
cmp dword [ebp - 0x11c], 4
jne 0x493f20
cmp dword [ebp - 0x118], 0x5a
jb 0x493f20
mov dword [ebp - 0x128], 0
jmp 0x493f2a
mov dword [ebp - 0x128], 1
mov al, byte [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret
Function at 0x4945d0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4945f7
cmp dword [ebp + 8], 0
jne 0x4945fc
jmp 0x494773
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.0053c870
add esp, 0xc
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.0053c870
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x584c18
lea edx, [ebp - 0x210]
push edx
push 0x584c20
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x668], 0
push 0x24c
push 0
lea ecx, [ebp - 0x664]
push ecx
call fcn.0053c870
add esp, 0xc
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4946bb
jmp 0x494773
push 0x584c2c
lea ecx, [ebp - 0x63c]
push ecx
call fcn.0053eb57
add esp, 8
test eax, eax
je 0x4946eb
push 0x584c30
lea edx, [ebp - 0x63c]
push edx
call fcn.0053eb57
add esp, 8
test eax, eax
jne 0x4946ed
jmp 0x494746
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0x584c38
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, dword [ebp - 0x668]
and eax, 0x10
je 0x494739
lea ecx, [ebp - 0x418]
push ecx
call fcn.004945d0
add esp, 4
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x494746
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x668]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4946bb
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret
Function at 0x494810
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x584c44
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 4], 0
mov dword [ebp - 0x670], 0
push 0x24c
push 0
lea edx, [ebp - 0x66c]
push edx
call fcn.0053c870
add esp, 0xc
lea eax, [ebp - 0x670]
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4948aa
xor eax, eax
jmp 0x49497d
push 0x584c4c
lea edx, [ebp - 0x644]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4948d6
push 0x584c50
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4948d8
jmp 0x494957
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x878]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x878]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x670]
push ecx
call dword [ebp + 0xc]
mov dword [ebp - 0x87c], eax
cmp dword [ebp - 0x87c], 0
jne 0x494926
jmp 0x494970
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x670]
and eax, 0x10
je 0x494957
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x878]
push eax
call fcn.00494810
add esp, 0xc
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x670]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4948aa
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret
Function at 0x495500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp + 8]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041a130
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00438030
mov byte [ebp - 4], 1
push 0x117
lea ecx, [ebp - 0x10]
call fcn.0041a8c0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x28]
call fcn.00438030
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
push eax
push str._s___d___s
lea ecx, [ebp - 0x28]
push ecx
call fcn.004386c0
add esp, 0x14
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x28]
call fcn.004dfdf0
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4955eb
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0044fc20
jmp 0x4955fc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0044fc20
jmp 0x495577
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0044fc20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044fc20
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4959a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 8], 0x584cbc
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x495a07
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
jmp 0x495a86
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 4], 0
jne 0x495a3b
push str..sfx.exe
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x495a54
mov eax, dword [ebp - 4]
push eax
push str.___d_.exe
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x495a78
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x495a83
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x495a0e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret

Function at 0x499430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0053ec8f
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x499472
cmp dword [0x5fc8f0], 0
je 0x499472
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x499710
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x499731
xor eax, eax
jmp 0x49978e
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x499774
xor eax, eax
jmp 0x49978e
push 0x80020003
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x499789
xor eax, eax
jmp 0x49978e
mov eax, 1
mov esp, ebp
pop ebp
ret