joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c3e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4033b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4027a8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00406350
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00406304
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x41c595
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x41c4b6
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.0040642c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x41c595
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x4054d0
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004063b0
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x41c595
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x41c533
mov dword [ebp - 0x8c], 0
jmp 0x41c53f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x41c576
mov dword [ebp - 0x90], 0
jmp 0x41c582
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x41c484
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405fa8
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x41c5bd
jmp 0x41c5bc
ret
Function at 0x4cf1010
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4cf7050]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x25
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x4cf10ca
mov eax, dword [ebp - 0x88]
cmp eax, 1
je 0x4cf10ca
test eax, eax
je 0x4cf10ca
lea ecx, [ebp - 0x9c]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4cf10ca
lea edx, [ebp - 0xa8]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4cf10ca
mov ecx, dword [ebp - 0x9c]
push 0
push 0
push 0
lea eax, [ebp - 0xac]
push eax
push 0
push ecx
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa0], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4cf10ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret

Function at 0x4cf1160
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4cf7050]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc]
push eax
push str.SQLSERVER2000DUMP__d
lea ecx, [ebp - 0x10c]
push 0x104
push ecx
mov dword [ebp - 0x110], 1
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x10
lea edx, [ebp - 0x10c]
push edx
push 0
push 4
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x4cf11e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10c]
push eax
push str.Could_not_open_file_mapping_object__s___d_._n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret
push 0x2c
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x4cf1212
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_map_view_of_file___d_._n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
xor esi, esi
jmp 0x4cf1230
push edi
lea edi, [esi + 0x6e0]
mov esi, eax
mov ecx, 0xb
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x110]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret
Function at 0x4cf1b20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x4cf7050]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x230]
test eax, eax
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x80c], 0
jne 0x4cf1c0e
mov eax, dword [0x4cf704c]
push eax
push str.SOFTWAREMicrosoftMicrosoft_SQL_Server_
push str._ls_ls
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x14
lea edx, [ebp - 0x810]
push edx
push 1
mov word [ebp + eax*2 - 0x808], 0
push 0
lea eax, [ebp - 0x808]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cf1c0e
lea ecx, [ebp - 0x80c]
push ecx
mov ecx, dword [ebp - 0x810]
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x818]
push eax
push 0
push str.DumpOverrideFlags
push ecx
mov dword [ebp - 0x80c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4cf1c01
cmp dword [ebp - 0x818], 4
jne 0x4cf1c01
cmp dword [ebp - 0x80c], 4
jne 0x4cf1c01
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x4cf1c01
mov dword [esi + 0x230], eax
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret

Function at 0x4cf1c80
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x4cf7050]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 4], eax
mov ebx, ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
lea edi, [esi + eax*2]
add esp, 4
cmp esi, edi
jae 0x4cf1da4
xor ecx, ecx
cmp esi, edi
jae 0x4cf1cdd
mov ax, word [esi]
cmp ax, 0xa
mov word [ebp + ecx*2 - 0x108], ax
jne 0x4cf1cd1
mov word [ebp + ecx*2 - 0x108], 0x20
inc ecx
add esi, 2
cmp ecx, 0x80
jl 0x4cf1cb2
mov eax, dword [ebx + 0x10c]
cmp eax, 0xffffffff
je 0x4cf1d06
push 0
lea edx, [ebp - 0x90c]
push edx
add ecx, ecx
push ecx
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cf1d1b
cmp esi, edi
jb 0x4cf1cb0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4cf7064]
or eax, 0x20000080
mov dword [ebx + 0x10c], 0xffffffff
mov dword [0x4cf7064], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
lea ecx, [ebp - 0x908]
push ecx
push 0x400
mov esi, eax
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4cf1d95
lea edx, [ebp - 0x908]
push edx
push esi
push str.Write_manifest_file_failed_0x_x____ls_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret 4
push esi
push str.Write_manifest_file_failed_Error_Code_0x_x_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret 4
Function at 0x4cf1fc0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4cf7050]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
cmp dword [esi + 0x10c], 0xffffffff
je 0x4cf209b
mov ecx, dword [0x4cf7028]
push 0
lea eax, [ebp - 0x808]
push eax
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
mov edx, dword [0x4cf7028]
add esp, 4
shl eax, 1
push eax
mov eax, dword [esi + 0x10c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4cf209b
mov ecx, dword [esi + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0xffffffff
or dword [0x4cf7064], 0x20000080
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
lea edx, [ebp - 0x804]
push edx
push 0x400
mov esi, eax
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4cf208c
lea eax, [ebp - 0x804]
push eax
push esi
push str.Write_manifest_file_failed_0x_x____ls_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret
push esi
push str.Write_manifest_file_failed_Error_Code_0x_x_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov ecx, dword [ebp - 4]
pop esi
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret
Function at 0x4cf2d60
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf59d0
push 0x4cf4466
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [0x4cf7050]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x160], 0xffffffff
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp eax, 0xffffffff
je 0x4cf2e16
lea esi, [ebp - 0x15c]
mov edi, ebx
mov ecx, 0x50
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4cf2e01
push ebx
lea ecx, [ebp - 0x15c]
push ecx
call fcn.04cf2470
add esp, 8
test eax, eax
jle 0x4cf2dd3
jmp 0x4cf2dc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4cf2e16
mov dword [ebp - 0x164], 1
mov dword [ebp - 4], 0xffffffff
call fcn.04cf2e41
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.04cf43f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cf3730
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4cf7050]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [ebp - 0x808], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x80c], 0
je 0x4cf37a2
test eax, eax
je 0x4cf37a2
mov ecx, dword [str..mft]
lea edi, [esi + 4]
push edi
push ecx
push eax
call fcn.04cf23d0
add esp, 0xc
test eax, eax
je 0x4cf37a2
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
push edi
call ebx
mov dword [esi + 0x10c], eax
cmp dword [esi + 0x10c], 0xffffffff
jne 0x4cf37e4
mov edx, dword [str..mft]
mov eax, dword [ebp - 0x808]
lea edi, [esi + 4]
push edi
push edx
push eax
call fcn.04cf31c0
add esp, 0xc
test eax, eax
je 0x4cf37e4
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edi
call ebx
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0x10c]
cmp eax, 0xffffffff
je 0x4cf386d
push 0
lea ecx, [ebp - 0x80c]
push ecx
push 2
lea edx, [ebp - 0x808]
push edx
push eax
mov dword [ebp - 0x808], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
jne 0x4cf38dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0x400
mov esi, eax
lea eax, [ebp - 0x804]
push eax
push 0x400
push esi
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4cf385c
lea ecx, [ebp - 0x804]
push ecx
push esi
push str.Write_manifest_file_failed_0x_x____ls_n
call dword [sym.imp.MSVCR71.dll_printf]
jmp 0x4cf38cf
push esi
push str.Write_manifest_file_failed_Error_Code_0x_x_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
jmp 0x4cf38d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
lea edx, [ebp - 0x804]
push edx
push 0x400
mov edi, eax
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
add esi, 4
test eax, eax
je 0x4cf38bc
lea eax, [ebp - 0x804]
push eax
push edi
push esi
push str.Create_manifest_file__s_failed_0x_x____ls_n
call dword [sym.imp.MSVCR71.dll_printf]
mov edi, dword [ebp - 0x80c]
add esp, 0x10
jmp 0x4cf38d2
push edi
push esi
push str.Create_manifest_file__s_failed_Error_Code_0x_x_n
call dword [sym.imp.MSVCR71.dll_printf]
mov edi, dword [ebp - 0x80c]
add esp, 0xc
or dword [0x4cf7064], 0x20000004
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cf3f90
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x4cf7050]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x288]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [esi], 4
mov dword [ebp - 0xc28], 0x4cf3590
mov dword [ebp - 0xc24], esi
je 0x4cf4013
mov ecx, dword [esi + 0x280]
cmp ecx, ebx
je 0x4cf4013
mov dword [ebp - 0xc2c], eax
lea eax, [ebp - 0xc3c]
mov dword [ebp - 0xc20], eax
mov eax, dword [esi + 0x260]
cmp eax, ebx
mov dword [ebp - 0xc30], ecx
jne 0x4cf3ff9
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0xc30]
mov dword [ebp - 0xc3c], eax
mov dword [ebp - 0xc38], ecx
mov dword [ebp - 0xc34], ebx
jmp 0x4cf4019
mov dword [ebp - 0xc20], ebx
mov eax, dword [esi + 0x22c]
test al, 0x10
jne 0x4cf4047
test al, 8
je 0x4cf402e
mov edi, 0x40
jmp 0x4cf404c
xor edi, edi
test ah, 8
je 0x4cf404c
mov eax, dword [esi + 0x26c]
push eax
mov ecx, esi
call fcn.04cf26d0
test eax, eax
jne 0x4cf404c
mov edi, 6
lea edx, [ebp - 0x210]
push edx
push 0x104
or edi, 0x1160
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.dbghelp.dll
lea eax, [ebp - 0x210]
push eax
push str._s_s
lea ecx, [ebp - 0x41c]
push 0x104
push ecx
mov word [ebp - 8], bx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x14
lea edx, [ebp - 0x41c]
mov word [ebp - 0x214], bx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edx
call ebx
test eax, eax
jne 0x4cf40da
push str.Warning:_no_dbghelp.dll_in_the_current_directory._n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 4
push str.dbghelp.dll
call ebx
and edi, 0xffffefff
test eax, eax
jne 0x4cf40da
push str.No_dbghelp.dll_in_the_path__can_not_continue_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 4
jmp 0x4cf4198
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4cf40fd
push str.MiniDumpWriteDump_can_not_be_located_in_dbghelp.dll_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 4
jmp 0x4cf4198
mov ecx, dword [esi + 0x230]
test ecx, ecx
je 0x4cf4109
mov edi, ecx
mov edx, dword [ebp - 0xc20]
lea ecx, [ebp - 0xc28]
push ecx
mov ecx, dword [esi + 0x228]
push 0
push edx
mov edx, dword [esi + 0xc]
push edi
push ecx
mov ecx, dword [esi + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x4cf4144
pop edi
mov dword [esi], 5
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
lea edx, [ebp - 0xc1c]
push edx
push 0x400
mov esi, eax
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4cf4189
lea eax, [ebp - 0xc1c]
push eax
push esi
push str.MiniDumpWriteDump____Failed_0x_x____ls_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0xc
jmp 0x4cf4198
push esi
push str.MiniDumpWriteDump____Failed_Error_Code_0x_x_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov eax, dword [0x4cf7064]
mov ecx, dword [ebp - 4]
pop edi
or eax, 0x20000010
pop esi
mov dword [0x4cf7064], eax
pop ebx
call fcn.04cf43f4
mov esp, ebp
pop ebp
ret
Function at 0x4cf41c0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi]
xor eax, eax
cmp ecx, 3
mov dword [ebp - 4], eax
jne 0x4cf4259
test byte [esi + 0x22c], 2
jne 0x4cf4259
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4cf41f0
xor eax, eax
lea ecx, [ecx]
mov ecx, esi
mov dword [esi + 0x718], eax
mov dword [esi + 0x710], eax
mov dword [esi + 0x714], eax
mov dword [esi + 0x71c], eax
call fcn.04cf3f90
mov eax, dword [esi + 0x718]
test eax, eax
je 0x4cf4258
cmp dword [esi], 5
jne 0x4cf4258
mov eax, dword [esi + 0x228]
cmp eax, 0xffffffff
je 0x4cf4245
push eax
call edi
cmp dword [esi], 5
mov dword [esi + 0x228], 0xffffffff
jae 0x4cf4245
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
inc eax
push eax
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.04cf1830
test eax, eax
jne 0x4cf41eb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a590
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47161b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00464042
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a612
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00461ac0
mov eax, dword [eax]
push 0x49d200
push eax
call fcn.00454534
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004642cd
test bl, bl
je 0x40a612
push 0x49d200
lea ecx, [esp + 0xc]
call fcn.004646a9
push 0x4a0d7c
lea ecx, [esp + 0xc]
call fcn.004646a9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a64e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004642cd
jmp 0x40a719
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a6d2
lea edx, [esp + 0x7c]
push 0x4a0d78
push edx
call fcn.00454534
add esp, 8
test eax, eax
je 0x40a6d2
lea eax, [esp + 0x7c]
push 0x4a0d74
push eax
call fcn.00454534
add esp, 8
test eax, eax
je 0x40a6d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a662
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004642cd
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40af10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40af72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40af80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47169b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a7d08]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40b0b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40afe6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004642cd
xor eax, eax
jmp 0x40b12f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00464456
push esi
lea ecx, [esp + 0xc]
call fcn.004646e5
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4a0db4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b10d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040af10
test eax, eax
jne 0x40b10d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040af10
test eax, eax
jne 0x40b10d
lea eax, [esp + 0x14]
push 0x4a0d90
push eax
call fcn.00455610
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b0ec
lea ecx, [esp + 0x14]
push 0x4a0d8c
push ecx
call fcn.00455590
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b0ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b0ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00464406
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40affe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004642cd
xor eax, eax
jmp 0x40b12f
mov byte [esi], 0
push 0x4a0d88
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004642cd
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4