Function at 0x10001f18
Capabilities:
Create thread
Inject thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x540
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
inc ebx
test edx, edx
je 0x100022ea
cmp dword [ebp + 0x1c], 0
je 0x100022ea
cmp dword [ebp + 0x20], 0
je 0x100022ea
mov esi, dword [ebp + 0x14]
xor eax, eax
mov ecx, 0x10108818
mov edi, 0x10108048
cmp esi, 0x8664
cmovne ecx, eax
xor ebx, ebx
cmp esi, 0x14c
cmovne edi, ecx
setne al
test edi, edi
je 0x100020dc
mov bl, al
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x28]
shl ebx, 5
or ebx, 0x7d0
add eax, ebx
lea eax, [ecx + eax + 0x28]
push 4
push 0x3000
mov dword [esp + 0x24], eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x100020f3
xor edx, edx
lea ecx, [eax + ebx + 0x28]
mov esi, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x44], edx
add esi, ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], edx
lea edx, [esp + 0x18]
mov ecx, 0
mov dword [edx], ecx
mov ecx, dword [ebp + 0x20]
lea ecx, [ecx + esi + 0x28]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x58], ecx
push edx
push ebx
push edi
mov dword [esp + 0x10], eax
push eax
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 4
test eax, eax
je 0x100020e9
lea ecx, [esp + 0x18]
lea eax, [esp + 0x38]
push ecx
push 0x28
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100020e9
lea eax, [esp + 0x18]
mov dword [esp + 8], esi
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, dword [ebp + 8]
test eax, eax
je 0x100022d3
lea eax, [esp + 0x18]
push eax
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esp + 0x1c]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
mov edx, esi
je 0x100022d6
lea eax, [esp + 0x34]
mov dword [eax], 0
push eax
push 0x20
push dword [esp + 0x24]
push dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10002100
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
cmp eax, 2
je 0x1000210a
mov ebx, 0xa
cmp eax, 1
jne 0x100022d6
mov eax, dword [ebp + 0x14]
cmp eax, 0x14c
jne 0x1000216b
lea eax, [esp + 0x60]
xor ecx, ecx
push eax
push ecx
push dword [esp + 0x10]
push dword [esp + 0x10]
push ecx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x1000218c
mov edi, dword [ebp + 8]
mov ebx, 2
jmp 0x100022ea
mov edx, edi
mov edi, dword [ebp + 8]
jmp 0x100022d6
mov edi, dword [ebp + 8]
mov ebx, 3
jmp 0x100022ea
mov ebx, 5
jmp 0x100022d3
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100021ad
mov ecx, dword [ebp + 0x14]
cmp ecx, 0x14c
jne 0x100021b7
lea ebx, [esp + 0x60]
mov dword [ebx], 0x10002
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10002315
mov eax, dword [esp + 4]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x104], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
xor ecx, ecx
test eax, eax
sete cl
lea ebx, [ecx + ecx*8]
jmp 0x10002327
cmp eax, 0x8664
jne 0x10002196
lea eax, [esp + 0x60]
xor ecx, ecx
push eax
push ecx
push dword [esp + 0x10]
push dword [esp + 0x10]
push ecx
push ecx
push dword [ebp + 0xc]
call fcn.10002618
mov ebx, eax
test eax, eax
je 0x100022ce
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x100022d3
mov ebx, 7
jmp 0x100022d6
cmp ecx, 0x8664
jne 0x1000232e
lea ecx, [esp + 0x60]
xor esi, esi
mov dword [ecx + 4], esi
mov dword [ecx], str.ntdll.dll
push ecx
push 1
push esi
push 0x100023c6
call fcn.10002348
lea edi, [esp + 0x20]
mov ebx, edx
mov dword [esp + 0xc], eax
mov ecx, 0x10002462
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 0xc], esi
mov dword [edi + 8], str.NtGetContextThread
mov eax, 2
push edi
push eax
push esi
push ecx
call fcn.10002348
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov dword [edi + 4], ebx
mov dword [edi], eax
mov dword [edi + 0xc], esi
mov dword [edi + 8], str.NtSetContextThread
push edi
mov eax, 2
push eax
push esi
mov eax, 0x10002462
push eax
call fcn.10002348
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov ebx, edx
lea eax, [esp + 0x60]
mov dword [edi + 4], esi
mov dword [eax + 0x30], 0x100002
mov dword [edi], ecx
mov dword [edi + 0xc], esi
mov dword [edi + 8], eax
push edi
mov eax, 2
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.10002348
test eax, eax
js 0x1000231c
mov eax, dword [esp + 4]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xe4], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xec], esi
mov esi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0xe8], eax
mov eax, 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x28], eax
push edi
push 2
push ebx
push dword [esp + 0x18]
call fcn.10002348
mov ebx, eax
sar ebx, 0x1f
and ebx, 9
jmp 0x10002324
mov ebx, 6
mov edx, dword [ebp + 0xc]
push 0x4000
push dword [esp + 0x20]
push dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test edi, edi
je 0x1000230b
lea esi, [esp + 0x60]
push ebx
push 0x101093ec
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, edi
push eax
push esi
call fcn.10001e6e
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 8
jmp 0x10002327
mov esi, dword [ebp + 0x10]
mov ebx, 8
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
test ebx, ebx
jne 0x100022d6
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0xc]
xor ebx, ebx
jmp 0x100022d6