Function at 0x1016b8d
Capabilities:
Bypass windows file protection

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
mov word [ebp - 0x20c], bx
call fcn.01017f90
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x220], ebx
jne 0x1016be8
xor eax, eax
jmp 0x1016e32
push 0x100f504
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x218], eax
je 0x1016dee
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100f4ec
push eax
call esi
push 0x100f4d4
push dword [ebp - 0x218]
mov dword [ebp - 0x210], eax
call esi
push 0x100f4bc
push dword [ebp - 0x218]
mov dword [ebp - 0x224], eax
call esi
cmp dword [ebp - 0x210], ebx
mov dword [ebp - 0x220], eax
je 0x1016ded
cmp dword [ebp - 0x224], ebx
je 0x1016ded
cmp eax, ebx
je 0x1016ded
lea eax, [ebp - 0x214]
push eax
push ebx
push ebx
call dword [ebp - 0x210]
test eax, eax
je 0x1016ded
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x103
push dword [edi + 4]
call fcn.010248b0
test eax, eax
je 0x1016ded
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x1016ca1
push eax
call fcn.01028f49
push 0x20000
push 0x32
push 0x1388
push 3
push dword [edi + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102a6ac
cmp eax, ebx
mov dword [edi + 0x1c], eax
je 0x1016ded
mov eax, 0x100f4b0
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1016cd1
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
sub eax, ecx
mov ecx, dword fs:[0x18]
sar eax, 1
mov dword [ebp - 0x230], eax
mov eax, 0x100
push eax
mov dword [ebp - 0x210], eax
mov eax, dword [ecx + 0x30]
push 8
push dword [eax + 0x18]
call edi
mov esi, eax
cmp esi, ebx
je 0x1016ded
mov dword [ebp - 0x21c], ebx
jmp 0x1016d4a
mov eax, dword [esi]
shr eax, 1
sub eax, dword [ebp - 0x230]
push 0x100f4b0
lea eax, [esi + eax*2 + 4]
push eax
call fcn.01018388
test eax, eax
pop ecx
pop ecx
jne 0x1016d4a
push dword [esi]
lea eax, [esi + 4]
push eax
push dword [ebp - 0x228]
call fcn.010169fc
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push ebx
call dword [ebp - 0x224]
test eax, eax
jne 0x1016d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1016db5
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x18]
push dword [ebp - 0x21c]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call edi
mov esi, eax
cmp esi, ebx
je 0x1016ded
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x210], eax
jmp 0x1016d12
mov edi, dword [ebp - 0x228]
push dword [edi + 0x1c]
call fcn.0102a2e4
push dword [edi + 0x1c]
call fcn.01029bc7
cmp esi, ebx
mov dword [ebp - 0x22c], 1
je 0x1016ded
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
cmp dword [ebp - 0x214], ebx
je 0x1016e18
cmp dword [ebp - 0x218], ebx
je 0x1016e2c
cmp dword [ebp - 0x220], ebx
je 0x1016e18
push dword [ebp - 0x214]
call dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
cmp dword [ebp - 0x218], ebx
je 0x1016e2c
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 4