joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x461008]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x461008]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x30], 7
xor bl, bl
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x250], eax
lea ecx, [esp + 0x1c]
movzx eax, word [str.SYSTEMCurrentControlSetServicesEventLogApplication_]
neg eax
sbb eax, eax
and eax, 0x37
push eax
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
call fcn.00404220
movzx eax, word [0x44bdb8]
lea ecx, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, 0xf
push eax
push 0x44bdb8
call fcn.00403ce0
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x404969
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x404a15
push 0x104
lea eax, [esp + 0x38]
push eax
push dword [0x4636f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edi, [eax*2 + 2]
push edi
lea eax, [esp + 0x38]
push eax
push 2
push 0
push str.EventMessageFile
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x404a15
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 7
push eax
push 4
push 0
push str.TypesSupported
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x404a15
push edi
lea eax, [esp + 0x38]
push eax
push 2
push 0
push str.CategoryMessageFile
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x404a15
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.CategoryCount
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x404a15
mov bl, 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x404a24
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], 8
jb 0x404a37
push dword [esp + 0x1c]
call fcn.0043198a
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x405b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push 8
mov dword [edi], vtable.FileClassifierQueue.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0043198f
add esp, 4
test eax, eax
je 0x405bd5
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x405c80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x38], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
call fcn.0043183b
mov esp, ebp
pop ebp
ret
call fcn.00431751
int3

Function at 0x405c10
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push 0x2710
push dword [edi + 0x38]
mov dword [edi], vtable.FileClassifierQueue.0
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
test eax, eax
je 0x405c3c
push 0
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x34]
call esi
push dword [edi + 0x30]
call esi
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [edi + 0x1c]
call fcn.00405fe0
push dword [edi + 0x1c]
call fcn.0043198a
add esp, 4
mov dword [edi + 0x1c], 0
pop edi
pop esi
ret
Function at 0x406220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 0x20119
push esi
push 0x456494
push 0x80000002
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x406316
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push esi
push esi
push str.FlyoutNotify
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4062ae
push ebx
push dword [ebp - 8]
call fcn.00432432
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4062ad
lea eax, [ebp - 8]
push eax
push ebx
push esi
push esi
push str.FlyoutNotify
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4062a3
mov esi, ebx
jmp 0x4062ad
push 0
call fcn.004323fa
add esp, 4
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406316
push 0x454d4c
push esi
call fcn.0043228c
add esp, 8
test eax, eax
jne 0x4062e7
pop edi
mov dword [0x463690], 1
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
push str.Never
push esi
call fcn.0043228c
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 9
pop edi
mov dword [0x463690], eax
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
mov dword [0x463690], 0
pop esi
call fcn.0043183b
mov esp, ebp
pop ebp
ret

Function at 0x407c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 0x20119
push esi
push 0x456494
push 0x80000002
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x407d37
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push esi
push esi
push str.Hardening
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407d19
push dword [ebp - 8]
call fcn.00432432
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407d19
lea eax, [ebp - 8]
push eax
push ebx
push esi
push esi
push str.Hardening
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407d0f
mov esi, ebx
jmp 0x407d19
push 0
call fcn.004323fa
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x407d37
push esi
call fcn.004319e0
push esi
mov edi, eax
call fcn.004323fa
add esp, 8
jmp 0x407d39
xor edi, edi
mov eax, 1
xor bl, bl
mov dword [ebp - 8], eax
test edi, edi
je 0x407d5f
lea edx, [ebp - 8]
mov ecx, edi
call fcn.004156a0
test al, al
mov eax, dword [ebp - 8]
je 0x407d5f
and eax, 0xffff
mov bl, 1
pop edi
pop esi
test bl, bl
mov dword [0x4636b4], eax
pop ebx
jne 0x407d70
call fcn.00407d80
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x407d80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4636b4]
push esi
push edi
push ebx
push str.UpdateHarding____08X_r_n
call fcn.00416f00
add esp, 8
test bl, 1
jne 0x407e55
push str.Hardening:_Removing_VM_keys_r_n
call fcn.00416f00
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xc]
add esp, 4
push eax
push 0xf013f
push 0
push str.SOFTWARE
push 0x80000002
call esi
test eax, eax
jne 0x407ebb
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.Oracle
push dword [ebp - 0xc]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x407e27
push str.VirtualBox_Guest_Additions
push dword [ebp - 8]
call edi
push dword [ebp - 8]
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x407e27
push str.Oracle
push dword [ebp - 0xc]
call edi
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.VMware__Inc.
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x407ebb
push str.VMware_Tools
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407ebb
push str.Hardening:_Creating_VM_keys_r_n
call fcn.00416f00
add esp, 4
lea eax, [ebp - 8]
push eax
push 0xf013f
push 0
push str.SOFTWARE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ebb
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 0xc]
push eax
push str.OracleVirtualBox_Guest_Additions
push dword [ebp - 8]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x407ea4
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0xc]
push eax
push str.VMware__Inc.VMware_Tools
push dword [ebp - 8]
call edi
test eax, eax
jne 0x407ebb
push dword [ebp - 0xc]
call esi
mov ecx, dword [0x4636b4]
call fcn.00415710
mov edi, eax
push edi
call fcn.004319e0
mov esi, eax
mov ecx, 1
mov edx, esi
call fcn.00415570
push esi
call fcn.004323fa
push edi
call fcn.004323fa
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x408340
Capabilities:
Create directory
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 0
mov edi, ecx
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
lea eax, [ebp - 0x620]
push eax
push 0
push 0
push 0x17
push 0
sete bh
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x408395
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x620]
push 0x44bdb8
push eax
lea eax, [ebp - 0x210]
push eax
call esi
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4083d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40848f
push str.HitmanPro.Alert.lnk
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call esi
lea eax, [ebp - 0x624]
push eax
push 0x446538
push 1
push 0
push 0x446548
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40848f
mov eax, dword [ebp - 0x624]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x624]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov ecx, 0x190
call fcn.00416830
mov ecx, dword [ebp - 0x624]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x624]
lea edx, [ebp - 0x628]
push edx
push 0x446558
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x408483
mov eax, dword [ebp - 0x628]
lea edx, [ebp - 0x418]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x628]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x408483
mov bl, 1
mov eax, dword [ebp - 0x624]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test bh, bh
je 0x408499
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x4084b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 6
push 0
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0x17
push 0
sete bh
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x408586
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0043cf50
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x44bdb8
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x42c], eax
mov eax, 0x414
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x430], 3
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x422], 0
mov dword [ebp - 0x41e], 0
mov dword [ebp - 0x41a], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
test bh, bh
je 0x408590
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x4085b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x461008]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
push edi
lea eax, [esp + 0x10]
mov edi, ecx
push eax
push 0x20119
push 0
push 0x454fe8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408610
lea eax, [esp + 0xc]
push eax
push 0x44bdb8
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x408626
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
push edi
lea eax, [esp + 0x224]
push str.__s___uninstall
push eax
call fcn.0040a8e0
add esp, 0xc
mov ecx, 0x65
call fcn.00416830
mov edx, eax
lea esi, [eax + 2]
jmp 0x408650
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408650
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar eax, 1
add eax, eax
push eax
push edx
push 1
push 0
push str.DisplayName
push dword [esp + 0x20]
call esi
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408680
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.DisplayIcon
push dword [esp + 0x20]
call esi
push edi
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0043256a
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x18]
lea edx, [ecx + 2]
jmp 0x4086d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4086d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push str.InstallLocation
push dword [esp + 0x20]
call esi
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 4
push 0
push str.NoModify
push dword [esp + 0x20]
call esi
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 4
push 0
push str.NoRepair
push dword [esp + 0x20]
call esi
lea ecx, [esp + 0x220]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408740
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x224]
push eax
push 1
push 0
push 0x4550e8
push dword [esp + 0x20]
call esi
push 0x1c
push 0x455108
push 1
push 0
push str.Publisher
push dword [esp + 0x20]
call esi
push 0x3c
push str.http:__www.hitmanpro.com_alert
push 1
push 0
push str.URLInfoAbout
push dword [esp + 0x20]
call esi
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call fcn.004087c0
mov ecx, dword [esp + 0x42c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x4087c0
Capabilities:
Get installed programs
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x20]
push eax
push 0x20119
push 0
push 0x454fe8
push 0x80000002
mov esi, ecx
call edi
test eax, eax
je 0x408807
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push 0
push 0x44bdb8
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x408840
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.004085b0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
push ebx
mov edx, 0x455198
mov ecx, esi
call fcn.0040a3e0
mov ebx, eax
test ebx, ebx
jne 0x408862
push 0x44bba4
call fcn.004319e0
add esp, 4
mov ebx, eax
xor edi, edi
mov esi, ebx
test ebx, ebx
je 0x408893
lea ebx, [ebx]
test edi, edi
jle 0x408877
add esi, 2
push esi
call fcn.0043267d
push 0x2e
mov dword [ebp + edi*4 - 0x30], eax
inc edi
push esi
call fcn.0043269a
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x408870
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x4088a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4088a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x1c]
call esi
push 0xa
push 0xa
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x30]
call fcn.00432a9f
lea ecx, [ebp - 0x18]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4088e1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.VersionMajor
push dword [ebp - 0x1c]
call esi
push 0xa
push 0xa
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
call fcn.00432a9f
lea ecx, [ebp - 0x18]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408920
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.VersionMinor
push dword [ebp - 0x1c]
call esi
push ebx
call fcn.004323fa
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x409a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x15], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409a53
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x409b4f
mov eax, dword [ebp - 8]
test eax, eax
je 0x409b4f
cmp dword [ebp - 0xc], 7
jne 0x409b4f
push esi
push eax
mov dword [ebp - 0x14], eax
call fcn.00432432
mov esi, eax
add esp, 4
test esi, esi
je 0x409b61
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x409b61
mov eax, dword [ebp - 0x14]
xor edi, edi
shr eax, 1
push ebx
mov ebx, esi
lea ecx, [esi + eax*2]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
jae 0x409b1d
lea ebx, [ebx]
cmp word [esi], 0
jne 0x409b16
inc edi
cmp edi, 1
jne 0x409b31
push str.hmpalert.
push ebx
call fcn.0043280c
add esp, 8
test eax, eax
je 0x409b10
push str.Temp
push ebx
call fcn.0043280c
add esp, 8
test eax, eax
je 0x409b3c
mov ecx, dword [ebp - 0x1c]
lea ebx, [esi + 2]
add esi, 2
cmp esi, ecx
jb 0x409ae0
mov al, byte [ebp - 0x15]
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
lea eax, [edi - 2]
neg eax
sbb eax, eax
and edi, eax
jmp 0x409b13
pop ebx
pop esi
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x15]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x15]
xor ecx, ebp
pop esi
pop edi
call fcn.0043183b
mov esp, ebp
pop ebp
ret

