Function at 0x140083928
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfa8]
mov eax, 0x10a8
call fcn.1401a62f0
sub rsp, rax
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rbp + 0xf90], rax
mov rax, qword [rcx + 0xe0]
xor r15d, r15d
mov rdi, rcx
mov dword [rsp + 0x68], r9d
mov r14d, r9d
mov qword [rsp + 0x70], r8
mov r9d, 0xfffffffc
mov dword [rsp + 0x64], edx
mov rcx, qword [rax + 0x18]
mov r8d, edx
mov r12d, 0x80
mov ebx, r9d
mov edx, r15d
test rcx, rcx
je 0x14008399a
mov rdx, qword [rcx]
mov esi, r15d
test r14d, r14d
jne 0x1400839b1
lea ecx, [r8 - 9]
or r8d, 0xffffffff
cmp ecx, 1
cmovbe esi, r8d
cmp qword [rdi + 0xe8], r15
jne 0x1400839c2
mov eax, r9d
jmp 0x140083bdc
test rdx, rdx
je 0x1400839ba
mov rcx, rdx
call fcn.140083890
mov r13, rax
cmp dword [rdi + 0x70], r15d
jne 0x1400839ec
mov rcx, qword [rdi + 0xe8]
cmp qword [rcx + 0x2a0], r15
je 0x1400839ec
movzx r12d, r15w
mov rcx, qword [rdi + 0xe8]
or edx, 0xffffffff
mov rcx, qword [rcx + 0x280]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, r14d
jge 0x140083bbf
mov edx, 0x1000
mov ecx, 0x8000
test esi, esi
mov eax, r15d
mov ebx, r14d
cmovns eax, esi
sub ebx, eax
movsxd r15, eax
add r15, qword [rsp + 0x70]
cmp ebx, edx
cmovg ebx, edx
movzx edx, r12w
mov r9d, ebx
lea esi, [rbx + rax]
cmp esi, r14d
jl 0x140083b4e
or dx, cx
xor eax, eax
lea rcx, [rsp + 0x78]
cmp dword [r13 + 4], eax
jne 0x140083a5b
movzx r8d, word [rsp + 0x64]
jmp 0x140083a62
mov dword [r13 + 4], eax
xor r8d, r8d
call fcn.1400902c8
mov r14d, eax
test r12w, r12w
je 0x140083b6b
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.1400b4cb0
xor eax, eax
test ebx, ebx
jle 0x140083afe
movsxd r8, ebx
mov edx, eax
sar r8, 2
mov r9d, eax
test r8, r8
jle 0x140083ac0
lea rax, [rbp - 0x70]
mov r10, r15
sub r10, rax
mov edx, r8d
lea rax, [r10 + r9*4]
mov ecx, dword [rbp + rax - 0x70]
xor ecx, dword [rsp + 0x60]
mov dword [rbp + r9*4 - 0x70], ecx
inc r9
cmp r9, r8
jl 0x140083aa7
shl edx, 2
cmp edx, ebx
jge 0x140083afe
movsxd rax, edx
lea r8, [rbp - 0x70]
add r8, rax
lea rax, [rbp - 0x70]
sub r15, rax
mov eax, edx
and eax, 0x80000003
jge 0x140083ae8
dec eax
or eax, 0xfffffffc
inc eax
cdqe
inc edx
mov cl, byte [rsp + rax + 0x60]
xor cl, byte [r8 + r15]
mov byte [r8], cl
inc r8
cmp edx, ebx
jl 0x140083ad8
mov ecx, 2
lea rax, [rbp - 0x70]
mov dword [rsp + 0x58], ecx
lea r9, [rsp + 0x78]
mov dword [rsp + 0x50], ebx
xor edx, edx
mov qword [rsp + 0x48], rax
mov r8d, 0x40000003
mov dword [rsp + 0x40], ecx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov rcx, qword [rdi + 0xe8]
mov dword [rsp + 0x20], r14d
call fcn.140074a9c
jmp 0x140083b9f
cmp dword [r13 + 4], 0
lea rcx, [rsp + 0x78]
jne 0x140083a5f
mov dword [r13 + 4], 1
jmp 0x140083a53
mov rcx, qword [rdi + 0xe8]
lea r9, [rsp + 0x78]
mov eax, 2
xor edx, edx
mov dword [rsp + 0x40], eax
mov r8d, 0x40000002
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
call fcn.140074a9c
mov r14d, dword [rsp + 0x68]
mov ebx, eax
mov ecx, 0x8000
mov edx, 0x1000
mov r15d, 0
cmp esi, r14d
jl 0x140083a16
mov rcx, qword [rdi + 0xe8]
xor r8d, r8d
mov rcx, qword [rcx + 0x280]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, ebx
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.1401a5d00
add rsp, 0x10a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret