joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467e91
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push dword [esi + 0xc]
push str.fuzzyWnd__BringToTop___Enter__0x_x
call fcn.0046a346
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
je 0x467f6f
push ebx
mov ecx, esi
call fcn.00467c74
mov ecx, esi
call fcn.00468679
push 5
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
push 1
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [esi + 0xc]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
call esi
push 3
xor eax, eax
push eax
push eax
push eax
push eax
mov eax, dword [ebp - 4]
push 0xfffffffffffffffe
push dword [eax + 0xc]
call esi
mov esi, dword [ebp - 4]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push dword [ebp - 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
push str.fuzzyWnd__BringToTop___Leave
call fcn.0046a346
pop ecx
pop ebx
pop esi
leave
ret

Function at 0x468131
Capabilities:
Hide graphical window

Disassembly:
push esi
push ecx
mov esi, ecx
call fcn.004682e8
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x5c]
pop esi
test ecx, ecx
je 0x468169
call fcn.00462ced
test al, al
je 0x468169
push str.User_Cancel_FuzzyWindow_in_TFS_UrlProtocol_mode__Quit_process_itself
call fcn.0046a2ad
pop ecx
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
ret 0x10
Function at 0x4c8501
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x660c0c], 0x64
jbe 0x4c8528
mov eax, str.SaveLogFile_more_than_100_files_r_n
jmp 0x4c8661
push ebx
push esi
push str.SaveLogFile__Start_r_n
call fcn.004c86a7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x660018
pop ecx
push esi
call ebx
cmp eax, 0xa
ja 0x4c8555
push 0x104
push esi
call fcn.004c8780
pop ecx
pop ecx
push esi
call ebx
cmp eax, 0xa
jbe 0x4c865a
inc word [0x660c0c]
lea eax, [ebp - 0x402]
push edi
mov esi, str..wbt
lea edi, [ebp - 0x40c]
push 0x1f6
push 0
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0056dc10
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056dc10
add esp, 0x18
lea eax, [ebp - 0x20c]
mov esi, 0x660018
mov edi, 0x104
push esi
push edi
push eax
call fcn.004c8bb6
push esi
call ebx
mov esi, eax
lea eax, [ebp - 0x40c]
push eax
call ebx
movzx ecx, word [0x660c0c]
sub esi, eax
lea eax, [ebp - 0x40c]
sub edi, esi
push eax
push ecx
push str._d_s
lea eax, [ebp - 0x20c]
lea eax, [eax + esi*2]
push edi
push eax
call fcn.00458bd7
mov eax, dword [0x660764]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
test eax, eax
je 0x4c861e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
jne 0x4c861e
call esi
push eax
push str.SaveLogFile_FlushViewOfFile_Failed__lastError___u__r_n
call fcn.004c86a7
pop ecx
pop ecx
push str.SaveLogFile__FlushViewOfFile_r_n
call fcn.004c86a7
pop ecx
push 0
lea eax, [ebp - 0x20c]
mov ebx, 0x660018
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4c865a
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
push eax
push str.SaveLogFile_save_Failed__lastError___u__source_s__Dest_s_r_n
call fcn.004c86a7
add esp, 0x10
pop esi
mov eax, str.SaveLogFile__End_r_n
pop ebx
push eax
call fcn.004c86a7
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ac5f
leave
ret

Function at 0x4c86a7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.0045e08a
xor eax, eax
add esp, 0x14
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ac5f
leave
ret
Function at 0x4c8780
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x660764], 0
push edi
mov edi, dword [ebp + 8]
je 0x4c8910
test edi, edi
je 0x4c8910
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x4c890f
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4c890f
push ebx
push str.GetMappedFileNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4c890e
lea ecx, [esi - 1]
push ecx
push edi
push dword [0x660764]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4c890e
xor eax, eax
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81c]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4c890e
mov eax, dword [0x61ee68]
lea esi, [ebp - 0x81c]
movzx ecx, word [ebp - 0x81c]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov ax, word [0x61ee6c]
mov word [ebp - 8], ax
mov dword [ebp - 0x820], esi
push 0x104
lea eax, [ebp - 0x214]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4c88eb
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jae 0x4c88eb
push eax
lea esi, [edi + eax*2]
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.0057f1fe
add esp, 0xc
test eax, eax
jne 0x4c88a1
cmp word [esi], 0x5c
jne 0x4c88a1
xor ebx, ebx
inc ebx
jmp 0x4c88a3
xor ebx, ebx
test ebx, ebx
je 0x4c88e5
push esi
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00458bd7
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x105
push edi
call fcn.00464235
mov esi, dword [ebp - 0x820]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4c88eb
mov dword [ebp - 0x820], esi
test ebx, ebx
jne 0x4c890e
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x4c8848
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0056ac5f
leave
ret
Function at 0x4c8a91
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x4c8b1b
cmp dword [ebp + 0xc], 0
je 0x4c8b1b
cmp dword [ebp + 0x10], 0
je 0x4c8b1b
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4c8ae9
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c8b18
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop ebx
leave
ret
push 6
pop eax
leave
ret
Function at 0x4c9ad9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c9c13
cmp dword [0x660658], 2
je 0x4c9b0f
xor eax, eax
inc eax
jmp 0x4c9c15
mov ebx, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
push ecx
push ecx
push 0x17
push edi
mov dword [ebp - 0x2c], ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c9c13
push dword [ebp - 0x2c]
call fcn.0057c5fc
mov esi, eax
pop ecx
test esi, esi
je 0x4c9c13
push dword [ebp - 0x2c]
and dword [ebp - 0x30], 0
push 0
push esi
call fcn.0056dc10
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push esi
push 0x17
push edi
call ebx
test eax, eax
je 0x4c9c07
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x4c9c07
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
push ebx
push 0xa
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x4c9c01
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x38], 6
push ebx
push eax
call fcn.0056dc10
add esp, 0xc
mov dword [ebp - 0x10], 0x120116
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], 0x14
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
push dword [ebp - 0x34]
neg eax
sbb eax, eax
and dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
call fcn.0057647e
mov eax, dword [ebp - 0x30]
pop ecx
jmp 0x4c9c15
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret

Function at 0x4c9fbc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c9fd6
test al, 0x10
je 0x4c9fd6
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4ca1ca
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0056dc10
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004cae3f
add esp, 0x14
test eax, eax
je 0x4ca3f5
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x660220
call fcn.004c8bb6
push 0x4ca404
lea eax, [ebp - 0x20c]
push str.wbxtra_.wbt
push eax
call fcn.004caabf
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0056dc10
push str._02hu_02hu_04hu__02hu_02hu_02hu.wbt
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004cade7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x24
test edi, edi
je 0x4ca2c1
push edi
call ebx
test eax, eax
jle 0x4ca2c1
lea eax, [ebp - 0x61c]
push eax
push edi
push str.wbxtra
push str._s__s__s
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.004c9fda
push edi
push str.WBXTRA_TRACE_FILE_EX
push str._s__s
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call fcn.004c9fda
add esp, 0x2c
jmp 0x4ca2f9
lea eax, [ebp - 0x61c]
mov edi, 0x104
push eax
push str.wbxtra
push str._s__s
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004c9fda
push str.WBXTRA_TRACE_FILE_EX
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.004ca030
add esp, 0x20
push 0x660428
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jle 0x4ca39d
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0056dc10
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004ca030
add esp, 0x18
lea eax, [ebp - 0x414]
mov ebx, 0x660428
push ebx
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call fcn.004c9fbc
pop ecx
test eax, eax
jne 0x4ca380
lea eax, [ebp - 0x414]
push eax
push str.Create_new_folder___s_r_n
call fcn.004c86a7
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4ca38a
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push str.wbxtra_FolderName__file_name_is___s_r_n
call fcn.004c86a7
pop ecx
pop ecx
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ebx, dword [ebp - 0xa30]
lea eax, [ebp - 0x20c]
push esi
push esi
push 2
push ebx
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ca3f3
lea eax, [ebp - 0xa2c]
push eax
push dword [section..data]
push esi
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret
Function at 0x4ca419
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ca459
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
js 0x4ca458
cmp dword [ebp + 0x10], 0
jl 0x4ca458
push edi
xor edi, edi
test esi, esi
je 0x4ca457
push ebx
lea ebx, [eax + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x4ca44f
cmp dword [ebx], 0
je 0x4ca44f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add ebx, 0xc
cmp edi, esi
jb 0x4ca43c
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4ca998
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
imul edi, dword [ebp + 8], 0xc
mov eax, dword [edi + 0x65ffd8]
cmp eax, 0xffffffff
je 0x4ca9b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x65ffd8], 0xffffffff
mov eax, dword [edi + 0x65ffdc]
test eax, eax
je 0x4caa05
cmp dword [ebp + 0xc], 0
je 0x4ca9f7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [edi + 0x65ffdc]
push str.delete_dumpfile___s___ret___d__err___d_r_n
push 2
call fcn.004caa5d
mov eax, dword [edi + 0x65ffdc]
add esp, 0x14
pop esi
push eax
call fcn.0057647e
and dword [edi + 0x65ffdc], 0
pop ecx
and dword [edi + 0x65ffd4], 0
pop edi
pop ebp
ret

Function at 0x4caa5d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.0045e08a
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push dword [ebp + 8]
call fcn.004c8d5c
add esp, 0x24
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ac5f
leave
ret
Function at 0x4caabf
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x478], eax
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4caccb
test esi, esi
je 0x4caccb
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056dc10
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004ca030
add esp, 0x18
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x45c]
xor ebx, ebx
and dword [ebp - 0x464], ebx
xor esi, esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x460], esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x4cac90
xor edi, edi
mov dword [ebp - 0x46c], edi
mov edx, dword [ebp - 0x464]
cmp esi, edx
jb 0x4cabbe
push 8
lea eax, [edx + edx]
test edx, edx
pop ecx
cmovne ecx, eax
mov eax, ecx
mov dword [ebp - 0x464], eax
imul eax, eax, 0xc
push eax
call fcn.0057c5fc
mov dword [ebp - 0x474], eax
pop ecx
test eax, eax
je 0x4cac6f
test ebx, ebx
je 0x4cabbc
push edi
push ebx
push edi
push eax
call fcn.004cb657
push ebx
call fcn.0057647e
mov eax, dword [ebp - 0x474]
add esp, 0x14
mov ebx, eax
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + 1]
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5d19ac
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
add edi, eax
lea eax, [edi + edi]
push eax
call fcn.0057c5fc
mov esi, eax
pop ecx
test esi, esi
je 0x4cac69
push dword [ebp - 0x468]
push edi
push esi
call fcn.004ca030
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [ebp - 0x46c]
mov dword [edi + ebx + 8], esi
mov eax, dword [ebp - 0x448]
mov esi, dword [ebp - 0x460]
mov dword [edi + ebx], eax
inc esi
mov eax, dword [ebp - 0x444]
mov dword [edi + ebx + 4], eax
add edi, 0xc
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x460], esi
push eax
push dword [ebp - 0x470]
mov dword [ebp - 0x46c], edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4cab6b
jmp 0x4cac6f
mov esi, dword [ebp - 0x460]
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x4cac90
push 0x4ca191
push 0xc
push esi
push ebx
call fcn.0057f3f0
add esp, 0x10
mov eax, dword [ebp - 0x478]
test eax, eax
je 0x4caca0
push esi
push ebx
call eax
pop ecx
pop ecx
test esi, esi
je 0x4cacbf
lea edi, [ebx + 8]
cmp dword [edi], 0
je 0x4cacb4
push dword [edi]
call fcn.0057647e
pop ecx
and dword [edi], 0
add edi, 0xc
sub esi, 1
jne 0x4caca7
pop edi
test ebx, ebx
je 0x4caccb
push ebx
call fcn.0057647e
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret
Function at 0x4cae3f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call fcn.004c9ad9
pop ecx
test eax, eax
jne 0x4caf3c
cmp dword [0x660658], 2
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x4cae9f
cmp dword [0x66064c], 6
jb 0x4cae9f
push 0x5d1834
push esi
call ebx
push esi
call fcn.004c9ad9
pop ecx
test eax, eax
jne 0x4caf3c
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.shell32.dll
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x4caf3f
push edi
push str.SHGetSpecialFolderPathW
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4caf2b
push edi
push 0x20
push esi
push edi
call eax
test eax, eax
je 0x4caf2b
push esi
call fcn.004c9ad9
pop ecx
test eax, eax
je 0x4caf02
inc edi
jmp 0x4caf2b
cmp dword [0x660658], 2
jne 0x4caf2b
cmp dword [0x66064c], 6
jb 0x4caf2b
push 0x5d1834
push esi
call ebx
push esi
call fcn.004c9ad9
pop ecx
xor ecx, ecx
inc ecx
test eax, eax
cmovne edi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
jmp 0x4caf3f
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret

Function at 0x4cb093
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
cmp dword [eax + 0x10], 0x10000
je 0x4cb0e7
cmp dword [eax + 0x18], 0x20000
je 0x4cb0e7
mov edi, dword [eax + 4]
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4cb0e7
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4cb0e7
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4cb0e7
cmp dword [esi], 0x4550
cmove eax, esi
jmp 0x4cb0e9
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4cd53e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor ecx, ecx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4cd568
mov eax, dword [esi]
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x4cd5c4
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea eax, [ebx - 1]
push 0x20
push eax
call fcn.0041e94b
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0041cf57
lea ecx, [ebp - 0x18]
call fcn.00417a51
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4cd5b3
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4cd5bb
mov esi, dword [esi]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cdca4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov word [ebp - 8], 0x500
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
push ecx
push 8
mov ebx, ecx
mov dword [ebp - 0x14], ecx
mov esi, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4cdd21
call edi
cmp eax, 0x3f0
jne 0x4cdd0d
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4cdd21
call edi
push eax
push str.systemUtil__IsAdmin__failed_to_get_token_err_d
call fcn.004ce607
pop ecx
pop ecx
jmp 0x4cddd9
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4cdd42
call edi
push eax
push str.systemUtil__IsAdmin__GetTokenInformation_failed_err_d
jmp 0x4cdd15
push dword [ebp - 0x14]
call fcn.0056b24c
mov esi, eax
pop ecx
test esi, esi
jne 0x4cdd5b
push dword [ebp - 0x14]
push str.systemUtil__IsAdmin__out_of_memory__size_d
jmp 0x4cdd15
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4cdd7c
call edi
push eax
push str.systemUtil__IsAdmin__GetTokenInformation_failed__error_d
jmp 0x4cdd15
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4cddac
call edi
push eax
push str.systemUtil__IsAdmin__AllocateAndInitializeSid_failed__error_d
jmp 0x4cdd15
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1c], ebx
cmp dword [esi], ebx
jbe 0x4cddd9
lea ebx, [esi + 4]
push dword [ebp - 0x18]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4cddd6
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x4cddba
mov ebx, dword [ebp - 0x1c]
jmp 0x4cddd9
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x18], 0
je 0x4cddec
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
je 0x4cddff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
test esi, esi
je 0x4cde0a
push esi
call fcn.0056b239
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret