joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49298c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [0x506350]
call fcn.00486fd6
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
call esi
mov edi, eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x506350]
push str.QHSafeMain.exe
call fcn.0040a6c0
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x492a27
call esi
sub eax, edi
cmp eax, 0x1388
jbe 0x4929a9
push 0x505cb8
lea ecx, [ebp - 4]
call fcn.00404d20
push 0x4d948c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00406480
mov ecx, dword [ebp - 4]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00404d60
mov esi, dword [ebp - 8]
push 5
push 0
push str._install
push esi
push str.open
push 0
call fcn.00475fd1
add esp, 0x18
lea ecx, [esi - 0x10]
call fcn.00404d60
pop edi
pop esi
leave
ret

Function at 0x493436
Capabilities:
Create thread
Terminate 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 0x492f51
push 0
push 0
call fcn.004a57c7
mov edi, eax
add esp, 0x18
test edi, edi
je 0x493482
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49347b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
leave
ret
Function at 0x4934bc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.0040b990
lea eax, [ebp - 0x44]
push eax
push 0
push ecx
mov ecx, esp
push str.RunOnce
call fcn.00404030
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftWindowsCurrentVersion
call fcn.00404030
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040f060
push eax
call fcn.0040f150
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x1c]
inc bl
call fcn.0040faf0
test bl, bl
je 0x49352f
xor bl, bl
lea ecx, [ebp - 0x44]
call fcn.00413eb0
push dword [ebp - 0x44]
call fcn.0049c830
pop ecx
pop esi
mov al, bl
pop ebx
leave
ret
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0xc]
call fcn.004260c0
jmp 0x4935d5
lea ecx, [ebp - 0xc]
call fcn.00413fe0
push 0
push str.360safeuninst
mov ecx, eax
call fcn.00404250
cmp eax, 0xffffffff
je 0x4935cd
push 0x50739c
lea ecx, [ebp - 4]
call fcn.0041af40
lea ecx, [ebp - 0xc]
call fcn.00413fe0
lea ecx, [ebp - 4]
push ecx
push 0
push ecx
mov ecx, esp
push eax
call fcn.00404d20
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
call fcn.00404030
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040f060
push eax
call fcn.0040f4b0
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
mov ebx, eax
call fcn.0040faf0
test ebx, ebx
je 0x4935c2
push 0
push str.remove360.bat
lea ecx, [ebp - 4]
call fcn.00404250
cmp eax, 0xffffffff
jne 0x4935fd
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404d60
lea ecx, [ebp - 0xc]
call fcn.0040c540
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
call fcn.004260c0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
call fcn.00439460
test al, al
je 0x493543
jmp 0x493516
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404d60
mov bl, 1
jmp 0x493518
Function at 0x49438f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x50649c], 1
push edi
jne 0x494476
cmp byte [0x505cd1], 0
jne 0x494476
push ebx
push esi
push str.ID_RESTART_NOW
lea eax, [ebp - 0xc]
mov esi, 0x505c38
push eax
mov ecx, esi
call fcn.0047a44d
mov edi, dword [eax]
push str.ID_RESTART_LATER
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0047a44d
mov ebx, dword [eax]
push 0x4d395c
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0047a44d
mov ecx, 0x4e0c80
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push edi
push ebx
push dword [eax]
call fcn.0048964c
mov ecx, dword [ebp - 4]
add esp, 0x24
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00404d60
push str.NEED_REBOOT
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.0047a44d
mov eax, dword [eax]
push 2
xor edi, edi
inc edi
push edi
push eax
push 0x4d77f4
mov ecx, esi
call fcn.0047a3f6
push eax
push dword [0x506574]
call fcn.0047c2ba
mov ecx, dword [ebp - 0xc]
add esp, 0x14
cmp eax, 2
sete bl
add ecx, 0xfffffff0
call fcn.00404d60
pop esi
test bl, bl
pop ebx
je 0x494476
mov dword [0x506498], edi
jmp 0x4944ab
cmp byte [0x505cd2], 0
je 0x49448d
cmp dword [0x5064a0], 0
jne 0x49448d
call fcn.0049298c
cmp dword [ebp + 8], 0
je 0x4944ab
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4944ab
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
leave
ret
Function at 0x4944ae
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3f8]
sub esp, 0x478
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x3f4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
call fcn.00476b7a
mov ebx, eax
push 0x104
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [0x505cf1], 0
mov byte [ebp - 0x1d], 1
je 0x4945bb
cmp byte [0x505cf2], 0
jne 0x494575
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004a0bd0
push 5
pop eax
push str.wait
push str.post
mov word [ebp - 0x50], ax
lea eax, [ebp + 0x1ec]
push str.___s:_s
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 1
call fcn.00491ec6
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x1ec]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00474f95
add esp, 0x44
test eax, eax
je 0x494575
mov byte [ebp - 0x1d], 0
cmp dword [ebx], esi
je 0x494663
push dword [ebx + 8]
lea eax, [ebp - 0x24]
mov edi, 0x505c38
push eax
mov ecx, edi
call fcn.0047a44d
mov eax, dword [eax]
push esi
push esi
push eax
push 0x4d77f4
mov ecx, edi
call fcn.0047a3f6
push eax
push esi
call fcn.0047c2ba
mov ecx, dword [ebp - 0x24]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.00404d60
jmp 0x49465f
cmp dword [ebx], esi
je 0x494675
push str.NEED_REBOOT
lea eax, [ebp - 0x24]
mov edi, 0x505c38
push eax
mov ecx, edi
call fcn.0047a44d
mov eax, dword [eax]
push esi
push 1
push eax
push 0x4d77f4
mov ecx, edi
call fcn.0047a3f6
push eax
push esi
call fcn.0047c2ba
mov ecx, dword [ebp - 0x24]
add esp, 0x14
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00404d60
test bl, bl
je 0x49465c
push str.post
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x1ec]
push str.__s____s
push eax
call fcn.00491ec6
add esp, 0x10
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp + 0x1ec]
push eax
push 1
push str.360ts
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00491edc
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 0x1d], 0
cmp byte [ebp - 0x1d], 0
jne 0x494675
push dword [ebx + 4]
mov ecx, dword [ebp - 0x28]
push esi
call fcn.00493485
mov ecx, dword [ebp + 0x3f4]
mov al, byte [ebp - 0x1d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x3f8
leave
ret
Function at 0x495cc8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x495ca6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x495d15
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
leave
ret

Function at 0x495d3c
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 0x495d5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x495d59
xor al, al
ret

Function at 0x495e04
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 7
pop ecx
xor eax, eax
push 1
push eax
lea edi, [ebp - 0x24]
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
je 0x495ea5
push 0x10024
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x495e9c
cmp byte [ebp + 0xc], 1
jne 0x495e8a
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x495e8a
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e8
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x495e82
cmp dword [ebp - 0x20], 3
jne 0x495e88
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x495e72
pop esi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
leave
ret

Function at 0x4963c0
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4963ed
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4964b0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
add ecx, 0x940
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
ret
Function at 0x4965ea
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c0]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x54], ax
xor edi, edi
lea eax, [ebp - 0x52]
push edi
xor ebx, ebx
push eax
inc ebx
call fcn.004a0bd0
mov eax, dword [esi + 4]
add esp, 0xc
lea ecx, [ebp - 0x58]
push ecx
push 0x20019
push edi
push eax
push dword [esi]
mov dword [ebp - 0x60], 0x104
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49668b
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x5c], edi
jbe 0x49668b
xor ebx, ebx
cmp dword [ebp - 0x58], edi
je 0x496699
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 4]
push dword [esi]
cmp ebx, 1
jne 0x4966ab
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x4966b1
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
mov ecx, dword [ebp + 0x1b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x1b8
leave
ret
Function at 0x4966c9
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1ec]
sub esp, 0x26c
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x1e8], eax
push ebx
push esi
push edi
push 4
pop ebx
push 0x11
pop ecx
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp + 0x1a0]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov word [ebp - 0x68], ax
lea eax, [ebp + 0x1a0]
push eax
movsw word es:[edi], word [esi]
mov esi, 0x208
push esi
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x70], 1
call fcn.0042a830
push dword [ebp + 0x1f4]
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0042a830
lea eax, [ebp - 0x74]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4967ac
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
mov edi, str.Start
push edi
lea eax, [ebp - 0x68]
push eax
push esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4967ac
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x68]
push eax
push esi
call edi
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push str.DeleteFlag
lea eax, [ebp - 0x68]
push eax
push esi
call edi
mov al, 1
jmp 0x4967ae
xor al, al
mov ecx, dword [ebp + 0x1e8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x1ec
leave
ret

Function at 0x4967c6
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x3a0], ax
lea eax, [ebp + 0x3a2]
push eax
mov esi, ecx
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp + 0x3a0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x496893
lea eax, [esi + 0x738]
mov dword [ebp - 0x80], eax
lea eax, [esi + 0x328]
mov dword [ebp - 0x7c], eax
lea eax, [esi + 0x530]
add esi, 0xb3e
push edi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], eax
xor edi, edi
mov esi, 0x410
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.004a0bd0
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.004a0bd0
push dword [ebp + edi*4 - 0x80]
lea eax, [ebp + 0x3a0]
push eax
push str._s_s
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0041b220
add esp, 0x2c
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, 4
jb 0x496844
pop edi
mov ecx, dword [ebp + 0x5a8]
xor ecx, ebp
pop esi
call fcn.004a0e91
add ebp, 0x5ac
leave
ret
Function at 0x49761a
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], ecx
call ebx
test eax, eax
je 0x49763b
xor eax, eax
inc eax
jmp 0x4976f6
and dword [ebp + 8], 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 0xffffffff
je 0x49767f
test al, 0x10
je 0x49767f
push esi
mov dword [ebp + 8], 1
call edi
test eax, eax
jne 0x49768a
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x49768f
cmp dword [ebp + 8], 0
push esi
jne 0x497684
call ebx
jmp 0x497686
push esi
call ebx
jmp 0x497660
call edi
test eax, eax
je 0x49768f
xor eax, eax
inc eax
jmp 0x4976f5
cmp byte [ebp + 0xc], 0
je 0x4976a2
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4976f3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4976c9
push str..lnk
push eax
call fcn.004a2283
pop ecx
pop ecx
test eax, eax
jne 0x4976c9
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4976f3
push esi
lea ecx, [ebp + 0xc]
call fcn.00404030
mov esi, dword [ebp - 4]
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 4]
call fcn.00413880
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404d60
mov dword [esi + 0x1c], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x497724
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
mov eax, dword [ebp + 0x1d0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1d4]
xor ebx, ebx
test byte [0x506638], 1
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x70], ebx
mov esi, 0x506618
jne 0x497780
or dword [0x506638], 1
mov ecx, esi
call fcn.0047dc0c
push 0x4d17fa
call fcn.004a180a
pop ecx
cmp dword [0x506634], ebx
je 0x4977ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x506614]
sub ecx, eax
cmp ecx, 0x1388
ja 0x4977ab
cmp dword [ebp + 0x1d8], 1
jne 0x497854
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x497854
mov ecx, esi
call fcn.0048f021
push 0x228
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov edi, 0x22c
push ebx
mov dword [ebp - 0x68], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x497846
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00404030
lea ecx, [ebp - 0x6c]
call fcn.0040bf00
mov ecx, eax
call fcn.0040bf50
lea ecx, [ebp - 0x6c]
call fcn.00404fb0
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.0048fa01
mov ecx, dword [ebp - 0x60]
push edi
mov dword [eax], ecx
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004a0bd0
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
add ecx, 0xfffffff0
mov dword [ebp - 0x68], edi
call fcn.00404d60
lea eax, [ebp - 0x68]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4977ec
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x7c]
push dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
call fcn.00404030
lea ecx, [ebp - 0x6c]
call fcn.00404fb0
push esi
push dword [0x506630]
lea ecx, [ebp - 0x78]
call fcn.00470f5f
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.0047d200
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.004800e4
test al, al
jne 0x4978ae
test edi, edi
je 0x4978a7
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.0048fa01
mov eax, dword [eax]
mov dword [edi], eax
mov dword [ebp - 0x70], 1
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 0x1c4]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x1c8
leave
ret
Function at 0x498274
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
mov eax, dword [ebp + 0x1d4]
push esi
push edi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1d8]
xor edi, edi
test byte [0x506660], 1
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], edi
mov esi, 0x506640
jne 0x4982cf
or dword [0x506660], 1
mov ecx, esi
call fcn.0040b740
push 0x4d1811
call fcn.004a180a
pop ecx
cmp dword [0x50665c], edi
je 0x4982fa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x50663c]
sub ecx, eax
cmp ecx, 0x1388
ja 0x4982fa
cmp dword [ebp + 0x1dc], 1
jne 0x4983a7
push ebx
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4983a6
mov ecx, esi
call fcn.0040b8e0
push 0x228
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
mov edi, 0x22c
push ebx
mov dword [ebp - 0x64], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x49839b
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
call fcn.00404030
lea ecx, [ebp - 0x68]
call fcn.0040bf00
mov ecx, eax
call fcn.0040bf50
lea ecx, [ebp - 0x68]
call fcn.00404fb0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0040b760
mov ecx, eax
call fcn.0040bae0
push edi
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.004a0bd0
mov ecx, dword [ebp - 0x68]
add esp, 0xc
add ecx, 0xfffffff0
mov dword [ebp - 0x64], edi
call fcn.00404d60
lea eax, [ebp - 0x64]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x49833b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x68]
call fcn.00404030
lea ecx, [ebp - 0x68]
call fcn.00404fb0
push esi
push dword [0x506658]
lea ecx, [ebp - 0x74]
call fcn.00439df0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.0040b910
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.00439460
test al, al
jne 0x49841b
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0040b760
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
je 0x49841b
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0040b760
mov ecx, dword [ebp - 0x78]
push eax
call fcn.0040b9f0
mov dword [ebp - 0x6c], 1
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 0x1c8]
mov eax, dword [ebp - 0x6c]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0e91
add ebp, 0x1cc
leave
ret
Function at 0x49921f
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4ffeb0]
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 0x499327
mov eax, dword [0x4e220c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4e2210]
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 0x499327
push 3
pop ecx
cmp eax, ecx
je 0x499293
jbe 0x49928c
cmp eax, 5
jbe 0x499327
cmp eax, 6
je 0x499293
mov eax, esi
jmp 0x499329
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 SysReAllocString
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x4992c7
xor eax, eax
inc eax
jmp 0x499329
mov edi, 0x227
push edi
call fcn.0049f280
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 0x499312
mov eax, dword [esi + 0x1c]
cmp eax, 7
je 0x49930f
cmp eax, 4
jne 0x499312
mov dword [ebp - 0x30], ebx
push esi
call fcn.004a2e1b
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
jmp 0x499329
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
leave
ret

Function at 0x499338
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and eax, 0xffdf
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x4993a8
mov ecx, dword [0x4e220c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4e2210]
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 0x4993a3
dec eax
dec eax
je 0x49939f
dec eax
je 0x49939b
dec eax
je 0x499397
push dword [ebp + 8]
call fcn.0049921f
neg eax
sbb eax, eax
pop ecx
inc eax
jmp 0x4993aa
push 5
jmp 0x4993a5
push 4
jmp 0x4993a5
push 3
jmp 0x4993a5
push 2
pop eax
jmp 0x4993ab
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e91
leave
ret