joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1c20
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.0041b050
mov ecx, dword [ebp - 0x20]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov edi, 2
cmp esi, 0xffffffff
je 0x4a1cc4
xor eax, eax
push eax
lea edx, [ebp - 0x24]
push edx
push 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0xc
lea ecx, [ebp - 0x1c]
push ecx
push 0x2d1400
push esi
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a1cb7
cmp dword [ebp - 0x24], 0xc
jne 0x4a1cb7
xor edx, edx
cmp byte [ebp - 8], dl
setne dl
mov edi, edx
jmp 0x4a1cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x4a1cc4
xor edi, edi
test esi, esi
je 0x4a1ccf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1cee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00453be1
mov esp, ebp
pop ebp
ret
Function at 0x4a9c20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ceef7
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [ebx + 0x198]
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x10], 1
xor esi, esi
mov dword [esp + 0x40], esi
mov eax, dword [ebx + 0x1b4]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebx + 0x1b0]
call fcn.00426400
mov eax, dword [ebx + 0x1b4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x1b4]
mov dword [eax], eax
mov eax, dword [ebx + 0x1b4]
mov dword [eax + 8], eax
mov dword [ebx + 0x1b8], esi
mov dword [esp + 0x40], 0xffffffff
mov edx, dword [esp + 0xc]
push edx
mov dword [ebx + 0x1c0], esi
mov dword [ebx + 0x1c8], esi
mov dword [ebx + 0x1cc], esi
mov dword [ebx + 0x1d0], esi
mov dword [ebx + 0x1d4], esi
mov dword [ebx + 0x1d8], esi
mov dword [ebx + 0x1dc], esi
mov dword [ebx + 0x1e0], esi
mov dword [ebx + 0x1e8], esi
mov dword [ebx + 0x1ec], esi
mov dword [ebx + 0x1f0], esi
mov dword [ebx + 0x1f4], esi
mov dword [ebx + 0x1f8], esi
mov dword [ebx + 0x1fc], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 0x30]
call fcn.0041c3a0
lea eax, [esp + 0x14]
push eax
mov eax, ebx
call fcn.00401a70
sub esp, 0x20
mov esi, eax
mov edi, esp
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x90]
call fcn.00425e80
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ac1b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call edi
neg eax
lea ecx, [ebp - 0x118]
sbb esi, esi
and esi, dword [ebp - 0x114]
push ecx
mov dword [ebp - 0x118], 0x114
call edi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x110]
cmp esi, 6
jbe 0x4ac21c
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453be1
mov esp, ebp
pop ebp
ret
jne 0x4ac223
cmp eax, 2
jae 0x4ac20a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00453be1
mov esp, ebp
pop ebp
ret
Function at 0x4b1730
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc4df
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
lea edi, [ebp - 0x140]
mov dword [ebp - 4], ebx
call fcn.00432320
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x140]
test eax, eax
je 0x4b17b3
cmp dword [ebp - 0x128], 6
jae 0x4b17bb
mov byte [ebp - 0x12d], bl
jmp 0x4b17fc
mov ecx, edx
sub ecx, esi
test ecx, 0xfffffff8
jne 0x4b17cf
mov byte [ebp - 0x12d], bl
jmp 0x4b17fc
mov eax, esi
cmp esi, edx
je 0x4b17f5
mov edi, 2
lea ebx, [ebx]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x4b17b3
cmp dword [ecx + 0xd8], edi
jne 0x4b17b3
add eax, 8
cmp eax, edx
jne 0x4b17e0
mov byte [ebp - 0x12d], 1
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4b1820
mov eax, dword [ebp - 0x144]
push eax
mov ebx, edx
mov eax, esi
call fcn.00432d40
push esi
call fcn.00453bd6
add esp, 8
mov al, byte [ebp - 0x12d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00453be1
mov esp, ebp
pop ebp
ret 4

Function at 0x4b18a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx]
push edi
lea esi, [ebp - 8]
mov edi, ecx
call fcn.00432120
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
lea ecx, [edi + 8]
push ecx
lea edx, [edi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
mov eax, dword [ebp - 8]
sete byte [ebp - 1]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b18f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 1], 0
je 0x4b1904
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
lea esi, [ebp - 8]
call fcn.004a7500
add edi, 0x18
call fcn.004b6520
test al, al
mov eax, dword [ebp - 8]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b193a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
test bl, bl
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b30b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
call fcn.004b16a0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, eax
sar ecx, 2
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4b3136
mov esi, dword [ebp - 4]
add esi, esi
add esi, esi
mov eax, dword [esi + eax]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b3121
jmp 0x4b30f3
mov edi, dword [ebp - 8]
inc edi
mov dword [ebp - 8], edi
cmp edi, 0xa
jge 0x4b3121
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebx]
add edi, esi
call fcn.004aaf30
test al, al
je 0x4b3121
mov edx, dword [ebx]
mov eax, dword [esi + edx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4b30f0
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebp - 4]
sub edx, eax
inc ecx
sar edx, 2
mov dword [ebp - 4], ecx
cmp ecx, edx
jb 0x4b30d4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b3140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce2c2
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, 0x24a
mov ebx, 1
push str.Entering_SsdOptimizer::LogTrimData_n
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x4ecd00
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
call fcn.00409be0
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x50f008
mov dword [esp + 0x1c], 0x4ecd40
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov ebx, str.Leaving_SsdOptimizer::LogTrimData_n
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0
call fcn.004165c0
mov ebx, dword [edi + 0x40]
cmp ebx, dword [edi + 0x44]
je 0x4b322d
lea ebx, [ebx]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x4b3225
mov dword [esp + 0x10], str.SsdOptimizer::LogTrimData
mov dword [esp + 0x14], 0x250
mov dword [esp + 0x18], 3
nop
movzx eax, word [esi]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
push str.location:__lld__size:__d
lea eax, [esp + 0x20]
call fcn.00409c10
add esi, 0x10
add esp, 0x10
cmp esi, dword [ebx + 4]
jne 0x4b3200
add ebx, 0x14
cmp ebx, dword [edi + 0x44]
jne 0x4b31e0
mov ebx, 1
mov dword [esp + 0x38], ebx
test byte [0x51a498], bl
jne 0x4b3288
or dword [0x51a498], ebx
mov byte [esp + 0x38], 2
test byte [0x51a42c], bl
jne 0x4b326d
or dword [0x51a42c], ebx
xor al, al
mov byte [0x51a48c], al
mov dword [0x51a490], ebx
mov word [0x51a494], 0x100
mov ecx, 0x51a48c
call fcn.004193e0
push 0x4d88c0
call fcn.00454c0f
add esp, 4
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
lea edx, [esp + 0x34]
mov ecx, 0x51a430
call fcn.0041a1d0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b32cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b3650
Capabilities:
Access peb ldr_data
Get ntdll base address
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce332
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50f880]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, 0xa0
mov edi, 1
push str.Entering_SsdOptimizer::IsTrimCommandAvailable_n
lea eax, [esp + 0x18]
mov esi, ecx
mov dword [esp + 0x18], 0x4ec974
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
call fcn.00409be0
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x50f008
mov dword [esp + 0x14], str.SsdOptimizer::IsTrimCommandAvailable
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov ebx, str.Leaving_SsdOptimizer::IsTrimCommandAvailable_n
lea eax, [esp + 0x20]
mov dword [esp + 0x50], 0
call fcn.004165c0
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push eax
push 0xc
lea ecx, [esp + 0x40]
push ecx
push 0xc
lea edx, [esp + 0x3c]
push edx
push 0x2d1400
push esi
mov dword [esp + 0x48], 8
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
cmp edi, eax
jne 0x4b3768
cmp byte [esp + 0x3c], al
jne 0x4b3768
mov bl, al
jmp 0x4b376a
xor bl, bl
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push ecx
call fcn.0041ac40
add esp, 4
lea edx, [esp + 0x2c]
mov ecx, eax
call fcn.0041a1d0
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b37b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00453be1
mov esp, ebp
pop ebp
ret
Function at 0x4b5670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d04e7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, 0x8e
push str.Entering_SsdOptimizer::ValidateVolume_n
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x4ec820
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
call fcn.00409be0
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x50f008
mov dword [esp + 0x14], 0x4ec868
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 1
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov ebx, str.Leaving_SsdOptimizer::ValidateVolume_n
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.004165c0
push esi
call fcn.004b1730
test al, al
jne 0x4b575c
push str.Volume_is_not_recognized_as_part_of_SSD_disk_or_windows_version_is_not_supported.
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.SsdOptimizer::ValidateVolume
mov dword [esp + 0x10], 0x92
mov dword [esp + 0x14], 2
call fcn.00409c10
add esp, 4
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x34], 0xffffffff
call fcn.004211e0
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004ac1b0
test al, al
je 0x4b578a
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x34], 0xffffffff
call fcn.004211e0
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.004b53e0
lea edx, [esp + 0x14]
push edx
mov bl, al
mov dword [esp + 0x34], 0xffffffff
call fcn.004211e0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2680
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd1bb
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x434]
push esi
push eax
mov ebx, 0x4eeeb4
call fcn.00409990
add esp, 8
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x434]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4c2713
mov edx, dword [ebp - 0x448]
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0x440]
mov dword [esi + 0x18], edx
mov edx, dword [ebp - 0x43c]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
push 0x105
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x434]
lea ecx, [ebp - 0x438]
push ecx
push 0
push 0
push 0x105
lea edx, [ebp - 0x220]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4c27b6
lea eax, [ebp - 0x430]
lea edx, [esi + 0x10]
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2753
sub eax, edi
lea ecx, [ebp - 0x430]
sar eax, 1
push ecx
push edx
mov ebx, eax
call fcn.0041b280
lea eax, [ebp - 0x220]
lea edx, [esi + 0x28]
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2780
sub eax, edi
lea ecx, [ebp - 0x220]
sar eax, 1
push ecx
push edx
mov ebx, eax
call fcn.0041b280
mov edx, dword [ebp - 0x438]
and edx, 0x80000
cmp edx, 0x80000
sete al
mov byte [esi + 0x2c], al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c27df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453be1
mov esp, ebp
pop ebp
ret
Function at 0x4c37d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce3e5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, 0x12
mov edi, 1
push str.Entering_CVolumeManagerBase::Initialize_n
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x4ee97c
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
call fcn.00409be0
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x50f008
mov dword [esp + 0x24], 0x4ee9c8
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov ebx, str.Leaving_CVolumeManagerBase::Initialize_n
lea eax, [esp + 0x30]
mov dword [esp + 0x40], 0
call fcn.004165c0
lea eax, [esp + 0x14]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c3960
mov esi, dword [esp + 0x14]
push str.SeBackupPrivilege
call fcn.004acd40
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
mov dword [esp + 0x20], edi
test eax, eax
je 0x4c38c4
push 0x4eea58
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x4eea34
mov dword [esp + 0x20], 0x1d
call fcn.00409c10
add esp, 4
jmp 0x4c38e8
mov dword [esp + 0x18], 0x4eeab4
mov dword [esp + 0x1c], 0x21
call ebx
push eax
push str.Enabling_SE_BACKUP_NAME_privilege_failed._Error_code0x_x_n
lea eax, [esp + 0x20]
call fcn.00409c10
add esp, 8
mov esi, dword [esp + 0x14]
push str.SeRestorePrivilege
call fcn.004acd40
add esp, 4
mov dword [esp + 0x20], edi
test eax, eax
je 0x4c392f
push str.Enabling_SE_RESTORE_NAME_privilege_succeeded._n
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x4eebb8
mov dword [esp + 0x20], 0x27
call fcn.00409c10
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4c398c
mov dword [esp + 0x18], 0x4eec38
mov dword [esp + 0x1c], 0x2b
call ebx
push eax
push str.Enabling_SE_RESTORE_NAME_privilege_failed._Error_code0x_x_n
lea eax, [esp + 0x20]
call fcn.00409c10
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4c398c
mov dword [esp + 0x18], str.CVolumeManagerBase::Initialize
mov dword [esp + 0x1c], 0x32
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4eecf0
lea eax, [esp + 0x20]
call fcn.00409c10
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esp + 0x40], edi
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push ecx
call fcn.0041ac40
add esp, 4
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.0041a1d0
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c39e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c48c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cce40
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x420]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov edi, ecx
push ebx
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x824], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x100
lea ecx, [ebp - 0x620]
push ecx
push 0x100
lea edx, [ebp - 0x820]
push edx
push 0x100
lea eax, [ebp - 0x218]
push eax
push 3
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x420]
push edx
call fcn.00457857
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
add esp, 0x24
mov ecx, 0x50f008
call edx
add eax, 0x10
mov dword [edi], eax
push 0x4e906c
push esi
push str.langlang_
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 4], ebx
push 0x4e9090
mov dword [ebp - 0x824], 1
call fcn.0041b170
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4c49da
push str..dll
push esi
push str.lang_
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x18]
push eax
push str._s_s_s_d_s
call fcn.0041b170
mov eax, dword [edi]
add esp, 0x18
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4c49da
push 0x4e90d8
push edi
xor ebx, ebx
call fcn.0041b280
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453be1
mov esp, ebp
pop ebp
ret
Function at 0x5261d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x80000]
lea eax, [edi + 0xcf740]
push dword [eax]
mov dword [eax], 0xa0ee01
push eax
push edi
jmp 0x5261fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x526201
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5261f0
mov eax, 1
add ebx, ebx
jne 0x526213
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x526224
jne 0x526243
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526243
dec eax
add ebx, ebx
jne 0x526230
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x526208
add ebx, ebx
jne 0x52623f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x526295
xor ecx, ecx
sub eax, 3
jb 0x52625b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5262ca
sar eax, 1
mov ebp, eax
jmp 0x526266
add ebx, ebx
jne 0x526266
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526234
inc ecx
add ebx, ebx
jne 0x526274
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526234
add ebx, ebx
jne 0x526281
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x526276
jne 0x526292
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x526276
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5262b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5262a6
jmp 0x5261f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5262b4
add edi, ecx
jmp 0x5261f6
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5262d6
cmp byte [edi], 0x11
jne 0x5262d6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5262db
lea edi, [esi + 0x11f000]
mov eax, dword [edi]
or eax, eax
je 0x526353
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x126f98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12713c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x526308
mov ecx, edi
jns 0x526337
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x127144]
or eax, eax
je 0x52634d
mov dword [ebx], eax
add ebx, 4
jmp 0x526325
call dword [esi + 0x127140]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x526384
cmp al, 0xef
ja 0x526377
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x526359
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x526366
mov ebp, dword [esi + 0x127148]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5263b8
sub esp, 0xffffff80
jmp 0x420577