joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c42a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c163
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x624
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 8]
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CSynDeviceGestureActionService.0
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.004c4920
mov dword [edi + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x230]
mov dword [ebp + 8], 0x101
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x4c431a
lea ecx, [eax + 0x40]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push ebx
push edx
push 0x10000101
push ecx
call dword [eax + 0xc]
or ecx, 0xffffffff
test eax, eax
lea eax, [ebp - 0x230]
cmove ecx, dword [ebp - 0x10]
push ecx
push eax
push str..pipe_sC01BC476_A852_4dfd_B33F_E308F3497BF4_li
lea eax, [ebp - 0x630]
push 0x200
push eax
call fcn.004d1718
push 0x50f8e4
push 0x523c6c
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004c8bc0
add esp, 0x24
cmp dword [eax + 0x10], 0
setne bl
cmp dword [ebp - 0x14], 8
jb 0x4c4381
push dword [ebp - 0x28]
call fcn.004cf489
add esp, 4
test bl, bl
pop ebx
je 0x4c43d2
push 0x50f8e4
push 0x523c6c
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004c8bc0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4c43a6
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x630]
push eax
push str._s_s
push 0x200
push eax
call fcn.004d1718
add esp, 0x14
cmp dword [ebp - 0x14], 8
jb 0x4c43d2
push dword [ebp - 0x28]
call fcn.004cf489
add esp, 4
lea eax, [ebp - 0x630]
push 0x3d
push eax
call fcn.00402960
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x4c43f2
push edi
mov ecx, eax
call fcn.00402030
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c5450
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50c2b0
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
call fcn.004c4a10
mov esi, eax
test esi, esi
jne 0x4c54ab
test byte [0x652fc0], 4
je 0x4c56a8
push str.No_destination_file_name_specified_in_registry_n
push 3
push str.SaveUserRegValues
call fcn.004cb3a0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x533860
push esi
call fcn.004d545a
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4c54f2
test byte [0x652fc0], 4
je 0x4c56a8
push esi
push str.Cant_open_file_for_writting___s_n
push 3
push str.SaveUserRegValues
call fcn.004cb3a0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [str.SoftwareSynaptics]
mov edi, 0x652d5c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c5500
mov eax, dword [0x659210]
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 3]
mov dword [ebp - 0x10], esi
test eax, eax
jne 0x4c55e9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x50daec
call fcn.004158d0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x50daec
call fcn.004158d0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x50daec
call fcn.004158d0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x50daec
call fcn.004158d0
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.SynSaveUserRegistryMutex
call fcn.004158d0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.004c8240
add esp, 0x7c
cmp dword [eax + 0x14], 8
jb 0x4c55a7
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp dword [ebp - 0x28], 8
mov dword [0x659210], eax
jb 0x4c55cd
push dword [ebp - 0x3c]
call fcn.004cf489
mov eax, dword [0x659210]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], cx
test eax, eax
je 0x4c569f
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4c567d
mov ecx, dword [0x652d5c]
test ecx, ecx
je 0x4c566f
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c5610
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + esi]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce868
push dword [edi]
mov esi, eax
push dword [0x652d58]
push 0x5187a4
push esi
call fcn.004d1675
push esi
push SysReAllocString
push ebx
call fcn.004c5310
push esi
call fcn.004d0e0a
mov ecx, dword [edi + 4]
add edi, 4
mov esi, dword [ebp - 0x10]
add esp, 0x24
test ecx, ecx
jne 0x4c5607
push dword [0x659210]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4c569f
push dword [0x659210]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x659210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x659210], 0
push ebx
call fcn.004d187c
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5f50
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c2f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push edi
push 0
lea ecx, [ebp - 0x64]
call fcn.004b90e0
xor edi, edi
mov dword [ebp - 4], 0
push edi
push edi
push edi
push str.SoftwareSynapticsSynTPInstall
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x10], 1
call fcn.004bcca0
test eax, eax
je 0x4c6129
push edi
lea eax, [ebp - 0x10]
push eax
push eax
push 0x5358c4
lea ecx, [ebp - 0x60]
call fcn.004cbcf0
test byte [0x652fc0], 4
je 0x4c5fd9
push dword [ebp - 0x10]
push str.EnhancementLaunchMode__x_n
push 3
push str.CheckEnhancementService
call fcn.004cb3a0
add esp, 0x10
test byte [ebp - 0x10], 1
je 0x4c6129
push esi
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x30], edi
push 0
push 0
movdqu xmmword [ebp - 0x48], xmm0
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4c6036
test byte [0x652fc0], 2
je 0x4c6128
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
push 2
push str.CheckEnhancementService
call fcn.004cb3a0
add esp, 0x10
jmp 0x4c6128
push 0x50f8e4
push 0x523c6c
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.004c8bc0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4c6056
mov eax, dword [eax]
push eax
push str.SynTPEnhService
push str._s_s
lea eax, [ebp - 0x26c]
push 0x104
push eax
call fcn.004d1718
add esp, 0x14
cmp dword [ebp - 0x18], 8
jb 0x4c6086
push dword [ebp - 0x2c]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x26c]
push 4
push eax
push esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4c60d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x4c6114
test byte [0x652fc0], 2
je 0x4c6114
push eax
push str.OpenService_failed_w_err_0x_08lx_n
push 2
push str.CheckEnhancementService
call fcn.004cb3a0
add esp, 0x10
jmp 0x4c6114
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4c6114
test byte [0x652fc0], 4
je 0x4c6108
push dword [ebp - 0x44]
push str.Service_Status:__x_n
push 3
push str.CheckEnhancementService
call fcn.004cb3a0
add esp, 0x10
cmp dword [ebp - 0x44], 4
mov eax, 1
cmove edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4c6128
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.004b93f0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4c72c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c39e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x659274]
mov dword [ebp - 0x10], 0
test al, 1
jne 0x4c733d
or eax, 1
mov dword [0x659274], eax
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x50daec
mov ecx, 0x65925c
mov dword [0x659270], 7
mov dword [0x65926c], 0
mov word [0x65925c], ax
call fcn.0040a410
push 0x50cb00
call fcn.004d08ee
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x659258], 0
push esi
jne 0x4c739c
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x4c7368
xor ecx, ecx
jmp 0x4c7380
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7371
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, 0x65925c
push eax
call fcn.0040a410
mov dword [0x659258], 1
mov esi, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
push 0
push 0x65925c
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.0040a2f0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4c7750
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push 0x206
push eax
mov word [ebp - 0x228], ax
xor esi, esi
lea eax, [ebp - 0x226]
mov dword [ebx], 1
push eax
call fcn.004cf600
add esp, 0xc
mov dword [ebp - 8], 0x104
lea eax, [ebp - 8]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4c7841
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0044cb10
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4c77c2
mov eax, dword [eax]
push edi
lea ecx, [ebp + 8]
push ecx
push 1
push eax
push 0
call sub.NETAPI32.dll_NetUserGetInfo
cmp dword [ebp - 0xc], 8
mov edi, eax
jb 0x4c77e4
push dword [ebp - 0x20]
call fcn.004cf489
add esp, 4
test edi, edi
je 0x4c7829
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 1
push 0
call sub.NETAPI32.dll_NetWkstaUserGetInfo
mov edi, eax
test edi, edi
jne 0x4c7813
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push 1
push dword [eax]
push dword [eax + 0xc]
call sub.NETAPI32.dll_NetUserGetInfo
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c7820
push eax
call sub.NETAPI32.dll_NetApiBufferFree
test edi, edi
je 0x4c7829
mov ecx, dword [ebp + 8]
jmp 0x4c7836
mov ecx, dword [ebp + 8]
mov esi, 1
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
pop edi
test ecx, ecx
je 0x4c7841
push ecx
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c7890
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x22c], 0x22c
cmp esi, 0xffffffff
je 0x4c791b
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4c7914
push edi
mov edi, dword [ebp + 8]
jmp 0x4c78d0
cmp dword [ebp - 0x224], edi
je 0x4c78f9
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4c78d0
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004d1327
add esp, 0xc
mov ebx, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c8eb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c54e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
mov eax, dword [0x6592b8]
mov dword [ebp - 0x10], 0
test al, 1
jne 0x4c8f2d
or eax, 1
mov dword [0x6592b8], eax
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x50daec
mov ecx, 0x6592a0
mov dword [0x6592b4], 7
mov dword [0x6592b0], 0
mov word [0x6592a0], ax
call fcn.0040a410
push 0x50cbc0
call fcn.004d08ee
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x200
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x410], 0
jne 0x4c8f50
xor ecx, ecx
jmp 0x4c8f6f
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c8f60
sub ecx, edx
sar ecx, 1
push esi
push ecx
lea eax, [ebp - 0x410]
mov ecx, 0x6592a0
push eax
call fcn.0040a410
mov esi, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
push eax
push 0x6592a0
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.0040a2f0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4c91d0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
cmp dword [0x659250], 0
jne 0x4c92c2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov word [ebp - 4], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c92c2
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4c92b9
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4c92b9
push esi
xor esi, esi
cmp dword [ebp - 0x414], esi
jbe 0x4c92a5
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
lea edi, [ebp - 0x410]
jmp 0x4c9280
push dword [edi]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x4c9299
inc esi
add edi, 8
cmp esi, dword [ebp - 0x414]
jb 0x4c9280
jmp 0x4c92a3
mov dword [0x659254], 1
pop edi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [0x659250], 1
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x659254]
mov esp, ebp
pop ebp
ret
Function at 0x4c9ab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4c9ac1
lea eax, [esi + 1]
pop esi
pop ebp
ret
push edi
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4c9b5a
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4c9b5a
test byte [0x652fc0], 2
je 0x4c9b25
push dword [ebp + 0xc]
push str.Did_not_close_within_the_TimeOut__d_ms__lets_terminate_it_
push 2
push str.KillWindowsProcessTimeOut
call fcn.004cb3a0
add esp, 0x10
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4c9b5a
mov eax, dword [ebp + 8]
push eax
push eax
push esi
push esi
push str.Cannot_kill_hWnd_0x_x___d__with_process_Id_0x_x__d_
push 0
push str.KillWindowsProcessTimeOut
call fcn.004cb3a0
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4caec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x298]
sub esp, 0x298
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4caed4
push esi
push 0x44
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004cf600
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
add esp, 0xc
mov esi, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x90], 0x44
mov word [ebp - 0x60], si
cmovne ecx, eax
lea eax, [ebp - 0x90]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x298]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4cafa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x4caf9d
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004cf600
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x298]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4cb940
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
cmp edx, reloc.OLEAUT32.dll_SysReAllocString
jne 0x4cb978
push 0x267
push str.RegistryEx.cpp
push str.hStartKey___HKEY_LOCAL_MACHINE
call fcn.004904e0
mov edx, dword [ebp + 8]
add esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4cba43
mov ecx, edi
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cb990
sub ecx, esi
sar ecx, 1
je 0x4cba43
lea eax, [ebp - 4]
push eax
push 0x10008
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cba43
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x200
push eax
lea eax, [ebp - 0x40c]
push eax
push 0
push dword [ebp - 4]
call ebx
mov esi, eax
cmp esi, 0x103
je 0x4cba1e
test esi, esi
jne 0x4cba2a
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
call fcn.004cb940
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffc0e
add esi, 0x3f2
je 0x4cb9c7
jmp 0x4cba2a
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop ebx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4cba90
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0x80000002
jne 0x4cbac0
cmp dword [esi + 0xc], 0
jne 0x4cbac0
push 0x2e9
push str.RegistryEx.cpp
push str.m_hKey___HKEY_LOCAL_MACHINE__m_bWriteHKLM
call fcn.004904e0
add esp, 0xc
mov eax, dword [esi + 8]
test eax, eax
je 0x4cbb22
mov edi, dword [ebp + 8]
test edi, edi
je 0x4cbb22
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test esi, esi
je 0x4cbafc
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4cbb22
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test esi, esi
je 0x4cbb13
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4cbb30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4cbb42
cmp dword [ebp + 8], 0
jne 0x4cbb59
push 0x2d3
push str.RegistryEx.cpp
push str.m_hKey__pszSubKeyNameBuf
call fcn.004904e0
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x14]
push dword [ebp + 8]
push ecx
push dword [esi + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
neg eax
pop esi
sbb eax, eax
inc eax
pop ebp
ret 8

Function at 0x4cbb80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x20]
cmp dword [esi + 8], 0
je 0x4cbbae
cmp dword [ebp + 8], 0
je 0x4cbbae
test ebx, ebx
je 0x4cbbae
cmp dword [ebp + 0x14], 0
je 0x4cbbae
cmp dword [ebp + 0x18], 0
je 0x4cbbae
test edi, edi
jne 0x4cbbc5
push 0x2b6
push str.RegistryEx.cpp
push str.m_hKey__pszValueNameBuf__pdwValueNameLen__pdwValueType__pDataBuf__pdwDataLen
call fcn.004904e0
add esp, 0xc
mov eax, dword [ebp + 0xc]
push edi
push dword [ebp + 0x18]
mov dword [ebx], eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
push 0
mov dword [edi], eax
mov ecx, dword [esi + 0x14]
push ebx
push dword [ebp + 8]
push ecx
push dword [esi + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 0x1c
Function at 0x4cbc00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
cmp esi, edi
jne 0x4cbc32
push 0x183
push str.RegistryEx.cpp
push str.pvValue___pvDefaultValue
call fcn.004904e0
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
cmp dword [ebp + 8], ecx
je 0x4cbcd9
test esi, esi
je 0x4cbcd9
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4cbcd9
mov eax, dword [eax + 8]
test eax, eax
je 0x4cbcbc
mov ecx, dword [ebx]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x4cbc80
lea edx, [ebp + 0xc]
push edx
push 0x20019
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cbcb9
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea ecx, [ebp - 8]
push ecx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x18], 0
mov ebx, eax
je 0x4cbca3
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4cbcb9
xor eax, eax
cmp dword [ebp - 8], 3
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
test edi, edi
je 0x4cbcd9
push ecx
push edi
push esi
call fcn.004cf6e0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14