joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44162c
Capabilities:
Create process on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x8000080
push 2
push edi
push edi
push 0x40000000
mov esi, str.C:DelUS.bat
push esi
call dword [sym.imp.___total_physical_size__lu_MB_CreateFileA]
mov dword [ebp - 0x4f4], eax
cmp eax, 0xffffffff
je 0x441756
push esi
push ebx
push ebx
lea eax, [ebp - 0x4f0]
push str._echo_off_r_ncd__r_n:Repeat_r_ndel___s___nul_2_nul_r_nif_exist___s__goto_Repeat_r_ndel___s__2_nul__goto_:EOF_n
push eax
call dword [sym.imp.e_to_open__s_wsprintfA]
add esp, 0x14
push edi
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x4f0]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_lstrlenA]
push eax
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4f4]
call dword [sym.imp.___total_physical_size__lu_MB_WriteFile]
push dword [ebp - 0x4f4]
mov ebx, dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
call ebx
push 0x44
lea eax, [ebp - 0x54c]
push edi
push eax
call fcn.00450230
xor eax, eax
push esi
mov word [ebp - 0x51c], ax
lea eax, [ebp - 0x108]
push str._s__nul_2_nul
push eax
mov dword [ebp - 0x54c], 0x44
mov dword [ebp - 0x520], 1
call fcn.00450c76
add esp, 0x18
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x54c]
push eax
push 0x469ef8
push edi
push 0x24
push edi
push edi
push edi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.___total_physical_size__lu_MB_CreateProcessA]
test eax, eax
je 0x441756
push 0xffffffffffffffff
push dword [ebp - 0x500]
call dword [sym.imp.___total_physical_size__lu_MB_SetThreadPriority]
push dword [ebp - 0x504]
call ebx
push dword [ebp - 0x500]
call dword [sym.imp.___total_physical_size__lu_MB_ResumeThread]
push dword [ebp - 0x500]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4

Function at 0x44183e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100
push dword [ebp + 8]
mov ebx, 0x4d4e08
push ebx
call fcn.00451260
push 0x2e
push ebx
call fcn.00452730
add esp, 0x14
mov esi, str..exe
test eax, eax
je 0x441878
push esi
push eax
call fcn.00450597
pop ecx
pop ecx
test eax, eax
je 0x441885
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x44187b
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0
push 0x8000
push ebx
mov byte [0x4d4f1a], 0
mov byte [0x4d4f19], 0
call fcn.00457bc4
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x4418ae
xor eax, eax
inc eax
jmp 0x4418ee
push edi
call fcn.004411c4
test eax, eax
jle 0x4418df
push 0
push eax
push edi
call fcn.004571bf
add esp, 0xc
cmp eax, 0xffffffff
je 0x4418a9
mov esi, 0x1e7
push esi
push dword [ebp + 0xc]
push edi
call fcn.00457054
add esp, 0xc
cmp eax, esi
jne 0x4418a9
push edi
call fcn.00457b00
pop ecx
push dword [ebp + 0xc]
call fcn.00441767
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4418f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x4419ea
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0x4d4e08
call fcn.00451211
add esp, 0x14
cmp byte [ebp - 0x44c], 0
lea eax, [ebp - 0x104]
mov edi, 0x104
mov esi, 0x4d4f20
push eax
jne 0x44196d
push str._sLIC_.txt
push edi
push esi
call fcn.00450d91
add esp, 0x10
jmp 0x441983
lea eax, [ebp - 0x44c]
push eax
push str._s_sLIC_.txt
push edi
push esi
call fcn.00450d91
add esp, 0x14
lea eax, [ebp - 0x444]
push eax
push esi
call dword [sym.imp.___total_physical_size__lu_MB_FindFirstFileA]
mov dword [ebp - 0x450], eax
cmp eax, 0xffffffff
je 0x441a2f
cmp byte [ebp - 0x44c], 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x104]
push eax
jne 0x4419c8
push 0x4696e0
push edi
push esi
call fcn.00450d91
add esp, 0x14
jmp 0x4419de
lea eax, [ebp - 0x44c]
push eax
push str._s_s_s
push edi
push esi
call fcn.00450d91
add esp, 0x18
push dword [ebp - 0x450]
call dword [sym.imp.___total_physical_size__lu_MB_FindClose]
push 0
push 0x8000
push esi
call fcn.00457bc4
add esp, 0xc
mov dword [ebp - 0x450], eax
test eax, eax
js 0x441a2f
push 0x64
call dword [sym.imp.___total_physical_size__lu_MB_Sleep]
and dword [ebp - 0x454], 0
mov eax, dword [ebp - 0x454]
xor edi, edi
xor esi, esi
sub eax, edi
je 0x441a41
dec eax
je 0x441a3c
dec eax
je 0x441a37
dec eax
jne 0x441a47
lea esi, [ebx + 0x63]
jmp 0x441a44
xor eax, eax
inc eax
jmp 0x441af5
lea esi, [ebx + 0x43]
jmp 0x441a44
lea esi, [ebx + 0x23]
jmp 0x441a44
lea esi, [ebx + 3]
push 0x20
pop edi
push edi
push 0
push esi
call fcn.00450230
and dword [ebp - 0x44c], 0
push 1
lea eax, [ebp - 0x445]
push eax
push dword [ebp - 0x450]
call fcn.00457054
add esp, 0x18
jmp 0x441aba
mov al, byte [ebp - 0x445]
cmp al, 0xa
je 0x441abf
lea ecx, [edi - 1]
cmp dword [ebp - 0x44c], ecx
jge 0x441aa3
cmp al, 0x20
jb 0x441aa3
jne 0x441a94
cmp dword [ebp - 0x44c], 0
je 0x441aa3
mov ecx, dword [ebp - 0x44c]
inc dword [ebp - 0x44c]
mov byte [ecx + esi], al
push 1
lea eax, [ebp - 0x445]
push eax
push dword [ebp - 0x450]
call fcn.00457054
add esp, 0xc
cmp eax, 1
je 0x441a70
inc dword [ebp - 0x454]
cmp dword [ebp - 0x454], 4
jl 0x441a13
push dword [ebp - 0x450]
call fcn.00457b00
pop ecx
push 0x64
call dword [sym.imp.___total_physical_size__lu_MB_Sleep]
mov eax, 0x1e7
push ebx
mov word [ebx + 1], ax
call fcn.00441767
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 8
Function at 0x441b06
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.004430cb
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.___total_physical_size__lu_MB_GetModuleHandleA]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetModuleFileNameA]
lea eax, [ebp - 0x20c]
push eax
mov ebx, str._s.new
push ebx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00450d91
add esp, 0x10
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_CopyFileA]
test eax, eax
lea eax, [ebp - 0x108]
jne 0x441ba9
push eax
push str.error_while_copying_file__s
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x338
push str.SERNUM
call fcn.0044dc85
add esp, 0x14
call fcn.004430e1
xor eax, eax
inc eax
jmp 0x441c8d
push 0
push 0x8002
push eax
call fcn.00457bc4
add esp, 0xc
mov dword [ebp - 0x210], eax
test eax, eax
js 0x441b9c
push 0x1e7
push edi
push eax
call fcn.004415df
test eax, eax
jne 0x441c4d
push dword [ebp - 0x210]
call fcn.00457b00
lea eax, [ebp - 0x20c]
push eax
push str._s.old
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00450d91
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_DeleteFileA]
mov edi, dword [sym.imp.___total_physical_size__lu_MB_MoveFileExA]
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00450d91
add esp, 0x10
push 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
jne 0x441c5e
push dword [ebp - 0x210]
call fcn.00457b00
pop ecx
jmp 0x441b9c
lea eax, [ebp - 0x20c]
push eax
push str._s.old
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00450d91
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call fcn.0044162c
call fcn.004430e1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4

Function at 0x441d8a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x507]
push 0
push eax
mov byte [ebp - 0x508], 0
call fcn.00450230
add esp, 0xc
call fcn.004430cb
push 0
lea eax, [ebp - 0x108]
push eax
push 0x104
push esi
call dword [sym.imp.___total_physical_size__lu_MB_GetFullPathNameA]
lea eax, [ebp - 0x108]
push 0x469650
push eax
call fcn.00450b1b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x441e0d
lea eax, [ebp - 0x108]
push eax
push str.Cant_open_License_file__s_n
call fcn.00450f5c
pop ecx
pop ecx
call fcn.004430e1
xor eax, eax
jmp 0x441e40
push esi
push 0x400
lea eax, [ebp - 0x508]
push 1
push eax
call fcn.004508e6
push esi
call fcn.00450317
add esp, 0x14
call fcn.004430e1
lea eax, [ebp - 0x508]
push eax
call fcn.00441c9e
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00450b32
leave
ret 4
Function at 0x441e4f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x18], eax
jne 0x441ec3
push ebx
push edi
mov edi, dword [ebp + 8]
imul edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
lea ebx, [edi + 4]
push ebx
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.___total_physical_size__lu_MB_CreateFileMappingA]
mov dword [ebp - 4], eax
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
xor eax, eax
mov dword [esi + 0x24], ecx
cmp dword [ebp - 4], eax
je 0x441ebf
cmp dword [ebp - 4], 0xffffffff
je 0x441ebf
push eax
push eax
push eax
push 0xf001f
push dword [ebp - 4]
call dword [sym.imp.___total_physical_size__lu_MB_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
jne 0x441ec8
push dword [ebp - 4]
call dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 0x10
push str.SNAPSHOT_IPC_MUTEX
push 0
push 0
call dword [sym.imp.___total_physical_size__lu_MB_CreateMutexA]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
jne 0x441eeb
push dword [ebp - 8]
call dword [sym.imp.___total_physical_size__lu_MB_UnmapViewOfFile]
jmp 0x441eb6
push dword [ebp + 0x14]
push ecx
push ecx
push ecx
call dword [sym.imp.___total_physical_size__lu_MB_CreateEventA]
test eax, eax
je 0x441ebf
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
push ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], edx
mov dword [esi + 4], eax
call dword [sym.imp.___total_physical_size__lu_MB_ReleaseMutex]
xor eax, eax
inc eax
jmp 0x441ec1
Function at 0x443f0e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [esi + 0xf]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, word [esi + 6]
push eax
movzx eax, word [esi + 4]
push eax
push dword [esi]
lea eax, [ebp - 0x104]
push str.Outstanding_VSS__.8x__.4x__.4x__.2x_.2x__.2x_.2x_.2x_.2x_.2x_.2x
push eax
call fcn.00450c76
add esp, 0x34
lea eax, [ebp - 0x108]
push eax
push str.SoftwareSnapShot
push Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegCreateKeyA]
push 0x10
push esi
push 3
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.ical_size__lu_MB_RegSetValueExA]
push dword [ebp - 0x108]
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00450b32
leave
ret 4

Function at 0x443fb9
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xf]
push ecx
movzx ecx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push ecx
movzx ecx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push ecx
movzx ecx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push ecx
movzx ecx, byte [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push ecx
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea eax, [ebp - 0x104]
push str.Outstanding_VSS__.8x__.4x__.4x__.2x_.2x__.2x_.2x_.2x_.2x_.2x_.2x
push eax
call fcn.00450c76
add esp, 0x34
lea eax, [ebp - 0x108]
push eax
push str.SoftwareSnapShot
push Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegCreateKeyA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.ical_size__lu_MB_RegDeleteValueA]
push dword [ebp - 0x108]
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450b32
leave
ret 4

