Function at 0x140012650
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea edi, [r8 - 0x482]
mov esi, edx
mov r8d, ecx
lea eax, [rcx + 0xd8]
xor r8d, 0x905
add r8d, 0x218
cmp eax, r8d
jge 0x1400128fc
mov r10, qword [rsp + 0x50]
xor r11d, r11d
mov ebx, r11d
mov esi, 0x1218e
mov rcx, qword [section..data]
mov eax, dword [r10 + 0x24]
add eax, dword [0x1404cd120]
xor eax, 0xcd4bb
add dword [rcx + 0xc8], eax
mov eax, dword [0x1404cd160]
mov ecx, dword [r10 + 0x128]
add eax, 0xfff2a77d
add ecx, eax
add dword [r10 + 0x70], ecx
mov rax, qword [section..data]
mov ecx, dword [rax + 0x150]
mov eax, dword [r10 + 4]
xor ecx, 0xe
imul eax, ecx
mov dword [r10 + 4], eax
sub eax, dword [r10 + 0x88]
xor dword [r10 + 0x1c], eax
mov rcx, qword [section..data]
mov rax, qword [r10 + 0x90]
mov r9d, dword [rbx + rax]
add rbx, 4
mov eax, dword [0x1404cd0d4]
add eax, 0x4d5792a8
add dword [rcx + 0x128], eax
imul r9d, dword [0x1404cd044]
mov eax, dword [r10 + 0xd0]
mov ecx, dword [r10 + 0x13c]
xor eax, esi
add dword [r10 + 0x88], eax
sub ecx, 0x40
mov rdx, qword [section..data]
mov r8d, r9d
shr r8d, 8
mov eax, dword [rdx + 0x70]
imul eax, ecx
mov dword [rdx + 0x70], eax
mov edx, r9d
movsxd rcx, dword [r10 + 0x74]
mov rax, qword [r10 + 0xd8]
shr edx, 0x18
mov byte [rcx + rax], dl
mov edx, r9d
inc dword [r10 + 0x74]
mov ecx, dword [0x1404cd114]
mov eax, dword [0x1404cd148]
add eax, 0xfffffff0
shr edx, 0x10
imul ecx, eax
mov rax, qword [0x1404cd0e8]
mov dword [0x1404cd114], ecx
movsxd rcx, dword [r10 + 0x74]
mov byte [rcx + rax], dl
inc dword [r10 + 0x74]
mov rax, qword [section..data]
movsxd rdx, dword [r10 + 0x74]
mov rcx, qword [rax + 0xd8]
mov byte [rdx + rcx], r8b
mov eax, dword [r10 + 0xd0]
inc dword [r10 + 0x74]
xor eax, esi
sub dword [r10 + 0xcc], eax
movsxd rcx, dword [0x1404cd084]
mov rax, qword [r10 + 0xd8]
mov byte [rcx + rax], r9b
inc dword [0x1404cd084]
cmp rbx, 0x309a8
jl 0x140012698
sub edi, 0xa5c
mov eax, dword [r10 + 0x98]
mov ecx, dword [r10 + 0x68]
xor eax, 0x12705
add dword [r10 + 0x150], eax
mov eax, dword [r10 + 0x38]
mov edx, dword [r10 + 0x54]
add eax, 0xffded6f5
add ecx, eax
add dword [r10 + 0x128], ecx
mov ecx, dword [r10 + 0x40]
mov r8, qword [section..data]
add ecx, 0xfff949ab
add edx, ecx
mov eax, dword [r8 + 0x150]
imul eax, edx
mov dword [r8 + 0x150], eax
mov rax, qword [section..data]
mov rcx, qword [rax + 0xe0]
mov rax, qword [r10 + 0xe0]
mov edx, dword [rcx + r11]
xor edx, dword [0x1404cd088]
mov dword [r11 + rax], edx
add r11, 4
mov rcx, qword [section..data]
mov eax, dword [r10 + 0xe8]
add dword [rcx + 0x78], eax
mov rax, qword [section..data]
mov ecx, dword [rax + 0x110]
mov eax, dword [0x1404cd0fc]
sub ecx, 9
imul eax, ecx
mov dword [0x1404cd0fc], eax
mov eax, dword [r10 + 0xec]
xor eax, dword [r10 + 0x54]
xor eax, dword [r10 + 0x150]
xor eax, 1
mov dword [r10 + 0x150], eax
mov eax, dword [r10 + 0x3c]
sub eax, dword [0x1404cd0d4]
mov rcx, qword [section..data]
sub eax, 0x4d5792ed
xor dword [rcx + 0x68], eax
cmp r11, 0x941628
jl 0x1400127ef
mov rax, qword [section..data]
mov ecx, dword [rax + 0x30]
cmp dword [r10 + 0xc8], ecx
je 0x140012934
mov rax, qword [r10 + 0xe0]
mov qword [r10 + 0x80], rax
jmp 0x140012934
mov rbx, qword [rsp + 0x50]
mov eax, dword [rbx + 0x70]
sub eax, dword [rbx + 0x3c]
or eax, dword [0x1404cd160]
cmp esi, eax
je 0x140012934
mov ecx, dword [rbx + 0x30]
not ecx
mov edx, edi
and rcx, rdx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [rbx + 0x5c]
xor rcx, rsi
or rcx, 0x1819
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret