Function at 0x108778b
Capabilities:
Create thread
Inject thread

Disassembly:
push 0x9c
push 0x102b408
call fcn.0106bf63
mov word [ebp - 0x5c], 0x12
mov word [ebp - 0x5a], 0x14
mov dword [ebp - 0x58], 0x102b3a4
mov word [ebp - 0x64], 0x12
mov word [ebp - 0x62], 0x13
mov dword [ebp - 0x60], 0x102b3f4
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], eax
push eax
push eax
lea eax, [ebp - 0x48]
push eax
mov esi, dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x1087801
mov dword [0x1116ab4], 0x657
push 0xc000000d
jmp 0x108795d
cmp byte [ebp + 0x14], 0
je 0x1087883
movzx esi, word [ebp - 0x48]
add esi, 0x28
mov dword [ebp - 0x38], esi
push esi
push 8
push dword [0x1116ab8]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [ebp - 0x34], ebx
mov dword [ebx], 0xa0000001
mov dword [ebx + 4], esi
mov word [ebx + 8], 0x28
mov ax, word [ebp - 0x48]
mov word [ebx + 0xa], ax
movzx ecx, word [ebp - 0x48]
mov esi, dword [ebp - 0x44]
lea edi, [ebx + 0x28]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x38]
push ebx
push 0x45
call dword [sym.imp.ntdll.dll_NtSetSystemInformation]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
add ecx, 8
mov dword [ebp - 0x70], ecx
mov dword [ecx + 0xc], eax
test eax, eax
jge 0x10879b4
mov dword [ecx + 0x10], 0x684
jmp 0x10879b4
movzx eax, word [esi]
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx]
lea edi, [eax + ecx + 0x28]
mov dword [ebp - 0x38], edi
push edi
push 8
push dword [0x1116ab8]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [ebp - 0x34], ebx
mov dword [ebx], 0x20000001
mov dword [ebx + 4], edi
lea eax, [ebx + 0x28]
mov dword [ebp - 0x54], eax
mov ecx, eax
sub ecx, ebx
mov word [ebx + 8], cx
mov cx, word [esi]
mov word [ebx + 0xa], cx
movzx ecx, word [esi]
mov esi, dword [esi + 4]
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
movzx edi, word [ecx]
add edi, eax
mov dword [ebp - 0x54], edi
mov eax, edi
sub eax, ebx
mov word [ebx + 0xc], ax
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
mov word [ebx + 0xe], cx
movzx ecx, word [eax]
mov esi, dword [eax + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp dword [0x1116a80], esi
jne 0x108796d
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
call dword [sym.imp.ntdll.dll_LdrLoadDll]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jge 0x1087939
mov dword [0x1116ab4], 0x6c5
jmp 0x108795c
lea eax, [ebp - 0x68]
push eax
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jge 0x1087963
mov dword [0x1116ab4], 0x6d0
push eax
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [ebp - 0x68]
mov ecx, 0x1116a80
xchg dword [ecx], eax
mov dword [ebp - 0x90], 0x18
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x24], 0xaa
jne 0x10879ad
mov eax, dword [eax + 4]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x24], esi
cmp eax, esi
je 0x10879b4
jmp 0x10879c8
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
jne 0x10879c5
or dword [ebp - 4], 0xffffffff
call fcn.01087c13
call fcn.0106bf9e
ret 0x10
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx + ecx*2]
lea esi, [eax + ecx*8 + 8]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], edi
mov eax, dword [esi]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x1f0fff
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcess]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x1087a39
cmp eax, 0xc000000d
jne 0x1087a2a
mov dword [esi + 0xc], 0xc000010a
mov dword [esi + 0x10], 0x734
jmp 0x1087b9b
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x739
jmp 0x1087b9b
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
call fcn.010876f8
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x1087a5b
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x749
jmp 0x1087b9b
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
call fcn.0108776a
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
test al, al
jne 0x1087a88
mov dword [esi + 0xc], 0xc0000017
mov dword [esi + 0x10], 0x753
jmp 0x1087b9b
lea edi, [esi + 4]
push 0
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
jne 0x1087ac5
push edi
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.01086ee6
mov dword [ebp - 0x1c], eax
xor edi, edi
cmp eax, edi
jge 0x1087ac7
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x777
jmp 0x1087b9b
xor edi, edi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
push 4
push 0x1000
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x1087afc
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x7e1
jmp 0x1087b9b
push edi
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x1087b20
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x7f3
jmp 0x1087b9b
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
push dword [0x1116a80]
push dword [ebp - 0x6c]
push edi
push edi
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x1087b51
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x80a
jmp 0x1087b9b
push edi
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push edi
push 0x1c
lea eax, [ebp - 0xac]
push eax
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x1087b83
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x824
jmp 0x1087b9b
mov eax, dword [ebp - 0xac]
mov dword [esi + 0xc], eax
cmp dword [ebp - 0xac], edi
jge 0x1087b9b
mov dword [esi + 0x10], 0x82d
and dword [ebp - 4], 0
call fcn.01087bb1
inc dword [ebp - 0x24]
xor esi, esi
jmp 0x1087992