Function at 0x44407c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x3f0]
push eax
push str.CLSIDF2C2787D_95AB_40D4_942D_298F5F757874InProcServer32
xor esi, esi
push Ordinal_2
inc esi
mov dword [ebp - 0x3f4], 0x3e8
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyA]
test eax, eax
jne 0x4440f1
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x3ec]
push eax
push 0x469fcc
push dword [ebp - 0x3f0]
call dword [sym.imp.ical_size__lu_MB_RegQueryValueA]
test eax, eax
jne 0x4440e5
cmp dword [ebp - 0x3f4], eax
jle 0x4440e5
xor esi, esi
push dword [ebp - 0x3f0]
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00450b32
leave
ret
Function at 0x444100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xdc], 0
push ebx
push esi
push edi
mov ebx, str.F2C2787D_95AB_40D4_942D_298F5F757874
push ebx
lea eax, [ebp - 0xcc]
push str.CLSID_s
push eax
call fcn.00450c76
mov esi, dword [sym.imp.ical_size__lu_MB_RegOpenKeyA]
add esp, 0xc
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xcc]
push eax
mov edi, Ordinal_2
push edi
call esi
test eax, eax
je 0x44421f
lea eax, [ebp - 0xd0]
push eax
push str.CLSID
push edi
call esi
mov esi, dword [sym.imp.ical_size__lu_MB_RegCloseKey]
test eax, eax
jne 0x444211
mov edi, dword [sym.imp.ical_size__lu_MB_RegCreateKeyA]
lea eax, [ebp - 0xd4]
push eax
push ebx
push dword [ebp - 0xd0]
call edi
test eax, eax
jne 0x444211
lea eax, [ebp - 0xd8]
push eax
push str.F2C2787D_95AB_40D4_942D_298F5F757874InProcServer32
push dword [ebp - 0xd0]
call edi
test eax, eax
je 0x4441b4
push dword [ebp - 0xd4]
call esi
jmp 0x444211
mov edi, dword [sym.imp.ical_size__lu_MB_RegSetValueA]
push 0x10
push str.PSFactoryBuffer
push 1
xor ebx, ebx
push ebx
push dword [ebp - 0xd4]
call edi
push 0x21
push str._systemroot_SysWOW64_vss_ps.dll
push 2
push ebx
push ebx
push dword [ebp - 0xd8]
call dword [sym.imp.ical_size__lu_MB_RegSetValueExA]
push 5
push str.Both
inc ebx
push ebx
push str.ThreadingModel
push dword [ebp - 0xd8]
call edi
push dword [ebp - 0xd8]
call esi
push dword [ebp - 0xd4]
call esi
mov dword [ebp - 0xdc], ebx
push dword [ebp - 0xd0]
call esi
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret

Function at 0x44422e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push str.SYSTEMCurrentControlSetServicesNTDSParameters
push reloc.lu_heads___lu_sectors___lu_byte_Ordinal_2
xor esi, esi
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyA]
test eax, eax
je 0x444251
xor eax, eax
jmp 0x444271
push str.Database_restored_from_backup
push dword [ebp - 4]
call dword [sym.imp.ical_size__lu_MB_RegDeleteValueA]
test eax, eax
jne 0x444266
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x444274
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push str.SYSTEMCurrentControlSetServicesNTDSParameters
push reloc.lu_heads___lu_sectors___lu_byte_Ordinal_2
xor edi, edi
mov dword [ebp - 8], 1
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyA]
test eax, eax
je 0x44429f
xor eax, eax
jmp 0x4442ea
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
push str.Database_restored_from_backup
push dword [ebp - 4]
call dword [sym.imp.ical_size__lu_MB_RegSetValueExA]
test eax, eax
jne 0x4442bd
xor edi, edi
inc edi
push 0x4d5338
push 0x479484
push str.advapi32.dll
call fcn.0042f670
cmp eax, 1
jne 0x4442df
push dword [ebp - 4]
call dword [0x4d5338]
push dword [ebp - 4]
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x4442ed
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea ecx, [ebp - 0x320]
push ecx
mov dword [ebp - 0x324], eax
mov eax, dword [esi]
xor ebx, ebx
push esi
mov byte [ebp - 0x311], bl
mov dword [ebp - 0x318], ebx
call dword [eax + 0xc]
cmp eax, ebx
jge 0x444359
push eax
push str.fileDesc__GetPath_Path_
push str._s_failed_with_errorcode_0x_x_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x28e
push str.VSS_UTIL
call fcn.0044dc85
add esp, 0x18
jmp 0x444488
mov eax, dword [esi]
lea ecx, [ebp - 0x311]
push ecx
push esi
call dword [eax + 0x14]
cmp eax, ebx
jge 0x444383
push eax
push str.fileDesc__GetRecursive_bRecursive_
push str._s_failed_with_errorcode_0x_x_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x28f
jmp 0x444347
push 0x104
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x320]
call dword [sym.imp.___total_physical_size__lu_MB_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x310]
push eax
call fcn.00443bd9
push dword [ebp - 0x320]
call dword [sym.imp.lu_heads___lu_sectors___lu_byte_Ordinal_6]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push 0x4794d4
push eax
call dword [sym.imp.e_to_open__s_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
mov ecx, edi
call fcn.00443c36
mov dword [ebp - 0x328], eax
lea eax, [edi + 0xa578]
cmp dword [eax], ebx
je 0x444488
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x31c], eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x328]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x444422
cmp dl, bl
je 0x44441e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x444422
add ecx, 2
add eax, 2
cmp dl, bl
jne 0x444402
xor eax, eax
jmp 0x444427
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x444468
push str.Exchange
push dword [ebp - 0x324]
mov dword [ebp - 0x318], 1
call fcn.00455bb2
pop ecx
pop ecx
test eax, eax
jne 0x444461
push str.NTDS
push dword [ebp - 0x324]
call fcn.00455bb2
pop ecx
pop ecx
test eax, eax
je 0x444468
mov dword [edi + 0x34], 1
add dword [ebp - 0x31c], 4
mov eax, dword [ebp - 0x31c]
add esi, 4
cmp dword [eax], ebx
jne 0x4443fa
cmp dword [ebp - 0x318], ebx
jne 0x4444a9
cmp dword [ebp + 0x18], ebx
je 0x4444a9
cmp byte [ebp - 0x107], 0x3a
jne 0x4444a9
lea eax, [ebp - 0x108]
push eax
push str.WARNING:___s__is_outside_the_backup
call fcn.0041c7ee
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x318]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 0x14
Function at 0x4451e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
inc eax
push edi
mov edi, ecx
cmp dword [0x4d5650], eax
je 0x4452be
push esi
push 0x4d5330
push str.GetVolumeNameForVolumeMountPointA
mov esi, str.kernel32.DLL
push esi
call fcn.0042f670
test eax, eax
je 0x44525b
push 0x4d532c
push str.GetVolumePathNameA
push esi
call fcn.0042f670
test eax, eax
je 0x44525b
cmp dword [edi + 0x28], 0
jne 0x445242
cmp dword [edi + 0x2c], 0
je 0x44525b
push 0x4d5328
push str.VssFreeSnapshotProperties
mov esi, str.vssapi.DLL
push esi
call fcn.0042f670
test eax, eax
jne 0x44525f
xor eax, eax
jmp 0x4452bd
push ebx
mov ebx, 0x4d5334
push ebx
push str._CreateVssBackupComponents__YGJPAPAVIVssBackupComponents___Z
push esi
call fcn.0042f670
test eax, eax
jne 0x445285
push ebx
push str.CreateVssBackupComponentsInternal
push esi
call fcn.0042f670
test eax, eax
je 0x4452bc
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetSystemDirectoryA]
push esi
lea eax, [ebp - 0x108]
push eax
mov ecx, edi
call fcn.00443c36
push eax
add edi, 0x4a
push edi
call fcn.00451260
xor eax, eax
add esp, 0xc
inc eax
mov dword [0x4d5650], eax
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00450b32
leave
ret

Function at 0x446fe6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0xa0]
mov esi, ecx
and dword [esi + 0x3c], 0
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.___total_physical_size__lu_MB_GetVersionExA]
mov ecx, dword [ebp - 0x9c]
xor edx, edx
inc edx
cmp ecx, 5
ja 0x447034
jne 0x447030
cmp dword [ebp - 0x98], 2
jae 0x447034
xor eax, eax
jmp 0x447036
mov eax, edx
mov dword [esi + 0x28], eax
xor eax, eax
cmp byte [ebp - 6], dl
setne al
mov dword [esi + 0x3c], eax
cmp ecx, 6
jne 0x447056
cmp dword [ebp - 0x98], 0
jne 0x447056
mov eax, edx
jmp 0x447058
xor eax, eax
mov dword [esi + 0x30], eax
cmp ecx, 5
jne 0x44706c
cmp dword [ebp - 0x98], edx
jne 0x44706c
mov eax, edx
jmp 0x44706e
xor eax, eax
and dword [esi + 0xa574], 0
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.0044635c
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00450b32
leave
ret