Function at 0x1000d320
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], edi
test edx, edx
je 0x1000d5b9
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d360
sub ecx, dword [ebp - 0x10]
sar ecx, 1
je 0x1000d5b9
test edi, edi
je 0x1000d5b9
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1000d5a1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push ecx
call fcn.1000d5e0
test ebx, ebx
jne 0x1000d3de
push dword [ebp - 0xc]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1000d3de
pop edi
pop esi
lea eax, [ebx + 4]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ba30
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d3e4
sub ecx, edx
sar ecx, 1
push 4
push 0x1000
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
add eax, eax
push eax
push 0
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1000d435
test ebx, ebx
jne 0x1000d41d
push esi
call edi
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ba30
mov esp, ebp
pop ebp
ret 0x10
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1000d47a
push 0x4000
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test ebx, ebx
jne 0x1000d462
push esi
call edi
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ba30
mov esp, ebp
pop ebp
ret 0x10
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.LoadLibraryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1000d4c9
push 0x4000
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test ebx, ebx
jne 0x1000d4b1
push esi
call edi
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ba30
mov esp, ebp
pop ebp
ret 0x10
push ecx
call fcn.1000d260
add esp, 4
test al, al
je 0x1000d4f0
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
jmp 0x1000d528
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.NtCreateThreadEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
push dword [ebp - 0x14]
push esi
push 0
push 0x1fffff
push ecx
call eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1000d561
push 0x4000
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test esi, esi
je 0x1000d549
test ebx, ebx
jne 0x1000d549
push esi
call edi
pop edi
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ba30
mov esp, ebp
pop ebp
ret 0x10
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4000
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 8]
call edi
test esi, esi
je 0x1000d58c
test ebx, ebx
jne 0x1000d58c
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ba30
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ba30
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ba30
mov esp, ebp
pop ebp
ret 0x10