Function at 0x10c417d
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 0x10c425d
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 0x10c415d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebx], eax
jne 0x10c4205
jmp 0x10c4221
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10c4219
call fcn.01075a13
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, reloc.KERNEL32.dll_CompareStringW
je 0x10c41f3
jmp 0x10c421c
mov dword [ebx + 0x18], edi
cmp dword [ebx + 0x18], edi
jne 0x10c4227
mov ax, 0xfe0c
jmp 0x10c426c
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 0x10c4269
cmp edx, edi
mov dword [ebp + 0x14], edi
jne 0x10c4278
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 0x10c42dd
mov ecx, dword [esi + 0x23c]
cmp ecx, dword [esi + 0x234]
jne 0x10c42dd
jmp 0x10c42a8
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10c42bc
call fcn.01075a13
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, reloc.KERNEL32.dll_CompareStringW
je 0x10c4296
jmp 0x10c42bf
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 0x10c438a
mov edx, dword [ebp - 4]
cmp ecx, edx
mov dword [eax], ecx
jbe 0x10c42f3
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 0x10c4377
mov ecx, dword [esi + 0x23c]
cmp ecx, dword [esi + 0x234]
jne 0x10c4377
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 0x10c4273
jmp 0x10c4264
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, reloc.KERNEL32.dll_CompareStringW
jne 0x10c43b5
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10c43c1
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 0x10c4409
call fcn.010ae1ed
jmp 0x10c440e
call fcn.010adba4
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 0x10c426c