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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x100db774]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100dde18]
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 0x10055075
or eax, 1
mov dword [0x100dde18], eax
call fcn.10002dd0
mov ecx, eax
test ecx, ecx
je 0x10055491
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, 0x100dde14
push 0x100b52f8
mov dword [0x100dde14], eax
call fcn.10003930
test al, al
jne 0x10055063
push 3
push 0x100b52f8
mov ecx, 0x100dde14
call fcn.10002a80
push 0x100ad610
call fcn.10069748
mov eax, dword [0x100dde18]
add esp, 4
test al, 2
jne 0x1005509a
or eax, 2
push 0
push 0x100dde1c
mov dword [0x100dde18], eax
call fcn.1005eab0
push 0x100ad5f0
call fcn.10069748
add esp, 0xc
mov eax, dword [0x100dde1c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x100550e0
push ecx
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push eax
call esi
test eax, eax
je 0x1005548c
mov dword [edi], eax
mov eax, dword [0x100dde14]
push dword [eax - 0xc]
push eax
call esi
test eax, eax
je 0x1005548c
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.100693bc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xb4]
push 1
push eax
call fcn.1005eab0
add esp, 8
mov ecx, 0x100dde1c
push eax
call fcn.10002700
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 0x1005511c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x100dde1c]
cmp dword [eax - 0xc], 0
jne 0x1005515e
lea eax, [ebp - 0xb4]
push 2
push eax
call fcn.1005eab0
add esp, 8
mov ecx, 0x100dde1c
push eax
call fcn.10002700
mov edx, dword [ebp - 0xb4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1005515e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push str.mid2
mov ecx, 0x100dde14
call fcn.10002a80
mov eax, dword [0x100dde1c]
cmp dword [eax - 0xc], 0
je 0x1005547f
cmp dword [0x100da5f0], 0
je 0x10055229
push 0x100af248
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 0x10055219
push 0x100af25c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100551f5
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 0x10055219
mov eax, dword [0x100dde10]
mov ecx, 1
cmp dword [ebp - 0xb8], 6
cmovae eax, ecx
mov dword [0x100dde10], eax
mov edi, dword [ebp - 0xc4]
mov dword [0x100da5f0], 0
cmp dword [0x100dde10], 0
je 0x1005547f
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 0x100552b4
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 0x1005547f
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0
push eax
push 0x201
push 0
push dword [0x100dde1c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10055410
mov esi, dword [ebp - 0xb4]
push 0x64
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.10075330
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 0x100b52f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10055361
mov eax, dword [ebp - 0xc4]
cmp eax, 1
je 0x1005533e
cmp eax, 2
jne 0x10055361
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x100553eb
test al, 1
jne 0x10055361
shr eax, 1
cmp word [ebp + eax*2 - 0xaa], 0
je 0x100553f4
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
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100553a0
sub edx, ecx
lea eax, [ebp - 0x24]
sar edx, 1
mov ecx, 0x100dde1c
push edx
push eax
call fcn.10002a80
push 2
push 0x100b00c0
mov ecx, 0x100dde14
call fcn.10002a80
test esi, esi
je 0x1005547f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x100dde1c]
push dword [eax - 0xc]
jmp 0x100550a7
xor eax, eax
mov word [ebp - 0xa8], ax
test esi, esi
je 0x1005547f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x100dde1c]
push dword [eax - 0xc]
jmp 0x100550a7
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 0x10055450
sub ecx, edx
lea eax, [ebp - 0x44]
sar ecx, 1
push ecx
push eax
mov ecx, 0x100dde1c
call fcn.10002a80
push 2
push 0x100b00c0
mov ecx, 0x100dde14
call fcn.10002a80
mov eax, dword [0x100dde1c]
push dword [eax - 0xc]
jmp 0x100550a7
call fcn.10002940
push 0x80004005
call fcn.10001a70
int3