joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a79d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004f18b0
mov esi, 0x400
push esi
push str.Sorry__one_of_360_Internet_Security_files__
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.004f74db
push esi
push edi
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.004fb482
push esi
push str._is_corrupted.__nTo_fix_this_issue__please_reinstall_360_Internet_Security.
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.004fb482
add esp, 0x3c
push 0x11
push str.360_Internet_Security
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x47a839
push 5
push ebx
push ebx
push dword [0x594654]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
call fcn.004fb3ea
int3

Function at 0x47ae46
Capabilities:
Check if file exists

Disassembly:
push 0x40
mov eax, 0x532a68
call fcn.004fc6ce
mov eax, dword [ebp + 0xc]
mov edi, edx
mov esi, ecx
push edi
push esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call fcn.0047b8e3
test eax, eax
jne 0x47af6b
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47af6b
push edi
call fcn.0040595b
pop ecx
push edi
test eax, eax
jne 0x47ae96
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
call fcn.0047a79d
call fcn.004289ae
mov ebx, eax
test ebx, ebx
je 0x47af6b
push str.CreateTrayClient
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47af64
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 1
call eax
mov edi, eax
test edi, edi
je 0x47af64
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jb 0x47af5d
push dword [ebp - 0x18]
and dword [ebp - 0x14], 0
mov ecx, edi
call fcn.0047b021
mov eax, dword [esi + 0x74]
test eax, eax
je 0x47af5d
mov edx, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x47af5d
lea eax, [ebp - 0x4c]
push eax
call fcn.0047af75
push dword [ebp - 0x1c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], ebx
call fcn.004056c8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [esi + 4]
cmp dword [eax + 0x18], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], edi
push ecx
je 0x47af41
add eax, 0x1c
call fcn.0047be11
lea esi, [ebp - 0x38]
call fcn.00444be2
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
call fcn.00405521
mov eax, edi
jmp 0x47af6d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
call fcn.004fc7a6
ret 0xc
Function at 0x47b27e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x527390
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
add ebx, 4
inc dword [ebx + 0x18]
mov dword [esp + 0x10], ebx
and dword [esp + 0x38], 0
push dword [ebx + 0xc]
mov edi, ebx
lea esi, [esp + 0x20]
call fcn.00480d46
mov eax, dword [esp + 0x1c]
push dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jmp 0x47b2fc
lea esi, [esp + 0x14]
call fcn.00467597
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 0xc]
je 0x47b33a
lea edi, [esp + 0x24]
call fcn.0047bc43
push dword [ebx + 0x10]
mov edi, ebx
lea esi, [esp + 0x20]
call fcn.00480d46
mov edi, esi
lea esi, [esp + 0x14]
call fcn.00473017
test al, al
jne 0x47b2df
xor esi, esi
or dword [esp + 0x38], 0xffffffff
push ebx
call fcn.0047bd8e
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
cmp dword [ebp + 0x14], ecx
jae 0x47b345
mov dword [ebp + 0x14], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x14]
lea edi, [eax + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x47b35e
xor eax, eax
jmp 0x47b366
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 3
mov edx, dword [edi + 0x10]
mov esi, edx
sub esi, ecx
sar esi, 3
push edx
cmp esi, eax
jae 0x47b386
xor esi, esi
lea ecx, [esp + 0x20]
inc esi
call fcn.0047bd66
mov dword [edi + 0x10], eax
jmp 0x47b3a8
lea esi, [esp + 0x18]
call fcn.00480d46
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push dword [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, edi
call fcn.0047bc9b
xor esi, esi
inc esi
jmp 0x47b318

Function at 0x480524
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
cmp dword [esi + 0x1c], eax
je 0x480545
inc eax
jmp 0x4805c5
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.004f18b0
add esp, 0xc
push 0x54f790
push 0x593e48
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4805c3
lea eax, [ebp - 0x210]
push eax
call fcn.004059c6
mov edi, eax
pop ecx
test edi, edi
je 0x4805c3
cmp edi, 0xffffffff
je 0x4805c3
push str.CreateObject
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
test eax, eax
je 0x4805bc
xor eax, eax
inc eax
mov dword [esi + 0x1c], eax
jmp 0x4805c5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004f189b
leave
ret
Function at 0x4805d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x40]
push edi
xor edi, edi
cmp eax, edi
je 0x480600
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x480600
cmp dword [ebp - 4], 0x103
jne 0x480600
xor eax, eax
inc eax
jmp 0x480654
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 0x20], edi
jne 0x48061a
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x20], eax
cmp eax, edi
je 0x48064e
cmp dword [esi + 0x24], edi
jne 0x48062c
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x24], eax
cmp eax, edi
je 0x48064e
push edi
push edi
push esi
push 0x480895
push edi
push edi
call fcn.004f5629
add esp, 0x18
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
je 0x48064e
cmp eax, edi
je 0x48064e
xor eax, eax
jmp 0x480653
call fcn.00426f67
pop ebx
pop edi
leave
ret
Function at 0x48550c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
jne 0x485532
push dword [ebp + 0xc]
call esi
neg eax
sbb eax, eax
and eax, 0x3ec
inc eax
inc eax
jmp 0x485549
push dword [ebp + 8]
call fcn.00485e6b
neg eax
sbb eax, eax
and eax, 0xfffffc12
pop ecx
add eax, 0x3ee
pop esi
pop ecx
pop ebp
ret
Function at 0x485ae1
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp dword [ebx + 4], esi
jne 0x485afb
xor eax, eax
jmp 0x485c9e
lea eax, [ebp + 8]
push eax
mov edi, ebx
mov dword [ebp + 8], esi
call fcn.00485a0e
cmp eax, 0x57
je 0x485af4
cmp eax, 2
jne 0x485b1b
mov dword [ebx], 4
jmp 0x485af4
cmp eax, 0x3ee
jne 0x485bc3
mov eax, dword [ebx + 4]
add eax, 0x410
push eax
call fcn.00485e6b
pop ecx
test eax, eax
je 0x485af4
test byte [ebp + 8], 1
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
je 0x485b9b
mov dword [ebx], 3
call fcn.004493cd
test eax, eax
je 0x485b7c
lea esi, [ebp - 0x18]
call fcn.00418846
mov eax, dword [ebx + 4]
push 0
lea ecx, [eax + 0x208]
push ecx
add eax, 0x410
push eax
call edi
mov dword [ebp - 4], eax
call fcn.00418922
xor esi, esi
jmp 0x485b92
mov eax, dword [ebx + 4]
push esi
lea ecx, [eax + 0x208]
push ecx
add eax, 0x410
push eax
call edi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
je 0x485af4
test byte [ebp + 8], 2
je 0x485c95
mov eax, dword [ebx + 4]
push esi
lea ecx, [eax + 0xa28]
push ecx
add eax, 0x410
push eax
mov dword [ebx], 2
call edi
jmp 0x485c8d
mov edi, dword [ebx + 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
add edi, 0x410
mov dword [ebp + 8], esi
mov dword [ebp - 0xc], esi
call fcn.0040b3b3
pop ecx
pop ecx
test al, al
je 0x485af4
mov edi, dword [ebx + 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
add edi, 0x208
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0040b3b3
pop ecx
pop ecx
test al, al
je 0x485af4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x485c21
jne 0x485c95
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x485c95
call fcn.004493cd
test eax, eax
je 0x485c55
lea esi, [ebp - 0x18]
call fcn.00418846
mov eax, dword [ebx + 4]
push 0
lea ecx, [eax + 0x208]
push ecx
add eax, 0x410
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
call fcn.00418922
xor esi, esi
jmp 0x485c6e
mov eax, dword [ebx + 4]
push esi
lea ecx, [eax + 0x208]
push ecx
add eax, 0x410
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
cmp edi, esi
je 0x485af4
mov eax, dword [ebx + 4]
push esi
lea ecx, [eax + 0xa28]
push ecx
add eax, 0x410
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x485af4
push ebx
call fcn.00485ca5
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x485ca5
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x414], ax
xor esi, esi
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.004f18b0
push dword [ebx + 4]
lea edi, [ebp - 0x414]
push str.SystemCurrentControlSetServices_s
push 0x104
call fcn.00427132
add esp, 0x18
test eax, eax
jl 0x485e5a
push esi
lea eax, [ebp - 0x418]
push eax
push esi
push 2
push esi
push esi
push esi
mov eax, edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x485e5a
push 4
pop edi
push edi
lea eax, [ebp - 0x41c]
push eax
push edi
push esi
push str.Start
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004f18b0
add esp, 0xc
push str.system32DRIVERS_
push 0x104
lea edx, [ebp - 0x20c]
call fcn.0042a4a0
test eax, eax
jl 0x485e5a
mov eax, dword [ebx + 4]
add eax, 0x820
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00428d32
test eax, eax
jl 0x485e5a
lea eax, [ebp - 0x20c]
push eax
call fcn.004f192a
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.ImagePath
push dword [ebp - 0x418]
call esi
mov eax, dword [ebx + 4]
push edi
add eax, 0xc34
push eax
push edi
push 0
push str.Type
push dword [ebp - 0x418]
call esi
mov eax, dword [ebx + 4]
push edi
add eax, 0xc38
push eax
push edi
push 0
push str.ErrorControl
push dword [ebp - 0x418]
call esi
mov eax, dword [ebx + 4]
mov edi, 0x618
add eax, edi
push eax
call fcn.004f192a
pop ecx
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebx + 4]
add eax, edi
push eax
push 1
push 0
push str.DisplayName
push dword [ebp - 0x418]
call esi
mov ebx, str.Early_Launch
push ebx
call fcn.004f192a
pop ecx
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.Group
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret 4
Function at 0x4885a9
Capabilities:
Resume thread

Disassembly:
push 0x21c
mov eax, 0x5263bd
call fcn.004fc737
mov esi, 0x590f51
push esi
push 0x22c
call fcn.004f5c13
xor ebx, ebx
pop ecx
pop ecx
cmp eax, ebx
je 0x4885f3
or dword [eax], 0xffffffff
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x220], ebx
mov dword [eax + 0x224], ebx
mov dword [eax + 0x228], ebx
jmp 0x4885f5
xor eax, eax
push esi
mov dword [0x59370c], eax
xor ecx, ecx
push 2
pop edx
mov eax, 0x105
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f5946
push esi
push 0x20
mov dword [0x593710], eax
call fcn.004f5c13
add esp, 0x10
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x488639
push eax
call fcn.00443a12
jmp 0x48863b
xor eax, eax
or esi, 0xffffffff
mov dword [ebp - 4], esi
push 0x593238
mov dword [0x593708], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.004d2b60
mov dword [0x5889a8], eax
cmp dword [0x59370c], ebx
je 0x488704
cmp dword [0x593710], ebx
je 0x488704
cmp dword [0x593708], ebx
je 0x488704
call fcn.004d3350
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea esi, [ebp - 0x220]
mov ecx, edi
call fcn.004d3440
xor esi, esi
inc esi
cmp eax, esi
pop ecx
jl 0x4886d0
lea eax, [ebp - 0x220]
push eax
push str..pipe_ws
push 0x208
push dword [0x593710]
call fcn.0042a55b
mov ecx, dword [0x593710]
add esp, 0x10
xor eax, eax
mov word [ecx + 0x208], ax
call fcn.004addd9
cmp eax, esi
jne 0x4886f8
cmp byte [0x59378e], bl
je 0x4886f8
mov eax, dword [0x5882dc]
mov byte [0x59378d], bl
cmp eax, 0xffffffff
je 0x4886f8
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [0x593700], esi
mov dword [0x593704], ebx
mov eax, esi
call fcn.004fc7ba
ret

