Function at 0x401564
Capabilities:
Acquire debug privileges
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd64
mov eax, 0x40cc10
push ebx
push esi
push edi
call fcn.00404904
call fcn.004023dc
test al, al
jne 0x401594
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, edx
jmp 0x401863
cmp dword [0x40c3c8], 0
jne 0x401831
call fcn.00403223
cmp dword [0x40c224], 0
jne 0x4015cb
push 0x1c
lea ecx, [ebp - 0x78]
push ecx
push fcn.00401564
call fcn.0040bb8e
test eax, eax
jbe 0x4015cb
mov eax, dword [ebp - 0x74]
mov dword [0x40c224], eax
push str.Advapi32.dll
call fcn.0040baf2
mov ebx, eax
test ebx, ebx
je 0x401601
push str.DecryptFileW
push ebx
call fcn.0040ba8c
mov dword [0x40c388], eax
push str.GetExplicitEntriesFromAclW
push ebx
call fcn.0040ba8c
mov dword [0x40c38c], eax
push ebx
call fcn.0040ba1a
push 0x208
push 0x410568
push dword [0x40c224]
call fcn.0040ba74
mov eax, dword [0x410560]
push 0x20
push 0
push dword [eax]
call fcn.0040bace
mov dword [ebp - 4], eax
test eax, eax
je 0x40164b
mov word [ebp - 0x18], 0x14
mov edx, 0x410568
mov eax, dword [ebp - 4]
call fcn.00402828
mov word [ebp - 0x18], 8
mov edx, dword [ebp - 4]
jmp 0x40164e
mov edx, dword [ebp - 4]
mov dword [0x40c3c8], edx
push 0x104
lea eax, [ebp - 0x280]
push eax
call fcn.0040baaa
xor esi, esi
xor ebx, ebx
lea eax, [esi*8 + 0x40c390]
cmp dword [eax + ebx*4], 0
je 0x4016b3
mov edx, dword [0x410560]
push 0x410
push 0
push dword [edx]
call fcn.0040bace
mov edi, eax
lea eax, [esi*8 + 0x4109b0]
mov dword [eax + ebx*4], edi
lea edx, [ebp - 0x280]
push edx
push edi
call fcn.0040bba6
lea ecx, [esi*8 + 0x40c390]
push dword [ecx + ebx*4]
push edi
call fcn.0040bba0
inc ebx
cmp ebx, 2
jb 0x401669
push 0xffffffffffffffff
push 0x410568
push 0xffffffffffffffff
push dword [esi*8 + 0x4109b0]
push 1
push 0x400
call fcn.0040b9de
cmp eax, 2
jne 0x4016ec
mov eax, dword [esi*8 + 0x4109b4]
mov dword [0x4109d4], eax
mov dword [0x40c3c4], esi
inc esi
cmp esi, 4
jb 0x401667
mov dword [0x4109d0], 0x410568
mov edx, dword [0x4109ec]
mov dword [0x40c3c0], edx
cmp dword [0x4109ac], 5
jae 0x40171e
mov word [0x40c2c8], 0
push 0x40c2c8
push 0x410980
call fcn.0040bba6
push str.ServRelLcss
push 0x410980
call fcn.0040bba0
lea ecx, [ebp - 0x2c]
push ecx
push 0x28
call fcn.0040ba32
push eax
call fcn.0040b97c
test eax, eax
je 0x4017ca
mov dword [ebp - 0x29c], 2
lea eax, [ebp - 0x34]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call fcn.0040b976
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x298], edx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x290], 2
push ecx
push str.SeDebugPrivilege
push 0
call fcn.0040b976
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], 2
push 0
push 0
push 0x1c
lea edx, [ebp - 0x29c]
push edx
push 0
push dword [ebp - 0x2c]
call fcn.0040b922
mov esi, 0x40c630
lea edi, [ebp - 0x5c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov eax, ebx
shl eax, 2
lea eax, [eax + eax*4]
lea edx, [ebp - 0x5c]
add eax, edx
push dword [eax]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [eax + 0x10]
push dword [eax + 0xc]
mov cl, byte [eax + 0xa]
push ecx
add eax, 4
push eax
call fcn.0040b928
inc ebx
cmp ebx, 2
jb 0x4017db
push 0x4109d8
push 1
push 0
xor edx, edx
push str.SYSTEMCurrentControlSetServicesLcss
push 0x80000002
mov dword [0x4109d8], edx
call fcn.0040b99a
jmp 0x40184b
call fcn.00401c00
test al, al
je 0x401846
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
jmp 0x401863
call fcn.00401f08
call fcn.00401940
call fcn.004019e8
call fcn.00401940
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret