joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a16a0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51216b
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x55e2f4]
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 dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x66c], 0
cmp dword [0x559328], 0xffffffff
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x674], ebx
jne 0x4a16fa
lea eax, [ebx + 1]
jmp 0x4a1871
push 0
lea ecx, [ebp - 0x668]
mov dword [ebp - 4], 0
call fcn.004aade0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.004af0c0
lea ecx, [ebp - 0x668]
mov esi, dword [eax]
call fcn.004ab670
test esi, esi
je 0x4a174a
xor eax, eax
jmp 0x4a1871
lea eax, [ebp - 0x66c]
push eax
push dword [0x559328]
call fcn.004a1920
add esp, 8
test eax, eax
je 0x4a1731
cmp dword [ebp - 0x66c], 0
jne 0x4a1731
push dword [0x559328]
call fcn.004a1890
add esp, 4
cmp eax, 1
jg 0x4a1731
push dword [0x559328]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xf003f
push 0
push 0
mov dword [0x559328], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x674], eax
test eax, eax
je 0x4a186b
push 0xf01ff
push 0x51a1d0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4a185d
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp - 0x66c], 0
nop dword [eax]
xor esi, esi
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4a1852
mov eax, dword [ebp - 0x2c]
cmp eax, 2
je 0x4a1803
cmp eax, 3
je 0x4a1803
cmp eax, 5
jne 0x4a1813
push 0x3e8
call ebx
inc esi
cmp esi, 3
jl 0x4a17e2
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x66c], 0
jne 0x4a183e
cmp eax, 1
je 0x4a1848
lea eax, [ebp - 0x30]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4a1852
mov dword [ebp - 0x66c], 1
jmp 0x4a17e0
cmp eax, 1
je 0x4a1848
cmp eax, 3
jne 0x4a1852
mov dword [ebp - 0x670], 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
jmp 0x4a1863
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x674]
call esi
mov eax, dword [ebp - 0x670]
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.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x4a2660
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x525d48]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x525d4c]
push str.EXPAND_MOUNTING_VOLUME
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 8], eax
mov dword [ebp - 0x118], 0
call fcn.004bb8b0
push eax
push ebx
call fcn.00475d90
push dword [ebp + 0x1c]
lea eax, [ebp - 0x114]
push esi
push eax
push edi
push ebx
call fcn.004a2ba0
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x4a26e3
mov edi, dword [ebp - 0x110]
or esi, 0xffffffff
jmp 0x4a2809
mov esi, dword [ebp - 0x114]
lea eax, [ebp - 0x114]
add word [ebp - 0xc], si
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a28e0
add esp, 8
test eax, eax
jne 0x4a271f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [ebp - 0x110]
xor ebx, ebx
cmp eax, 0x3ed
setne bl
jmp 0x4a2809
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x4a273b
cmp eax, 2
je 0x4a273b
mov edi, dword [ebp - 0x110]
xor ebx, ebx
jmp 0x4a2809
push 0x80
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x4a2763
mov edi, dword [ebp - 0x110]
lea ebx, [eax + 1]
jmp 0x4a2809
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2770
sub ecx, edx
sar ecx, 1
je 0x4a2782
dec ecx
add ecx, ecx
cmp word [ebp + ecx - 0x10c], 0x5c
jne 0x4a27a5
cmp ecx, 0x100
jae 0x4a2856
xor eax, eax
mov word [ebp + ecx - 0x10c], ax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004a29f0
add esp, 0xc
test eax, eax
jne 0x4a27c9
mov edi, dword [ebp - 0x110]
lea ebx, [eax + 1]
jmp 0x4a2809
push str.EXPAND_EXPAND_FS
call fcn.004bb8b0
mov edi, dword [ebp - 0x110]
push eax
push edi
call fcn.00475d90
add esp, 0xc
push 0
push dword [ebp - 0x118]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004e2b80
push edx
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004a2860
add esp, 0xc
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x118], eax
test esi, esi
js 0x4a283c
push str.EXPAND_UNMOUNTING_VOLUME
call fcn.004bb8b0
push eax
push edi
call fcn.00475d90
push 1
push esi
push edi
call fcn.004cba20
mov eax, dword [ebp - 0x118]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
call fcn.004e2a5f
int3
Function at 0x4a28e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa04
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xa04]
push esi
mov esi, dword [ebp + 0xc]
push 0x400
push ecx
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNameW]
test eax, eax
jne 0x4a2928
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa04]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x4a2917
push 4
lea eax, [ebp - 0x204]
push str.NTFS
push eax
call fcn.004f845a
add esp, 0xc
test eax, eax
jne 0x4a2983
mov dword [esi], 2
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x204]
push 0x51d500
push eax
call fcn.004f845a
add esp, 0xc
test eax, eax
jne 0x4a29b7
mov dword [esi], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 5
lea eax, [ebp - 0x204]
push str.exFAT
push eax
call fcn.004fae4a
mov ecx, dword [ebp - 4]
add esp, 0xc
neg eax
sbb eax, eax
xor ecx, ebp
and eax, 0xfffffffd
add eax, 3
mov dword [esi], eax
mov eax, 1
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x4a29f0
Capabilities:
Get disk information
Get volume information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x16c], ecx
lea ecx, [ebp - 0x104]
push 0x80
push ecx
push eax
mov dword [ebp - 0x168], 0
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x4a2a43
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x104]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2a50
sub ecx, edx
sar ecx, 1
je 0x4a2a62
dec ecx
add ecx, ecx
cmp word [ebp + ecx - 0x104], 0x5c
jne 0x4a2a85
cmp ecx, 0x100
jae 0x4a2b37
xor eax, eax
mov word [ebp + ecx - 0x104], ax
push edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a2abe
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push ebx
push 0
lea eax, [ebp - 0x168]
push eax
push 0x60
lea eax, [ebp - 0x164]
push eax
push 0
push 0
push 0x90064
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov ebx, eax
test ebx, ebx
je 0x4a2b0e
test esi, esi
je 0x4a2afc
mov ecx, dword [ebp - 0x15c]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x158]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x16c]
test ecx, ecx
je 0x4a2b0e
mov eax, dword [ebp - 0x13c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
call fcn.004e2a5f
int3
Function at 0x4a2ba0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x70
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004e46b0
add esp, 0xc
call fcn.00428b90
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4a2bf4
pop edi
pop esi
mov eax, 0x16
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 0
push 0x5216f0
mov dword [ebp - 0x74], 0
call fcn.00405640
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x18]
push 0
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x74]
push eax
push 0
push dword [ebp - 0x78]
mov dword [ebp - 0x58], 0
push ebx
push dword [esi]
mov dword [ebp - 0x68], 0
push edi
mov dword [ebp - 0x64], 0
call fcn.004cb090
add esp, 0x38
cmp eax, 1
jge 0x4a2c67
pop edi
mov dword [esi], 0xffffffff
mov eax, 0x18
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret

Function at 0x4a2c80
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push ebx
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.00429b60
add esp, 4
test eax, eax
je 0x4a2cd9
mov dword [edi], 0
xor eax, eax
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNameW]
test eax, eax
jne 0x4a2d06
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x4a2cf0
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.004a28e0
add esp, 8
test eax, eax
je 0x4a2cf0
mov eax, dword [ebp - 0x808]
sub eax, 1
je 0x4a2da5
sub eax, 1
je 0x4a2d85
mov dword [esi], 0xffffffff
sub eax, 1
je 0x4a2d6b
pop edi
mov dword [esi + 4], 0xffffffff
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 4], 0x1ffffff
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0xffff0000
xor eax, eax
mov dword [esi + 4], 0xfff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov dword [esi], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x4a6730
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512683
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x55e2f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
mov byte [ebp - 4], 2
sete al
test al, al
jne 0x4a67d8
push 0
push str.ASK_DELETE_KERNEL_CRASH_DUMP
call fcn.00419880
add esp, 8
cmp eax, 6
jne 0x4a67a6
cmp dword [esi + 0x14], 8
jb 0x4a679b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4a67d8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4a67d8
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x4a67b1
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x4a67c3
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x4a67d8
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x4a67d8
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x18]
cmp eax, 8
jb 0x4a67ee
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.004052a0
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x4a6804
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4a681c
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004052a0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4a6849
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8df0
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512b01
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x86c], eax
lea eax, [ebp - 0x864]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x868], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a8e61
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x4a9073
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x860]
xor esi, esi
mov dword [ebp - 0x860], 0x802
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x814]
push eax
push esi
push dword [ebp - 0x864]
call edi
test eax, eax
jne 0x4a9061
nop word [eax + eax]
lea eax, [ebp - 0x814]
inc esi
push 0x52aed0
push eax
call fcn.004e480a
lea ecx, [ebp - 0x814]
add esp, 8
cmp eax, ecx
jne 0x4a900b
push 0x33
xor eax, eax
mov dword [ebp - 0x860], 0x401
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
call fcn.004051a0
push 0x518b40
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x85c]
push eax
call fcn.00403cd0
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.00403cd0
add esp, 0x18
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x4a8f42
mov eax, dword [eax]
lea ecx, [ebp - 0x860]
push ecx
lea ecx, [ebp - 0x814]
push ecx
push str.DisplayName
push eax
call fcn.004c0de0
add esp, 0x10
test eax, eax
mov eax, dword [ebp - 0x830]
sete bl
cmp eax, 8
jb 0x4a8f81
inc eax
lea ecx, [ebp - 0x844]
push eax
push dword [ebp - 0x844]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x830], 7
mov word [ebp - 0x844], ax
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x834], 0
cmp eax, 8
jb 0x4a8fbc
inc eax
lea ecx, [ebp - 0x85c]
push eax
push dword [ebp - 0x85c]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x848], 7
mov word [ebp - 0x85c], ax
mov eax, dword [ebp - 0x818]
mov dword [ebp - 0x84c], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4a8ffe
inc eax
lea ecx, [ebp - 0x82c]
push eax
push dword [ebp - 0x82c]
call fcn.004052a0
test bl, bl
je 0x4a900b
xor eax, eax
mov word [ebp - 0x814], ax
push dword [ebp - 0x86c]
lea eax, [ebp - 0x814]
push eax
call fcn.004e85f7
add esp, 8
test eax, eax
je 0x4a9057
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x860]
mov dword [ebp - 0x860], 0x802
push eax
lea eax, [ebp - 0x814]
push eax
push esi
push dword [ebp - 0x864]
call edi
test eax, eax
je 0x4a8ea0
jmp 0x4a9061
mov dword [ebp - 0x868], 1
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x868]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x4a9090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512b3b
mov eax, dword fs:[0]
push eax
sub esp, 0xaa0
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea eax, [ebp - 0x824]
push eax
xor ebx, ebx
call edi
mov ax, word [ebp - 0x824]
mov ecx, 0x7e1
cmp ax, cx
jb 0x4a9233
mov cx, word [ebp - 0x822]
jne 0x4a90f7
cmp cx, 6
jb 0x4a9233
movzx eax, ax
cmp eax, 0x7e1
jg 0x4a9233
jne 0x4a9111
cmp cx, 8
ja 0x4a9233
push 0x802
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.004e46b0
add esp, 0xc
lea eax, [ebp - 0x814]
push 0x400
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9142
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x816], 0x5c
je 0x4a917e
lea edi, [ebp - 0x814]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4a9165
mov eax, dword [0x518b40]
mov dword [edi], eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x854]
call fcn.00403e70
push 0x52ae4c
push eax
lea eax, [ebp - 0x83c]
mov dword [ebp - 4], 0
push eax
call fcn.00403cd0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4a91b4
mov eax, dword [eax]
lea ecx, [ebp - 0xaa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea ecx, [ebp - 0x83c]
mov esi, eax
call fcn.00495b40
lea ecx, [ebp - 0x854]
call fcn.00495b40
cmp esi, 0xffffffff
jne 0x4a91e3
xor eax, eax
jmp 0x4a9235
lea eax, [ebp - 0x824]
push eax
call edi
lea eax, [ebp - 0xaac]
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
mov ecx, dword [ebp - 0xaac]
sub ecx, dword [ebp - 0xa90]
mov eax, dword [ebp - 0xaa8]
sbb eax, dword [ebp - 0xa8c]
cmp eax, 1
ja 0x4a922c
jb 0x4a9227
cmp ecx, 0x65a0bc00
jae 0x4a922c
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x4a9680
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x100c]
push esi
mov esi, dword [ebp + 8]
push 0x802
push 0
push eax
mov dword [ebp - 0x1010], esi
call fcn.004e46b0
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.004e46b0
add esp, 0x18
lea eax, [ebp - 0x100c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.0041edf0
push 0x44
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.004e46b0
lea eax, [ebp - 0x808]
push eax
call fcn.00414f30
add esp, 0x18
test eax, eax
jne 0x4a9732
push esi
push str.VOL_CREATION_WIZARD_NOT_FOUND
call fcn.00419a00
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x808]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4a9740
mov eax, dword [str.__Setup]
mov dword [ecx], eax
mov eax, dword [0x52b4a8]
mov dword [ecx + 4], eax
mov eax, dword [0x52b4ac]
mov dword [ecx + 8], eax
mov eax, dword [0x52b4b0]
mov dword [ecx + 0xc], eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9770
sub ecx, edx
sar ecx, 1
je 0x4a97e1
push edi
lea edi, [ebp - 0x808]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4a9790
mov eax, dword [0x5170a0]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4a97a5
lea edi, [ebp - 0x808]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a97c0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1010]
pop edi
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x4a982c
push esi
call fcn.00417c00
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1024]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x1020]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x4a9860
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x100c]
push esi
mov esi, dword [ebp + 8]
push 0x802
push 0
push eax
mov dword [ebp - 0x1010], esi
call fcn.004e46b0
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.004e46b0
add esp, 0x18
lea eax, [ebp - 0x100c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.0041edf0
push 0x44
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.004e46b0
lea eax, [ebp - 0x808]
push eax
call fcn.00414f30
add esp, 0x18
test eax, eax
jne 0x4a9912
push esi
push str.VOL_CREATION_WIZARD_NOT_FOUND
call fcn.00419a00
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x808]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4a9920
mov eax, dword [str.__Format]
mov dword [ecx], eax
mov eax, dword [0x521854]
mov dword [ecx + 4], eax
mov eax, dword [0x521858]
mov dword [ecx + 8], eax
mov eax, dword [0x52185c]
mov dword [ecx + 0xc], eax
mov ax, word [0x521860]
mov word [ecx + 0x10], ax
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9960
sub ecx, edx
sar ecx, 1
je 0x4a99d1
push edi
lea edi, [ebp - 0x808]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4a9980
mov eax, dword [0x5170a0]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4a9995
lea edi, [ebp - 0x808]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a99b0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1010]
pop edi
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x4a9a1c
push esi
call fcn.00417c00
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1024]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x1020]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret