Function at 0x10b52ca
Capabilities:
Create thread
Terminate thread

Disassembly:
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 0x10b53a8
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 0x10b52b4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebx], eax
jne 0x10b5350
jmp 0x10b536c
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10b5364
call fcn.0106e781
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10b533e
jmp 0x10b5367
mov dword [ebx + 0x18], edi
cmp dword [ebx + 0x18], edi
jne 0x10b5372
mov ax, 0xfe0c
jmp 0x10b53b7
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 0x10b53b4
cmp edx, edi
mov dword [ebp + 0x14], edi
jne 0x10b53c3
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 0x10b5428
mov ecx, dword [esi + 0x23c]
cmp ecx, dword [esi + 0x234]
jne 0x10b5428
jmp 0x10b53f3
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10b5407
call fcn.0106e781
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10b53e1
jmp 0x10b540a
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 0x10b54d5
mov edx, dword [ebp - 4]
cmp ecx, edx
mov dword [eax], ecx
jbe 0x10b543e
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 0x10b54c2
mov ecx, dword [esi + 0x23c]
cmp ecx, dword [esi + 0x234]
jne 0x10b54c2
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 0x10b53be
jmp 0x10b53af
push edi
push 1
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x1388
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10b5500
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10b550c
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 0x10b5554
call fcn.010a123f
jmp 0x10b5559
call fcn.010a0d44
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 0x10b53b7