Function at 0x425b60
Capabilities:
Compare security identifiers
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581c60
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0x20019
xor edi, edi
push edi
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x425e7c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x425e7c
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x10]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x425e00
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x425e00
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push 1
push eax
mov dword [ebp - 0x18], edi
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x425da2
push eax
call fcn.0055ed12
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x425d7c
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push ebx
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x425d15
mov edi, dword [ebx]
test edi, edi
je 0x425d13
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 4
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x425cd1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x425cd1
xor esi, esi
cmp word [ecx + 4], si
je 0x425cd1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x425ca3
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x425ca3
cmp byte [eax], 1
jne 0x425ca3
add eax, 8
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x425cb1
mov ecx, dword [ebp - 0x14]
inc esi
movzx eax, word [ecx + 4]
cmp esi, eax
jb 0x425c71
jmp 0x425cd1
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 0
push dword [ebp - 0x14]
push 0
push 0
push 4
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x425cdf
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov edi, 1
call fcn.00556b67
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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
xor edi, edi
lea ecx, [ebp - 0x1c]
call fcn.00407e00
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str._______XD999_GetTokenInformation2_Error_d
push eax
call fcn.004063c0
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x1c]
call fcn.004058f0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00556b67
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00407e00
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str._______XD999_GetTokenInformation_Error_d
push eax
call fcn.004063c0
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x1c]
call fcn.004058f0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x425e15
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str._______XD999_OpenToKEEE_Error_d
push eax
call fcn.004063c0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x425e68
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x425e91
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push esi
push ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push str._______XD999_OpenReg_Error_d__KeyName:_s
push eax
call fcn.004063c0
mov esi, dword [ebp - 0x1c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x425edf
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