Function at 0x41ed70
Capabilities:
Contain obfuscated stackstrings
Get token membership
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x51c91c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x51fad0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc4], edi
test al, 1
jne 0x41edf5
or eax, 1
mov dword [0x51fad0], eax
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x41f201
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, 0x51facc
push 0x4ef9f8
mov dword [0x51facc], eax
call fcn.004036f0
test al, al
jne 0x41ede3
push 3
push 0x4ef9f8
mov ecx, 0x51facc
call fcn.00404ae0
push 0x4e77d0
call fcn.004534c4
mov eax, dword [0x51fad0]
add esp, 4
test al, 2
jne 0x41ee1a
or eax, 2
push 0
push 0x51fad4
mov dword [0x51fad0], eax
call fcn.0045f740
push 0x4e77b0
call fcn.004534c4
add esp, 0xc
mov eax, dword [0x51fad4]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x41ee60
push ecx
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push eax
call esi
test eax, eax
je 0x41f1fc
mov dword [edi], eax
mov eax, dword [0x51facc]
push dword [eax - 0xc]
push eax
call esi
test eax, eax
je 0x41f1fc
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.004530b8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xb4]
push 1
push eax
call fcn.0045f740
add esp, 8
mov ecx, 0x51fad4
push eax
call fcn.00409440
mov edx, dword [ebp - 0xb4]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ee9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x51fad4]
cmp dword [eax - 0xc], 0
jne 0x41eede
lea eax, [ebp - 0xb4]
push 2
push eax
call fcn.0045f740
add esp, 8
mov ecx, 0x51fad4
push eax
call fcn.00409440
mov edx, dword [ebp - 0xb4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41eede
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x51fad4]
cmp dword [eax - 0xc], 0
je 0x41f1ef
cmp dword [0x51b528], 0
je 0x41ef98
push str.ntdll.dll
mov dword [ebp - 0xb8], 0
xor edi, edi
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc0], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41ef88
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ef64
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
call eax
movzx eax, word [ebp - 0xc0]
mov edi, 1
mov dword [ebp - 0xc0], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x41ef88
mov eax, dword [0x51fac8]
mov ecx, 1
cmp dword [ebp - 0xb8], 6
cmovae eax, ecx
mov dword [0x51fac8], eax
mov edi, dword [ebp - 0xc4]
mov dword [0x51b528], 0
cmp dword [0x51fac8], 0
je 0x41f1ef
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb0], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xb0]
mov word [ebp - 0xac], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x41f023
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xb4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0xb4]
neg eax
sbb eax, eax
and dword [ebp - 0xbc], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0xbc], 0
jne 0x41f1ef
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0
push eax
push 0x201
push 0
push dword [0x51fad4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f180
mov esi, dword [ebp - 0xb4]
push 0x64
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00469210
add esp, 0xc
mov dword [ebp - 0xb8], 0x64
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0
push 0x4ef9f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f0d0
mov eax, dword [ebp - 0xc4]
cmp eax, 1
je 0x41f0ad
cmp eax, 2
jne 0x41f0d0
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x41f15b
test al, 1
jne 0x41f0d0
shr eax, 1
cmp word [ebp + eax*2 - 0xaa], 0
je 0x41f164
xor eax, eax
mov dword [ebp - 0x24], 0x4f0053
lea edx, [ebp - 0x24]
mov dword [ebp - 0x20], 0x540046
mov dword [ebp - 0x1c], 0x410057
lea ecx, [edx + 2]
mov dword [ebp - 0x18], 0x450052
mov dword [ebp - 0x14], 0x58005c
mov dword [ebp - 0x10], 0x410052
mov dword [ebp - 0xc], 0x32004d
mov word [ebp - 8], ax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41f110
sub edx, ecx
lea eax, [ebp - 0x24]
sar edx, 1
mov ecx, 0x51fad4
push edx
push eax
call fcn.00404ae0
push 2
push 0x4efa00
mov ecx, 0x51facc
call fcn.00404ae0
test esi, esi
je 0x41f1ef
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x51fad4]
push dword [eax - 0xc]
jmp 0x41ee27
xor eax, eax
mov word [ebp - 0xa8], ax
test esi, esi
je 0x41f1ef
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x51fad4]
push dword [eax - 0xc]
jmp 0x41ee27
xor eax, eax
mov dword [ebp - 0x44], 0x4f0053
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x40], 0x540046
mov dword [ebp - 0x3c], 0x410057
lea edx, [ecx + 2]
mov dword [ebp - 0x38], 0x450052
mov dword [ebp - 0x34], 0x58005c
mov dword [ebp - 0x30], 0x410052
mov dword [ebp - 0x2c], 0x32004d
mov word [ebp - 0x28], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f1c0
sub ecx, edx
lea eax, [ebp - 0x44]
sar ecx, 1
push ecx
push eax
mov ecx, 0x51fad4
call fcn.00404ae0
push 2
push 0x4efa00
mov ecx, 0x51facc
call fcn.00404ae0
mov eax, dword [0x51fad4]
push dword [eax - 0xc]
jmp 0x41ee27
call fcn.00404f70
push 0x80004005
call fcn.004036d0
int3