Function at 0x409b80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x409c06
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x409bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x455628
push 0x4566ac
call fcn.00416f00
add esp, 0xc
mov dword [ebp - 0x10], 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp eax, 1
sete al
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x409c20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4639d8], 0
jne 0x409c4c
push 0x104
push 0x4639d8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0043cf50
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], str.runas
mov dword [ebp - 0x30], 0x4639d8
mov dword [ebp - 0x2c], str._elevated
push eax
mov dword [ebp - 0x24], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0043183b
mov esp, ebp
pop ebp
ret

Function at 0x40a3e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x114], edx
push esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x108], eax
push ecx
push eax
xor esi, esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40a4fe
push edi
push ebx
call fcn.00432432
mov edi, eax
add esp, 4
test edi, edi
je 0x40a4eb
push edi
push ebx
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40a4e2
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x455770
push edi
call ebx
test eax, eax
je 0x40a4e2
test dword [ebp - 0x108], 0xfffffffc
jbe 0x40a488
mov eax, dword [ebp - 0x118]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
jmp 0x40a494
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x114]
push dword [ebp - 0x114]
movzx eax, ax
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0x104]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.0040a900
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call ebx
test eax, eax
je 0x40a4e2
push dword [ebp - 0x114]
call fcn.004319e0
add esp, 4
mov esi, eax
push edi
call fcn.004323fa
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret