Function at 0x100035cb
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
push 8
call fcn.1002d2ff
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.1002d2ff
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0x10
call fcn.1002d2ff
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1005142a
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 2
push ecx
push ebx
push 8
call fcn.1002d2ff
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push ebx
push 8
call fcn.1002d2ff
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x10003640
pop ebx
mov dword [ebp - 0x10], 0
push 8
call fcn.1002d2ff
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0x10
call fcn.1002d2ff
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1005142a
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 2
push ecx
push ebx
push 8
call fcn.1002d2ff
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push ebx
push 8
call fcn.1002d2ff
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x100036da
pop ebx
cmp dword [ebp + 0xc], 0
jne 0x1000374f
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10003749
push ebx
call fcn.1002d305
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [0x10145511]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10003778
push 0xb6
push 0x4026530
push 6
call fcn.1002d311
add esp, 0xc
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 0x20008
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 0x20
push 3
mov ebx, 0xc8
call fcn.1002dff0
add esp, 0x28
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x100037e7
push 0xc9
push 0x4026530
push 6
call fcn.1002d311
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x100513b3
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000381d
push 0xff
push 0x4026530
push 6
call fcn.1002d311
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx + 4]
call fcn.10002805
mov eax, 0
cmp eax, ecx
jl 0x10003857
push 0x152
push 0x4026530
push 1
call fcn.1002d311
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx + 4]
call fcn.10002805
mov eax, 0
cmp eax, ecx
jl 0x10003898
push 0x1a3
push 0x4026530
push 1
call fcn.1002d311
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 8]
push eax
push 8
call fcn.1002d2ff
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
push ebx
call fcn.1002d305
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x1005141a]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0x10051422]
fstp qword [ebp - 0x30]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
fild dword [ebx]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fmul qword [0x1005141a]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fadd qword [0x10051422]
fstp qword [ebp - 0x4c]
mov dword [ebp - 0x50], esp
fld qword [ebp - 0x4c]
call fcn.10002825
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x1c
call fcn.1002d2ff
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ecx, 2
mov ebx, dword [ebx]
add ebx, 8
push ebx
push ecx
mov ebx, dword [ebx]
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop ebx
add ebx, 4
dec ecx
jne 0x1000395c
pop ebx
add ebx, 4
fld qword [ebp - 0x30]
call fcn.10002825
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x1c
call fcn.1002d2ff
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ecx, 2
mov ebx, dword [ebx]
add ebx, 8
push ebx
push ecx
mov ebx, dword [ebx]
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop ebx
add ebx, 4
dec ecx
jne 0x100039d1
pop ebx
add ebx, 4
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
nop
cmp dword [ebp - 0x50], esp
je 0x10003a38
push 0x288
push 0x4026530
push 6
call fcn.1002d311
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x58]
push ebx
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
mov ecx, 2
add edi, 8
push ebx
push edi
push ecx
mov edi, dword [edi]
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 8
pop edi
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop edi
pop ebx
add edi, 4
add ebx, 0xc
dec ecx
jne 0x10003a58
pop edi
add edi, 4
call fcn.1002d305
add esp, 4
mov ebx, dword [ebp - 0x60]
push ebx
mov edi, dword [ebp - 0x64]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
mov ecx, 2
add edi, 8
push ebx
push edi
push ecx
mov edi, dword [edi]
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 8
pop edi
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop edi
pop ebx
add edi, 4
add ebx, 0xc
dec ecx
jne 0x10003ac8
pop edi
add edi, 4
call fcn.1002d305
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x10145531]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10003b49
push 0x2b7
push 0x4026530
push 6
call fcn.1002d311
add esp, 0xc
cmp dword [ebp - 0x10], 1
mov eax, 0
sete al
jmp 0x10003b5a
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.1002d305
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10003b8c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10003b88
imul eax, dword [ebx]
jmp 0x10003b7d
mov ecx, eax
test ecx, ecx
je 0x10003bb4
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.1002d305
add esp, 4
pop ebx
call fcn.1002d305
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10003b92
call fcn.1002d305
add esp, 4
pop ebx
call fcn.1002d305
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10003bea
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10003be6
imul eax, dword [ebx]
jmp 0x10003bdb
mov ecx, eax
test ecx, ecx
je 0x10003c12
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.1002d305
add esp, 4
pop ebx
call fcn.1002d305
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10003bf0
call fcn.1002d305
add esp, 4
pop ebx
call fcn.1002d305
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8