Function at 0x40a430
Capabilities:
Inspect section memory permissions

Disassembly:
push 0xffffffffffffffff
push 0x435758
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449fb0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x3c]
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], 0xc0000
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
cmp dword [eax - 0xc], ebp
jne 0x40a4aa
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x40a8ff
mov ecx, dword [esp + 0x40]
cmp ecx, ebp
je 0x40a47c
cmp dword [esi + 0x14], ebp
jne 0x40a548
mov edx, dword [esi + 0x1c]
cmp dword [edx - 0xc], ebp
je 0x40a516
cmp dword [esi + 0x20], ebp
je 0x40a516
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi + 0x14], eax
cmp eax, ebp
jne 0x40a4ef
lea ecx, [esp + 0x3c]
mov dword [esi + 0x2c], ebp
call fcn.00402050
mov eax, 0x2e
jmp 0x40a8ff
push 1
push eax
mov dword [esi + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x40a548
lea ecx, [esp + 0x3c]
call fcn.00402050
mov eax, 0x2d
jmp 0x40a8ff
mov ebx, dword [esp + 0x44]
push ebx
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push eax
call fcn.004021b0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0040a040
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x40a54c
jmp 0x40a8f2
mov ebx, dword [esp + 0x44]
mov edi, ebx
and edi, 1
je 0x40a585
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4390e4
call fcn.00407160
mov ecx, dword [esi + 0x28]
call fcn.00402600
cmp eax, ebp
je 0x40a585
lea ecx, [esp + 0x3c]
call fcn.00402050
mov eax, 0xc
jmp 0x40a8ff
mov ebp, ebx
and ebp, 8
mov dword [esp + 0x28], ebp
je 0x40a5b7
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.SeSecurityPrivilege
call fcn.00407160
mov ecx, dword [esi + 0x28]
call fcn.00402600
test eax, eax
jne 0x40a572
mov dword [esp + 0x20], 0x10c0000
mov eax, ebx
and eax, 4
mov dword [esp + 0x24], eax
je 0x40a5fb
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x14]
push 0
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40a6bc
mov edx, dword [esp + 0x48]
cmp dword [esi + 4], edx
je 0x40a5fb
mov ecx, esi
call fcn.00401970
mov eax, dword [esp + 0x48]
mov dword [esi + 4], eax
mov dword [esi + 0x30], 0
test ebp, ebp
je 0x40a630
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esi + 0x14]
push 0
push ebp
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
test eax, eax
je 0x40a6d8
cmp dword [esi + 8], ebp
je 0x40a630
mov ecx, esi
call fcn.004019a0
mov dword [esi + 8], ebp
mov dword [esi + 0x34], 0
test edi, edi
je 0x40a663
mov edi, dword [esp + 0x50]
mov edx, dword [esi + 0x14]
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x40a6f4
cmp dword [esi + 0xc], edi
je 0x40a663
mov ecx, esi
call fcn.004019d0
mov dword [esi + 0xc], edi
mov dword [esi + 0x38], 0
test bl, 2
mov ebx, dword [esp + 0x54]
je 0x40a697
mov eax, dword [esi + 0x14]
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
je 0x40a710
cmp dword [esi + 0x10], ebx
je 0x40a697
mov ecx, esi
call fcn.00401a00
mov dword [esi + 0x10], ebx
mov dword [esi + 0x3c], 0
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x40a72c
lea ecx, [esp + 0x3c]
call fcn.00402050
mov eax, 0x26
jmp 0x40a8ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x3c]
mov dword [esi + 0x18], eax
call fcn.00402050
mov eax, 0x27
jmp 0x40a8ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x3c]
mov dword [esi + 0x18], eax
call fcn.00402050
mov eax, 0x28
jmp 0x40a8ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x3c]
mov dword [esi + 0x18], eax
call fcn.00402050
mov eax, 0x29
jmp 0x40a8ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x3c]
mov dword [esi + 0x18], eax
call fcn.00402050
mov eax, 0x2a
jmp 0x40a8ff
cmp dword [esi + 0x40], 0
je 0x40a8a5
mov eax, dword [esi + 0x20]
cmp eax, 1
jne 0x40a773
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x1c]
push 0
push 0x2000000
push 3
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x40a8a5
test eax, eax
je 0x40a8a5
mov ebp, eax
jmp 0x40a7a1
cmp eax, 4
jne 0x40a8a5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x28]
call fcn.00404a50
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40a8a5
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test ebp, ebp
je 0x40a88b
cmp dword [esp + 0x24], 0
mov edi, dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorControl]
je 0x40a7ce
mov edx, dword [esi + 0x14]
push 0x500
push 0x500
push edx
call edi
test eax, eax
je 0x40a887
cmp dword [esp + 0x28], 0
je 0x40a7ed
mov eax, dword [esi + 0x14]
push 0xa00
push 0xa00
push eax
call edi
test eax, eax
je 0x40a887
test dword [esp + 0x44], 0x80000000
je 0x40a80b
mov ecx, dword [esi + 0x14]
push 0x1000
push 0x1000
push ecx
call edi
test eax, eax
je 0x40a887
test dword [esp + 0x44], 0x40000000
je 0x40a829
mov edx, dword [esi + 0x14]
push 0x2000
push 0x2000
push edx
call edi
test eax, eax
je 0x40a887
test dword [esp + 0x44], 0x20000000
je 0x40a844
mov eax, dword [esi + 0x14]
push 0
push 0x1000
push eax
call edi
test eax, eax
je 0x40a887
test dword [esp + 0x44], 0x10000000
je 0x40a85f
mov ecx, dword [esi + 0x14]
push 0
push 0x2000
push ecx
call edi
test eax, eax
je 0x40a887
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x44]
push edx
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
je 0x40a887
lea ecx, [esp + 0x3c]
mov dword [esi + 0x18], 0
call fcn.00402050
xor eax, eax
jmp 0x40a8ff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a896
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a8a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x54]
lea edi, [esi + 0x1c]
push ecx
mov ecx, dword [esp + 0x4c]
push ebx
push edx
mov edx, dword [esp + 0x50]
push ecx
push edx
inc eax
push eax
mov ecx, edi
call fcn.00402290
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push 0xffffffffffffffff
mov ecx, edi
mov dword [esi + 0x18], eax
call fcn.00401fb0
cmp dword [esi + 0x18], 0
je 0x40a8f2
mov dword [esp + 0x14], 0x19
lea ecx, [esp + 0x3c]
call fcn.00402050
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x1c