joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d344
Capabilities:
List user account groups
List user accounts for group

Disassembly:
push 0x70
mov eax, 0x4e7cb7
call fcn.004b51ee
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp + 8]
call fcn.0049d31b
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push ebx
inc edi
push ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call sub.NETAPI32.dll_NetLocalGroupEnum
cmp eax, ebx
je 0x49d393
cmp eax, 0xea
jne 0x49d3ff
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x49d40f
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
jbe 0x49d3ff
cmp esi, ebx
je 0x49d3ff
mov eax, dword [esi]
cmp eax, ebx
je 0x49d3f1
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042b420
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x7c]
call fcn.00463870
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0049cde8
mov ecx, eax
call fcn.0049963a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00463852
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040d590
add esi, 4
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jb 0x49d3a2
cmp dword [ebp - 0x14], ebx
je 0x49d40f
push dword [ebp - 0x14]
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00476f02
jmp 0x49d4df
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00478005
cmp dword [eax + 0x18], 8
jb 0x49d43e
mov eax, dword [eax + 4]
jmp 0x49d441
add eax, 4
push ebx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push ebx
call sub.NETAPI32.dll_NetLocalGroupGetMembers
cmp eax, ebx
je 0x49d463
cmp eax, 0xea
jne 0x49d4c7
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x49d4d7
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x10], ebx
jbe 0x49d4ca
lea esi, [eax + 8]
lea eax, [esi - 8]
test eax, eax
je 0x49d4c7
cmp dword [esi - 4], edi
jne 0x49d4b9
push dword [esi]
lea ecx, [ebp - 0x5c]
call fcn.0042b420
mov dword [ebp - 4], 3
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00478005
mov ecx, eax
add ecx, 0x1c
call fcn.00462c73
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040d590
add esi, 0xc
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jb 0x49d475
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x18], ebx
je 0x49d4d7
push dword [ebp - 0x18]
call sub.NETAPI32.dll_NetApiBufferFree
lea ecx, [ebp - 0x2c]
call fcn.004938d3
mov eax, dword [esi + 0x18]
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.004424c1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0043cc0e
test al, al
je 0x49d422
mov eax, esi
call fcn.004b52c6
ret
Function at 0x49e45c
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4dbe9c
call fcn.004b51ee
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x53fda0
call fcn.0046fad7
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x80]
push eax
mov ecx, edi
call fcn.00446840
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d610
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x49e4b1
push str.InstallProc3088
mov ecx, 0x53ff20
call fcn.00444b0f
xor al, al
jmp 0x49e502
lea edi, [esi + 0x88]
mov ecx, edi
call fcn.004a50f8
cmp al, 1
jne 0x49e4e8
push ebx
push ebx
push esi
push 0x49e392
push ebx
push ebx
call fcn.004ba7b9
add esp, 0x18
test eax, eax
je 0x49e4e1
mov ecx, edi
call fcn.004a4e01
jmp 0x49e4f7
push str.InstallProc3100
jmp 0x49e4ed
push str.InstallProc3105
mov ecx, 0x53ff20
call fcn.00444b0f
xor eax, eax
cmp dword [esi + 0x84], ebx
sete al
call fcn.004b52c6
ret

Function at 0x49e572
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49e5f6
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49e5f5
push 0x80020011
cmp dword [ebp + 8], esi
je 0x49e5e9
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x49e5f5
push esi
push 1
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
pop esi
xor eax, eax
leave
ret
Function at 0x49e9f8
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov byte [ebp - 0x415], bl
call esi
test eax, eax
jne 0x49ea2e
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
call esi
test eax, eax
je 0x49eb08
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004b4620
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.004b4620
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.writeable_test__d.dat
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00411380
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49eb08
or dword [ebp - 0x41c], 0xffffffff
push ebx
lea eax, [ebp - 0x420]
push eax
push 2
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x49eb08
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x415], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x415]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret

Function at 0x49f44c
Capabilities:
Hide graphical window

Disassembly:
push 4
mov eax, 0x4e3bb6
call fcn.004b51ee
mov edi, ecx
push 0x541444
push 0x3b0
call fcn.004b8f36
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x49f480
mov ecx, eax
call fcn.004a40e1
jmp 0x49f482
xor eax, eax
or dword [ebp - 4], 0xffffffff
lea esi, [edi + 0x70c]
push eax
mov ecx, esi
call fcn.0049e5fa
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push 0x10100
push 0x86000000
push ebx
push ecx
mov dword [eax], ebx
mov eax, esp
mov dword [eax], ebx
mov ecx, dword [esi]
mov dword [ebp - 0x10], esp
push dword [edi + 4]
call fcn.0049f376
mov ecx, dword [esi]
mov ebx, 0x7e8
push ebx
push dword [edi + 4]
call fcn.004a3163
mov eax, dword [esi]
test eax, eax
je 0x49f4f5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49f4f5
push 0
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
mov eax, dword [esi]
push 1
push dword [eax + 4]
call edi
jmp 0x49f503
push 0
push 0
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.004b52c6
ret
Function at 0x49f56e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x10
mov eax, 0x4e7fa3
call fcn.004b51ee
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x53fda0
call fcn.0046fad7
and dword [ebp - 4], 0
push str.QHSafeMain.exe
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00445250
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040d610
push 0x506318
lea ecx, [ebp - 0x10]
call fcn.0044bc85
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004420c1
mov byte [ebp - 4], 4
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004420c1
mov byte [ebp - 4], 5
push dword [0x53fb44]
mov byte [ebp - 4], 3
call fcn.0048ad44
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call esi
mov edi, eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x53fb44]
push 0x501294
call fcn.0044efd4
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x49f643
call esi
sub eax, edi
cmp eax, 0x1388
jbe 0x49f5fd
push 5
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.open
push 0
call fcn.0046b9ff
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040d610
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d610
call fcn.004b52c6
ret

Function at 0x4a074c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x4a0020
push 0
push 0
call fcn.004ba7b9
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4a0788
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
leave
ret

Function at 0x4a078b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
add dword [0x53fee0], 0x2710
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x4a0516
push eax
push eax
call fcn.004ba7b9
add esp, 0x18
mov dword [0x540388], eax
leave
ret
Function at 0x4a0814
Capabilities:
Persist via run registry key

Disassembly:
push 0x4c
mov eax, 0x4e81d1
call fcn.004b51ee
lea ecx, [ebp - 0x58]
call fcn.00456104
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.RunOnce
call fcn.0044bc85
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersion
call fcn.0044bc85
mov byte [ebp - 4], 2
mov esi, 0x80000002
push esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00443769
mov byte [ebp - 4], 3
push eax
call fcn.0045c66a
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
inc bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00443c39
test bl, bl
je 0x4a08a6
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00452f5d
mov al, bl
call fcn.004b52c6
ret
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x20]
call fcn.00442295
jmp 0x4a096d
lea ecx, [ebp - 0x20]
call fcn.0048212d
push edi
push str.360safeuninst
mov ecx, eax
call fcn.0044211b
cmp eax, 0xffffffff
je 0x4a0965
lea ecx, [ebp - 0x10]
call fcn.0040c7d0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.0048212d
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004420c1
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
call fcn.0044bc85
mov byte [ebp - 4], 6
push esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00443769
mov byte [ebp - 4], 7
push eax
call fcn.0044b15c
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
inc bl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00443c39
test bl, bl
jne 0x4a0959
push edi
push str.remove360.bat
lea ecx, [ebp - 0x10]
call fcn.0044211b
cmp eax, 0xffffffff
jne 0x4a0995
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d610
lea ecx, [ebp - 0x20]
call fcn.0043cb99
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.00442295
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043cc0e
test al, al
je 0x4a08ba
jmp 0x4a0890
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040d610
mov bl, 1
jmp 0x4a0892
Function at 0x4a1be0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x478
mov eax, 0x4e8438
call fcn.004b5257
mov dword [ebp - 0x42c], ecx
call fcn.0047a731
mov ebx, eax
push 0x104
lea eax, [ebp - 0x420]
push eax
xor esi, esi
push esi
mov dword [ebp - 0x430], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [0x53fe51], 0
mov byte [ebp - 0x421], 1
je 0x4a1d2c
cmp byte [0x53fe52], 0
jne 0x4a1cdc
xor eax, eax
mov dword [ebp - 0x440], esi
lea edi, [ebp - 0x43c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x480]
push esi
push eax
call fcn.004b4620
add esp, 0xc
push 5
pop eax
mov word [ebp - 0x454], ax
mov dword [ebp - 0x484], 0x44
mov dword [ebp - 0x458], 1
mov eax, str.__TSinstall
cmp dword [0x53fedc], esi
jne 0x4a1c8b
mov eax, 0x50ea0c
push eax
push str.wait
push str.post
lea eax, [ebp - 0x218]
push str.___s:_s_s
push eax
call fcn.0046783d
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x484]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0046a6c4
add esp, 0x3c
test eax, eax
je 0x4a1cdc
mov byte [ebp - 0x421], 0
cmp dword [ebx], esi
je 0x4a1e04
push dword [ebx + 8]
lea eax, [ebp - 0x428]
mov edi, 0x53fda0
push eax
mov ecx, edi
call fcn.0047d67a
mov dword [ebp - 4], esi
mov eax, dword [eax]
push esi
push esi
push eax
push 0x50243c
mov ecx, edi
call fcn.0047d611
push eax
push esi
call fcn.0047f037
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.0040d610
jmp 0x4a1dfd
cmp dword [ebx], esi
je 0x4a1e1c
push str.NEED_REBOOT
lea eax, [ebp - 0x428]
mov edi, 0x53fda0
push eax
mov ecx, edi
call fcn.0047d67a
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax]
push esi
push ecx
push eax
push 0x50243c
mov ecx, edi
call fcn.0047d611
push eax
push esi
call fcn.0047f037
add esp, 0x14
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.0040d610
test bl, bl
je 0x4a1df7
mov eax, str.__TSinstall
cmp dword [0x53fedc], esi
jne 0x4a1d9b
mov eax, 0x50ea0c
push eax
push str.post
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str.__s____s_s
push eax
call fcn.0046783d
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push str.360ts
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push esi
push 2
push 1
call fcn.0049e572
add esp, 0xc
mov ebx, dword [ebp - 0x430]
mov byte [ebp - 0x421], 0
cmp byte [ebp - 0x421], 0
jne 0x4a1e1c
push dword [ebx + 4]
mov ecx, dword [ebp - 0x42c]
push esi
call fcn.004a07bc
mov al, byte [ebp - 0x421]
call fcn.004b52da
ret
Function at 0x4a44b9
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.LocalQ360CleanupPlusWorking
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4a44d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4a44d6
xor al, al
ret

Function at 0x4a45b4
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
and ebx, 0xffdf
xor esi, esi
inc esi
lea eax, [ebx - 0x41]
push edi
mov dword [ebp - 0x30], esi
cmp ax, 0x19
ja 0x4a46bc
mov eax, dword [0x4f8cfc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4f8d00]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4a46bc
push 3
pop ecx
cmp eax, ecx
je 0x4a4628
jbe 0x4a4621
cmp eax, 5
jbe 0x4a46bc
cmp eax, 6
je 0x4a4628
mov eax, esi
jmp 0x4a46be
mov esi, str..X:
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0x14], bx
xor ebx, ebx
push ebx
push ebx
push ecx
push ebx
push ecx
push 0x80000000
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x4a465c
xor eax, eax
inc eax
jmp 0x4a46be
mov edi, 0x227
push edi
call fcn.004b1800
pop ecx
push ebx
mov esi, eax
mov dword [esi + 4], edi
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push dword [esi + 4]
lea eax, [ebp - 0x28]
push esi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a46a7
mov eax, dword [esi + 0x1c]
cmp eax, 7
je 0x4a46a4
cmp eax, 4
jne 0x4a46a7
mov dword [ebp - 0x30], ebx
push esi
call fcn.004b5d21
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
jmp 0x4a46be
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret

Function at 0x4a46cd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and eax, 0xffdf
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x4a473d
mov ecx, dword [0x4f8cfc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4f8d00]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x4a4738
dec eax
dec eax
je 0x4a4734
dec eax
je 0x4a4730
dec eax
je 0x4a472c
push dword [ebp + 8]
call fcn.004a45b4
neg eax
sbb eax, eax
pop ecx
inc eax
jmp 0x4a473f
push 5
jmp 0x4a473a
push 4
jmp 0x4a473a
push 3
jmp 0x4a473a
push 2
pop eax
jmp 0x4a4740
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b46ff
leave
ret
Function at 0x4a474c
Capabilities:
Get disk size

Disassembly:
push 0x28
mov eax, 0x4e8869
call fcn.004b5257
xor esi, esi
cmp dword [0x53fe44], esi
je 0x4a476d
mov esi, dword [0x53fe48]
jmp 0x4a4881
push esi
push esi
push esi
push esi
call fcn.00497112
or ebx, 0xffffffff
add esp, 0x10
cmp eax, ebx
jne 0x4a4787
push 0x73
jmp 0x4a4880
cmp dword [0x540398], esi
je 0x4a487e
call fcn.0046a127
test eax, eax
jne 0x4a487e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x84]
cmp eax, 0x6c
jne 0x4a47b4
push eax
jmp 0x4a4880
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x53fda0
call fcn.0046fad7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
jne 0x4a47e0
push 0x71
pop esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call fcn.0040d610
jmp 0x4a4881
push eax
call fcn.0049e9f8
pop ecx
test al, al
jne 0x4a47ef
push 0x6d
jmp 0x4a47cf
mov eax, dword [0x50248c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x502490]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
jge 0x4a4811
push 0x80070057
call fcn.0040b600
mov ax, word [eax]
mov word [ebp - 0x18], ax
push dword [ebp - 0x18]
call fcn.004a46cd
pop ecx
cmp eax, 1
je 0x4a482a
push 0x70
jmp 0x4a47cf
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x34], esi
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4a47d0
cmp dword [ebp - 0x20], esi
ja 0x4a47d0
jb 0x4a4877
cmp dword [ebp - 0x24], 0x11e1a300
ja 0x4a47d0
push 0x6f
jmp 0x4a47cf
push 0x6b
pop esi
mov eax, esi
call fcn.004b52da
ret

Function at 0x4a4889
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x541444
mov esi, 0x4000
push esi
call fcn.004b60d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a4935
push esi
push 0
push edi
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4a492e
cmp eax, 0x3fff
ja 0x4a492e
push edi
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a492e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4f8b70
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a492e
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
push edi
mov word [ecx], ax
call fcn.004b5d21
xor eax, eax
pop ecx
inc eax
jmp 0x4a4937
push edi
call fcn.004b5d21
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4a4a0a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004b4620
add esp, 0xc
push 0
push 0x25
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x4a4a6c
push str.User32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b83c
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4a4aaf
push str.ShutdownBlockReasonCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a4aa3
push ebx
push edi
call eax
mov dword [ebp - 0x210], eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret

Function at 0x4a4ac3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004b4620
add esp, 0xc
push edi
push 0x25
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x4a4b28
push str.User32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b83c
mov esi, eax
cmp esi, edi
je 0x4a4b5b
push str.ShutdownBlockReasonDestroy
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4a4b54
push dword [ebp - 0x210]
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004b46ff
leave
ret