Function at 0x10c9e8f
Capabilities:
Create thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
push ebx
push esi
push edi
xor edi, edi
mov dword [eax], edi
mov dword [ecx], 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x10]
mov ebx, dword [esi + 0x270]
cmp dword [ebx], edi
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], ecx
jne 0x10c9f6f
push edi
push 1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push edi
push 1
push edi
push edi
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push 0x10c9e6f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebx], eax
jne 0x10c9f17
jmp 0x10c9f33
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10c9f2b
call fcn.0107875a
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10c9f05
jmp 0x10c9f2e
mov dword [ebx + 0x18], edi
cmp dword [ebx + 0x18], edi
jne 0x10c9f39
mov ax, 0xfe0c
jmp 0x10c9f7e
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x4445544e
mov word [eax + 4], di
mov word [eax + 6], 2
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], edi
mov dword [esi + 0x238], edi
mov dword [esi + 0x23c], edi
jmp 0x10c9f7b
cmp edx, edi
mov dword [ebp + 0x14], edi
jne 0x10c9f8a
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
xor edi, edi
mov ecx, dword [esi + 0x238]
cmp ecx, dword [esi + 0x230]
jne 0x10c9fef
mov ecx, dword [esi + 0x23c]
cmp ecx, dword [esi + 0x234]
jne 0x10c9fef
jmp 0x10c9fba
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10c9fce
call fcn.0107875a
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10c9fa8
jmp 0x10c9fd1
mov dword [ebx + 0x18], edi
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x230], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x234], edi
mov dword [esi + 0x238], edi
mov dword [esi + 0x23c], edi
mov ecx, dword [ebx + 0x18]
cmp ecx, edi
je 0x10ca09c
mov edx, dword [ebp - 4]
cmp ecx, edx
mov dword [eax], ecx
jbe 0x10ca005
mov dword [eax], edx
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebx + 0x1c]
lea edi, [edx + eax]
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]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
sub dword [ebx + 0x18], eax
add dword [ebp + 0x14], eax
mov eax, dword [edi]
add dword [ebx + 0x1c], eax
mov esi, dword [ebp - 8]
mov ecx, dword [edi]
xor eax, eax
mov dword [ebp - 0xc], eax
add dword [esi + 0x238], ecx
mov ecx, dword [esi + 0x238]
adc dword [esi + 0x23c], eax
cmp ecx, dword [esi + 0x230]
jne 0x10ca089
mov ecx, dword [esi + 0x23c]
cmp ecx, dword [esi + 0x234]
jne 0x10ca089
push eax
push 1
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor eax, eax
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], eax
mov dword [esi + 0x238], eax
mov dword [esi + 0x23c], eax
mov eax, dword [edi]
sub dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
jne 0x10c9f85
jmp 0x10c9f76
push edi
push 1
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0xea60
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10ca0c7
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10ca0d6
lea eax, [ebp + 0xc]
push eax
push dword [ebx]
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x10]
pop ecx
push edi
mov dword [esi + 0x270], edi
cmp byte [eax], 9
push eax
mov eax, dword [ebp + 8]
push eax
push dword [eax]
jne 0x10ca11e
call fcn.010b3b28
jmp 0x10ca123
call fcn.010b34df
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov dword [esi + 0x230], edi
mov dword [esi + 0x234], edi
mov dword [esi + 0x238], edi
mov dword [esi + 0x23c], edi
jmp 0x10c9f7e