Function at 0x10c42c4
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 0x10c43a4
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 0x10c42a4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebx], eax
jne 0x10c434c
jmp 0x10c4368
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10c4360
call fcn.01075adf
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10c433a
jmp 0x10c4363
mov dword [ebx + 0x18], edi
cmp dword [ebx + 0x18], edi
jne 0x10c436e
mov ax, 0xfe0c
jmp 0x10c43b3
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 0x10c43b0
cmp edx, edi
mov dword [ebp + 0x14], edi
jne 0x10c43bf
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 0x10c4424
mov ecx, dword [esi + 0x23c]
cmp ecx, dword [esi + 0x234]
jne 0x10c4424
jmp 0x10c43ef
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10c4403
call fcn.01075adf
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10c43dd
jmp 0x10c4406
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 0x10c44d1
mov edx, dword [ebp - 4]
cmp ecx, edx
mov dword [eax], ecx
jbe 0x10c443a
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 0x10c44be
mov ecx, dword [esi + 0x23c]
cmp ecx, dword [esi + 0x234]
jne 0x10c44be
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 0x10c43ba
jmp 0x10c43ab
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 0x10c44fc
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10c4508
lea eax, [ebp + 0xc]
push eax
push dword [ebx]
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 0x10c4550
call fcn.010ae3a8
jmp 0x10c4555
call fcn.010add5f
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 0x10c43b3