joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467540
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599178
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
lea ebx, [ecx + 0x18]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x46769e
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add ecx, dword [ebp - 0x14]
adc eax, 0
mov dword [ebp - 0x3c], eax
jne 0x4675bc
cmp ecx, 0xa00000
jb 0x46769e
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00467360
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4675e1
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4675f7
call fcn.00428a90
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4676be
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, 0x5b60b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
test eax, 0xffff0000
jne 0x467620
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x46762a
push 0x5b60b0
call fcn.004674b0
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
push dword [esi - 0xc]
push esi
call fcn.00429240
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x467659
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebx]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46769e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
int3
Function at 0x4676d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xcc]
push edi
push 0xc8
push 0
push eax
mov edi, ecx
call fcn.0054b380
add esp, 0xc
lea ecx, [edi + 0x18]
push esi
call fcn.004373e0
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [edi + 0x1c], eax
mov dword [edi], 1
call fcn.00467540
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xcc]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.00467fb0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xcc]
add esp, 0xc
push eax
push 1
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 0xc], eax
call esi
cmp dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
je 0x4677a2
test eax, eax
je 0x4677a2
push 0
push 0
push edi
push 0x467b90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
test eax, eax
je 0x4677a2
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00545ec7
mov esp, ebp
pop ebp
ret 8
Function at 0x46b4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5995d8
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x234], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x46b6f5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov ecx, 0x6319b8
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 1
call fcn.0048b460
test eax, eax
je 0x46b56b
lea eax, [ebp - 0x21c]
mov ecx, 0x6319b8
push eax
call fcn.0048ba30
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0042a6a0
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b6d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46b6d5
xor esi, esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push esi
push eax
call fcn.0054b380
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
lea eax, [ebp - 0x21c]
push eax
jne 0x46b633
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x22c], esi
push eax
push 0
push str.LocationRoot
push esi
mov dword [ebp - 0x21c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46b688
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x46b61f
cmp eax, 2
jne 0x46b688
cmp dword [ebp - 0x21c], 0
jne 0x46b688
xor eax, eax
mov word [ebp - 0x218], ax
jmp 0x46b688
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46b6a1
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x22c], esi
push eax
push str.LocationRoot
call fcn.0046f010
test esi, esi
je 0x46b697
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b6b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00429870
test esi, esi
je 0x46b6d5
push esi
call ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004293d0
int3
Function at 0x46f010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46f081
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x46f04f
cmp eax, 2
jne 0x46f06b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x46f07b
test ecx, ecx
je 0x46f076
test cl, 1
jne 0x46f06b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x46f07b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x474b10
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a208
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x474cab
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x474b91
test edi, 0xffff0000
jne 0x474b76
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.004295b0
jmp 0x474b9d
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x474b80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474b80
sub ecx, edx
sar ecx, 1
jmp 0x474b93
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00429870
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x474c73
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or ebx, ebx
test eax, eax
jne 0x474c73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x474c73
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.0054bdba
add esp, 8
test eax, eax
je 0x474c2f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x474c2f
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00446f20
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042a6a0
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474c37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x474c37
lea ecx, [ebp - 0x10]
call fcn.00429490
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x474c44
xor edi, edi
jmp 0x474c7b
push esi
call fcn.00474b10
add esp, 4
test eax, eax
jne 0x474c55
xor edi, edi
jmp 0x474c7b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x474c76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x474c76
xor edi, edi
jmp 0x474c7b
mov esi, dword [ebp - 0x10]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x474c97
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
int3
Function at 0x4764f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5ef8c8
push 0x54b520
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x62819c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4765a5
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4765a5
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.004765d2
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret

Function at 0x476cf0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a642
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x224], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x476e0b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x21c], 1
call fcn.0054b380
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x476dc7
lea eax, [ebp - 0x228]
push eax
push 4
lea eax, [ebp - 0x220]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x476dc0
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476dd0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00429870
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
int3
Function at 0x476e20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push 0x228
push 0
push eax
call fcn.0054b380
push 0x22c
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.0054b380
add esp, 0x18
mov dword [ebp - 0x230], 0x22c
mov dword [ebp - 0x45c], 0x22c
xor ebx, ebx
mov dword [ebp - 0x454], 0xffffffff
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x476ed8
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x476eb1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x230]
jmp 0x476ee9
cmp dword [ebp - 0x228], edi
je 0x476ecc
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x476eb1
jmp 0x476ed1
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
lea esi, [ebp - 0x45c]
lea eax, [ebp - 0x230]
cmovne esi, eax
mov eax, dword [ebp + 8]
mov ecx, 0x8b
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545ec7
mov esp, ebp
pop ebp
ret

Function at 0x476f10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x476ffc
cmp word [edi], 0
je 0x476ffc
test esi, esi
je 0x476ffc
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.0054b380
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x476ffc
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x476fda
jmp 0x476f90
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00555852
add esp, 8
test eax, eax
jne 0x476fc9
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x476fba
mov eax, dword [ebp - 0x228]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x476fc9
lea eax, [ebp - 0x228]
push eax
push ecx
mov ecx, esi
call fcn.00429cd0
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x476f90
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, dword [esi + 4]
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
Function at 0x477420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4775f5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
push dword [0x602474]
mov dword [ebp - 0x14], 0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x14]
mov ebx, dword [str.LocationRoot]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x47753c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push ebx
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4774c0
cmp eax, 2
jne 0x47753c
lea ecx, [ebp - 0x10]
call fcn.00429490
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x4775eb
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4774f6
push edx
lea ecx, [ebp - 0x10]
call fcn.004296d0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x47753c
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.00555593
add esp, 8
test eax, eax
js 0x4775eb
cmp eax, dword [esi - 8]
jg 0x4775eb
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0x5b8b90
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00447160
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042a6a0
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47757c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
push ebx
call fcn.004293f0
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00446320
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov esi, eax
test ecx, ecx
je 0x4775b7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x4775d7
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3
Function at 0x4787b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0
push 0
push 1
push esi
mov dword [ebp - 4], 0
call ebx
push dword [ebp - 4]
call fcn.00546052
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push esi
call ebx
test eax, eax
je 0x47889e
mov ebx, dword [edi]
test ebx, ebx
je 0x47889e
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47889e
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 4]
call fcn.00546052
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [ebp - 8]
test eax, eax
je 0x47888c
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47888c
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47888c
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
mov esi, eax
call fcn.0054605b
push dword [ebp - 8]
call fcn.0054605b
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0054605b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0054605b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4788b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a968
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x631990], 0
jne 0x478902
push 0
push 0
push 6
call fcn.00438070
movzx eax, al
add esp, 0xc
mov dword [0x631994], eax
mov dword [0x631990], 1
jmp 0x478907
mov eax, dword [0x631994]
test eax, eax
jne 0x47891c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4789a4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 0x12
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4789a4
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x478972
cmp eax, 3
je 0x478972
xor esi, esi
jmp 0x478977
mov esi, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47898a
cmp eax, 0xffffffff
je 0x47898a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4789b7
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4789b7
cmp eax, 0xffffffff
je 0x4789b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x478a93
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4789f9
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x478a05
push 0x39
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.00429870
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push esi
push 0x80000002
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x478a62
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.EnableLUA
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x478a7a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp dword [ebp - 0x18], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
int3