joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af131
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x280
mov eax, 0x52c07d
call fcn.004fc737
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x22c]
call fcn.004059e3
lea ecx, [ebp - 0x220]
push str.LeakFixHelper64.exe
xor ebx, ebx
push ecx
mov edi, eax
mov dword [ebp - 4], ebx
call fcn.00405a46
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.00405521
push dword [ebp - 0x220]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x4af31a
push dword [ebp - 0x220]
call fcn.0040595b
pop ecx
test eax, eax
je 0x4af31a
lea eax, [ebp - 0x228]
call fcn.004059e3
lea ecx, [ebp - 0x224]
push str.LeakFixHelper64.dll
push ecx
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00405a46
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.00405521
push dword [ebp - 0x224]
call esi
test eax, eax
je 0x4af334
push dword [ebp - 0x224]
call fcn.0040595b
pop ecx
test eax, eax
je 0x4af334
push 0x40
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.004f18b0
xor eax, eax
mov dword [ebp - 0x240], ebx
lea edi, [ebp - 0x23c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
mov dword [ebp - 0x28c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 5
pop eax
mov word [ebp - 0x25c], ax
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor edi, edi
lea eax, [ebp - 0x21a]
push ebx
inc edi
push eax
mov dword [ebp - 0x260], edi
call fcn.004f18b0
add esp, 0xc
push 0x53a3d8
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push str.__s___s
push 0x103
push eax
call fcn.004f9a1c
add esp, 0x14
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4af30c
push 0x3e8
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x240]
call esi
xor esi, esi
push str.GlobalSystem_ShutDown_Notify
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
cmp eax, ebx
jne 0x4af332
push 0x64
call sub.KERNEL32.dll_Sleep
inc esi
cmp esi, 0xa
jl 0x4af2e2
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00405521
xor eax, eax
call fcn.004fc7ba
ret 4
mov ebx, edi
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00405521
mov eax, ebx
jmp 0x4af32a
Function at 0x4af354
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
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
jne 0x4af375
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4af371
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
neg eax
sbb eax, eax
neg eax
leave
ret
Function at 0x4af899
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp ebx, esi
je 0x4af907
push ebx
call fcn.004f192a
pop ecx
test eax, eax
je 0x4af907
cmp dword [ebp + 0xc], esi
je 0x4af907
push esi
push ebx
call fcn.004fbb24
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x4af907
push dword [ebp + 0xc]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x4af907
push ebx
call fcn.004f192a
pop ecx
push 4
push 0x1000
lea eax, [eax + eax + 2]
push eax
push esi
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, esi
jne 0x4af910
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4af933
push 0x8000
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x4af900
push 0x555ed0
push str.Kernel32
call fcn.004289ae
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], esi
mov dword [0x5937c8], esi
call fcn.00475c98
test al, al
je 0x4af979
push str.CreateRemoteThreadEx
push str.KERNELBASE.dll
call fcn.004289ae
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5937d0], eax
mov eax, dword [0x5937c8]
push esi
push esi
cmp eax, esi
je 0x4af99d
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
push edi
push esi
push 0x1fffff
push ecx
call eax
jmp 0x4af9c2
mov eax, dword [0x5937d0]
cmp eax, esi
je 0x4af9b2
push esi
push ebx
push dword [ebp + 0xc]
push esi
push esi
push edi
call eax
jmp 0x4af9bf
push ebx
push dword [ebp + 0xc]
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
je 0x4af923
push 0x1388
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
inc eax
jmp 0x4af909

Function at 0x4afd84
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0050ead0
and dword [ebp - 0x1004], 0
push 0xffc
lea eax, [ebp - 0x1000]
push 0
push eax
call fcn.004f18b0
and dword [ebp - 4], 0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4afdcd
leave
ret
mov eax, dword [ebp - 4]
shr eax, 2
leave
ret
Function at 0x4b1256
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4b1279
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4b1274
xor eax, eax
pop ebp
ret

Function at 0x4b1288
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004f18b0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], str._s:15
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x38], 0x1400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x4b12da
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne al
pop esi
leave
ret
Function at 0x4b1358
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52bfaf
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x48c], eax
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
push 0x5517ac
call fcn.004b1256
pop ecx
test eax, eax
jne 0x4b156d
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [esp + 0x40]
push esi
push eax
call fcn.004f18b0
add esp, 0xc
push 0x10
lea eax, [esp + 0x30]
push esi
push eax
mov dword [esp + 0x48], edi
call fcn.004f18b0
mov eax, dword [0x590e04]
add esp, 0xc
mov ecx, 0x590e04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, 0x400
lea eax, [esp + 0x14]
mov dword [esp + 0x4a8], esi
call fcn.00428e31
mov dword [esp + 0x20], eax
push 0x53a3d8
lea eax, [esp + 0x14]
push eax
call fcn.004056ee
lea eax, [esp + 0x18]
push eax
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x4bc], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b1555
mov edi, 0x208
push edi
mov word [esp + 0x88], ax
lea eax, [esp + 0x8a]
push esi
push eax
call fcn.004f18b0
add esp, 0xc
push edi
lea eax, [esp + 0x88]
push esi
push eax
mov dword [esp + 0x34], edi
call fcn.004f18b0
add esp, 0xc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x24]
push eax
push esi
push str.Path
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b154b
mov word [esp + 0x28c], ax
mov eax, dword [esp + 0x1c]
dec eax
jne 0x4b14db
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004056ee
lea edi, [esp + 0x10]
mov byte [esp + 0x4a8], 2
call fcn.00404477
mov byte [esp + 0x4a8], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00405521
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x20]
push str.safemonQHWatchdog.exe
push dword [esp + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b1555
push edi
call fcn.0040595b
pop ecx
test eax, eax
je 0x4b1555
push edi
lea eax, [esp + 0x88]
push str.__s___install
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
push esi
push esi
push 0x400
push esi
push esi
push esi
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x4b1555
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00405521
mov ecx, dword [esp + 0x4a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x48c]
xor ecx, esp
call fcn.004f189b
mov esp, ebp
pop ebp
ret
Function at 0x4b1a65
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x210], ebx
mov byte [ebx + 0x410], 0
call fcn.004b1c1b
test al, al
je 0x4b1c0c
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004f18b0
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
mov edi, 0x103
push edi
lea eax, [ebp - 0x20c]
push eax
push str._SystemDrive_
call esi
cmp eax, 3
jne 0x4b1c01
push 2
lea ecx, [ebp - 0x20c]
lea eax, [ebx + 0x208]
push ecx
push eax
call fcn.004f2c32
add esp, 0xc
test eax, eax
jne 0x4b1c01
cmp word [ebp - 0x208], ax
jne 0x4b1c01
mov ebx, 0x208
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004f18b0
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push eax
push str._windir_
call esi
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x210]
add eax, ebx
push eax
call fcn.004f52b9
pop ecx
pop ecx
test eax, eax
je 0x4b1b5a
mov eax, dword [ebp - 0x210]
mov byte [eax + 0x410], 1
jmp 0x4b1c08
push ebx
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f18b0
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push eax
push str._SystemRoot_
call esi
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x210]
add eax, 0x208
push eax
call fcn.004f52b9
pop ecx
pop ecx
test eax, eax
jne 0x4b1b48
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004f18b0
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push eax
push str._ComSpec_
call esi
mov edi, dword [ebp - 0x210]
push edi
call fcn.004f192a
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004f2c32
add esp, 0x10
test eax, eax
jne 0x4b1bf8
lea eax, [ebp + esi*2 - 0x20c]
push str.cmd.exe
push eax
call fcn.004f52b9
pop ecx
pop ecx
test eax, eax
jne 0x4b1bf8
xor al, al
jmp 0x4b1c0a
mov byte [edi + 0x410], 1
jmp 0x4b1c08
mov byte [ebx + 0x410], 1
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret 4

Function at 0x4b1c1b
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp word [esi], 0
mov edi, 0x103
lea ebx, [edi + 1]
jne 0x4b1c48
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 3
jb 0x4b1c3f
cmp eax, ebx
jb 0x4b1c48
xor eax, eax
mov word [esi], ax
xor al, al
jmp 0x4b1c67
add esi, 0x208
cmp word [esi], 0
jne 0x4b1c65
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 3
jb 0x4b1c3f
cmp eax, ebx
jae 0x4b1c3f
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4b1c6b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push edi
lea esi, [eax + 0x208]
push esi
push str.windir
mov dword [ebp - 0x224], eax
call ebx
push esi
push str.SystemRoot
call ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.004f18b0
push dword [ebp - 0x224]
mov esi, str.cmd.exe
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004f192a
add esp, 0x10
push dword [ebp - 0x224]
mov esi, 0x104
push esi
lea edx, [ebp - 0x220]
mov edi, eax
call fcn.0042a4a0
lea eax, [ebp - 0x18]
push eax
sub esi, edi
push esi
lea edx, [ebp + edi*2 - 0x220]
call fcn.0042a4a0
lea eax, [ebp - 0x220]
push eax
push str.ComSpec
call ebx
xor eax, eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x220]
push eax
push str.SystemDrive
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret 4

Function at 0x4b29e5
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4b2a40
push 4
push str.QHActiveDefense
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4b2a40
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4b2a32
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b2a37
mov eax, dword [ebp - 0x20]
mov bl, 1
push dword [ebp - 4]
mov dword [esi], eax
call edi
jmp 0x4b2a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 8]
call edi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x4b2d91
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x23c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x236]
push eax
call fcn.004f18b0
add esp, 0xc
push 0xa
pop ecx
mov esi, str.softmgr_somkernl.dll
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
push eax
push 0x593e48
lea eax, [ebp - 0x238]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b2e0e
lea eax, [ebp - 0x238]
push eax
jmp 0x4b2e13
push 0x53a3d8
push ebx
call fcn.004056ee
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret
Function at 0x4b3c82
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4b3c90
push 0xd
pop eax
jmp 0x4b3cc3
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4b3c97
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4b40d6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0042a368
mov ebx, eax
cmp ebx, esi
je 0x4b413e
cmp dword [ebp - 0x214], esi
je 0x4b4137
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4b41d9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4b4166
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.004b40d6
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x4b41ea
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], pe_nt_image_headers32
call ebx
test eax, eax
je 0x4b4146
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x4b41b1
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x4b41d7
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x4b41fe
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x4b41d9
Function at 0x4b4b1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x41c
mov eax, 0x5208d9
call fcn.004fc737
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x414], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x418], eax
cmp eax, esi
jne 0x4b4b72
call fcn.00426f67
mov esi, eax
jmp 0x4b4c73
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4b4b8b
call fcn.00426f67
jmp 0x4b4c65
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x4b4b81
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x4b4bd7
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x4b4bcd
lea eax, [ebp - 0x414]
call fcn.004b3cdc
mov eax, 0x8007000e
jmp 0x4b4c8e
push 2
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.004b389f
add esp, 0xc
cmp dword [ebp - 0x41c], 0x400
jbe 0x4b4c09
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
call fcn.004b3c6d
jmp 0x4b4c15
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x414], esi
jne 0x4b4c2b
mov esi, 0x8007000e
jmp 0x4b4c67
push edi
push dword [ebp - 0x414]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4b4b81
mov edx, dword [ebp - 0x414]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x414]
lea edx, [ebp - 0x424]
call fcn.004b49dc
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x4b4c8c
lea eax, [ebp - 0x414]
call fcn.004b3cdc
mov eax, esi
call fcn.004fc7ba
ret 0xc

Function at 0x4b52ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.UserExperience
push str.Software360TotalSecurityExperience
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call edi
cmp dword [ebp - 4], 0
je 0x4b5311
xor eax, eax
inc eax
jmp 0x4b5340
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.EnableUE
push str.Software360Safe
push SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call edi
xor eax, eax
cmp dword [ebp - 4], eax
setne al
pop edi
pop esi
leave
ret
Function at 0x4b5344
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xa2c
mov eax, 0x528a3f
call fcn.004fc737
xor ebx, ebx
cmp dword [esi], ebx
je 0x4b5367
xor eax, eax
cmp dword [esi + 0x1c], ebx
setne al
call fcn.004fc7ba
ret
call fcn.004b52ce
test eax, eax
jne 0x4b5373
inc eax
jmp 0x4b5361
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0xa38]
call fcn.0048eb45
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x4b53a3
xor eax, eax
cmp dword [esi + 0x1c], ebx
setne al
mov ebx, eax
push dword [ebp - 0xa38]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x4b5361
cmp dword [esi + 0x34], ebx
je 0x4b5393
push 0x810
lea eax, [ebp - 0xa30]
push ebx
push eax
call fcn.004f18b0
add esp, 0xc
push 0x54f244
mov edi, pe_nt_image_headers32
push edi
lea edx, [ebp - 0xa30]
mov dword [ebp - 0xa34], 0x814
call fcn.0042a4a0
cmp dword [esi + 0x38], 8
jb 0x4b53e8
mov eax, dword [esi + 0x24]
jmp 0x4b53eb
lea eax, [esi + 0x24]
push eax
push edi
lea edx, [ebp - 0x830]
call fcn.0042a4a0
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea eax, [ebp - 0x21c]
jl 0x4b548a
push 0x5568e0
push eax
call fcn.00428d32
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x21c]
push eax
call edi
test eax, eax
jne 0x4b545d
lea eax, [ebp - 0x21c]
push eax
call fcn.004fbe3d
pop ecx
push str.LogInfo
lea eax, [ebp - 0x21c]
push eax
call fcn.00428d32
lea eax, [ebp - 0x21c]
push eax
call edi
test eax, eax
jne 0x4b549e
lea eax, [ebp - 0x21c]
push eax
call fcn.004fbe3d
pop ecx
jmp 0x4b549e
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4b5393
lea eax, [ebp - 0x21c]
push eax
push 0x208
lea eax, [ebp - 0x630]
push eax
call fcn.0042653b
lea edi, [esi + 0x1c]
push edi
call fcn.004b2bb6
call fcn.004b1155
test eax, eax
jne 0x4b54e7
mov eax, dword [edi]
cmp eax, ebx
je 0x4b54e7
mov ecx, dword [eax]
lea edx, [ebp - 0xa34]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4b54e9
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
xor eax, eax
cmp dword [edi], ebx
mov dword [esi], 1
jmp 0x4b538e