Function at 0x48be82
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
mov eax, dword [ebp + 8]
call fcn.0048b417
test al, al
jne 0x48beb4
push 0x64
call sub.KERNEL32.dll_Sleep
call esi
sub eax, edi
cmp eax, 0x7d0
jb 0x48be91
push 0xfffffffffffffffc
pop eax
jmp 0x48bebf
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.0048bda5
pop edi
pop esi
pop ebp
ret 8

Function at 0x48c585
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push 0x5517ac
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x48c5aa
cmp eax, 5
jne 0x48c5ad
xor edi, edi
inc edi
test esi, esi
je 0x48c5bf
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x48cbf2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x48c5c4
push eax
push eax
mov dword [ebp - 4], eax
mov byte [0x593777], al
call fcn.004f5629
add esp, 0x18
mov dword [0x5887d4], eax
leave
ret
Function at 0x48d0a9
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp byte [esi + 0x18], bl
jne 0x48d133
cmp dword [0x593778], ebx
jne 0x48d0e2
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x48d0e2
push str.CancelIoEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x593778], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0xac], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0xa4], eax
call edi
mov dword [esi + 0xa0], eax
mov eax, esi
call fcn.0048d784
lea eax, [esi + 0xb0]
push eax
push ebx
push esi
push 0x48d7ce
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xa8], eax
mov byte [esi + 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop ecx
ret
Function at 0x48dfbf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor eax, eax
movzx esi, ax
push edi
add edx, 4
mov eax, esi
shl esi, 0x10
or eax, esi
mov edi, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push edx
lea eax, [ebp - 8]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x208
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop edi
pop esi
leave
ret
Function at 0x48eb67
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x218
mov eax, 0x526382
call fcn.004fc737
mov esi, 0x5955dc
mov dword [ebp - 0x224], esi
call fcn.004048e0
and dword [ebp - 4], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004f18b0
and dword [ebp - 0x21c], 0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x48ec0c
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004056c8
push str._softmgrdata_softpackgelist.dat
push esi
call fcn.00404758
mov eax, esi
call fcn.004fc7ba
ret
Function at 0x48ec14
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x70
mov eax, 0x52d62d
call fcn.004fc6ce
lea eax, [ebp - 0x64]
push eax
call fcn.0046b0ed
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0048ee62
lea eax, [ebp - 0x7c]
push eax
call fcn.0046b0ed
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], ebx
sar eax, 2
test eax, eax
jbe 0x48ed7d
jmp 0x48ec5f
xor ebx, ebx
mov edi, dword [ebp - 0x18]
lea esi, [ebp - 0x64]
call fcn.004bbe71
mov eax, dword [eax]
sub eax, 0x10
call fcn.00404942
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ed59
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x48ed4d
cmp esi, 0xffffffff
je 0x48ecd2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc edi
cmp esi, ebx
je 0x48ecdd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x48ed4d
push ebx
call fcn.004f5c9c
mov ebx, eax
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x48ed09
and dword [ebp - 0x20], eax
and dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
jmp 0x48ed15
lea eax, [ebp - 0x30]
push eax
lea esi, [ebp - 0x20]
call fcn.004749a9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp edi, eax
jl 0x48ed37
jg 0x48ed24
cmp ebx, ecx
jbe 0x48ed37
sub ebx, ecx
sbb edi, eax
mov dword [ebp - 0x48], edi
js 0x48ed4d
jg 0x48ed37
cmp ebx, 0x93a80
jb 0x48ed4d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ed59
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x7c]
call fcn.00429e6d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x58]
inc dword [ebp - 0x18]
sar eax, 2
cmp dword [ebp - 0x18], eax
jb 0x48ec5d
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 8]
call fcn.0048ef9f
lea esi, [ebp - 0x7c]
call fcn.0042a18f
push dword [ebp - 0x7c]
call fcn.004f1890
pop ecx
lea esi, [ebp - 0x64]
call fcn.0042a18f
push dword [ebp - 0x64]
call fcn.004f1890
pop ecx
call fcn.004fc7a6
ret 4
Function at 0x48ee62
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x52d5fa
call fcn.004fc6ce
mov eax, dword [ebp + 0xc]
call fcn.0041b354
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x48ef94
cmp ebx, 0xffffffff
je 0x48ef89
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x48ef89
cmp edi, 0x6400000
jae 0x48ef89
lea eax, [edi + 2]
push 0x590f51
push eax
call fcn.004f5946
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x48ef89
lea eax, [edi + 2]
push eax
push 0
push esi
call fcn.004f18b0
and dword [ebp - 0x10], 0
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48ef82
cmp edi, dword [ebp - 0x10]
jne 0x48ef82
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x590e04]
mov ecx, 0x590e04
xor ebx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
cmp byte [esi], 0xff
jne 0x48ef44
cmp byte [esi + 1], 0xfe
jne 0x48ef44
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004056c8
push 0x54a270
lea eax, [ebp - 0x14]
push eax
call fcn.004056ee
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0048edb3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x14], 1
call fcn.00405521
push esi
call fcn.004f2b13
pop ecx
test ebx, ebx
je 0x48ef94
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
call fcn.004fc7a6
ret 8