Function at 0x1800496c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13d, dword [rsp + 0x98]
lea r14d, [r8 - 0x412c]
mov r15d, dword [rsp + 0x90]
mov esi, r8d
mov r12d, dword [rsp + 0xa0]
xor esi, 0x79c5
mov eax, esi
mov ebp, edx
lea edi, [r13 + 0x3d4]
xor eax, 0x73a
xor r13d, 0x3350
xor ebp, 0xd2c
add r15d, 0x305
add r12d, 0xfffffad4
mov rbx, rcx
cmp r14d, eax
jge 0x1800497eb
mov rax, qword [section..data]
xor r15d, 0x761a
add r12d, 0x131e
xor dword [rax + 0x28], 0xd1f63
mov rcx, qword [section..data]
mov eax, dword [rcx + 4]
cmp dword [0x18018d03c], eax
ja 0x18004977c
mov eax, dword [rbx + 0x104]
sub eax, dword [rbx + 0x5c]
add eax, 0x9356d
add dword [rbx + 0x28], eax
jmp 0x18004978a
mov eax, dword [rcx + 0xa4]
add eax, 0x27a7
add dword [rbx + 0x4c], eax
lea eax, [rdi + 0x18]
mov ecx, r12d
xor eax, 0x517
lea r9d, [r14 + 0x3350]
lea edx, [r15 + 0x15f]
mov dword [rsp + 0x20], eax
lea r8, [0x18018d010]
call fcn.1800427e4
mov ecx, 0xfff5e9ff
add r14d, 0x373c
sub ecx, dword [rbx + 0x90]
sub ebp, 0xbd6
add dword [rbx + 0x68], ecx
xor esi, 0x79c5
mov rcx, qword [rbx + 0xb0]
mov r13d, eax
mov qword [0x18018d0b8], rcx
sub edi, 0x4df
lea ecx, [rbp + 0x808]
cmp r14d, ecx
je 0x180049ab5
lea eax, [r15 - 0x118]
cmp ebp, eax
jl 0x1800499a0
lea eax, [r14 + 0x31a]
cmp edi, eax
jg 0x18004998c
mov rax, qword [section..data]
mov ecx, dword [rax + 0x48]
lea rax, [0x180069930]
xor ecx, 0x81666734
mov qword [rbx + 0x88], rax
sub ecx, 0x1800
mov dword [rbx + 0x64], ecx
xor r9d, r9d
mov rax, qword [section..data]
mov ecx, dword [rax + 0xa4]
mov eax, 0xcadcc
xor ecx, dword [rbx + 8]
sub eax, ecx
mov ecx, 0xf
add dword [rbx + 0x2c], eax
mov rax, qword [rbx + 0x88]
mov r8d, dword [r9 + rax]
add r9, 4
mov eax, dword [rbx + 0x15c]
sub eax, dword [rbx + 0x114]
inc eax
add dword [rbx + 0x148], eax
mov rax, qword [section..data]
imul r8d, dword [0x18018d074]
sub ecx, dword [rax + 0xfc]
add dword [rbx + 0x78], ecx
mov rdx, qword [section..data]
mov ecx, dword [rbx + 0x10]
inc ecx
mov eax, dword [rdx + 0xa4]
imul eax, ecx
mov dword [rdx + 0xa4], eax
mov rax, qword [section..data]
mov ecx, dword [rax + 0x4c]
xor ecx, dword [0x18018d0a8]
sub ecx, 0x32cdc4
xor dword [0x18018d0b4], ecx
movsxd rcx, dword [rbx + 0x68]
mov rax, qword [rbx + 0xa8]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x68]
mov eax, dword [rbx + 0x4c]
sub eax, 0x32cdc5
or dword [rbx], eax
mov rax, qword [section..data]
mov ecx, dword [rax + 0x154]
xor ecx, dword [rax + 8]
mov eax, dword [0x18018d16c]
add eax, 0xfff3523b
add ecx, eax
mov eax, dword [0x18018d058]
mov dword [0x18018d16c], ecx
xor eax, 0x3a3879e9
or dword [rbx + 4], eax
mov eax, dword [rbx + 0xc4]
sub eax, dword [rbx + 0x104]
mov rcx, qword [section..data]
xor eax, 1
add dword [0x18018d0a0], eax
mov eax, dword [rbx + 0x9c]
sub eax, 0x13
add dword [rcx + 0x9c], eax
mov rdx, qword [section..data]
mov ecx, dword [rbx + 0x20]
sub ecx, dword [rbx + 0xd4]
sub ecx, 0xf47bc
mov eax, dword [rdx + 0xfc]
imul eax, ecx
mov dword [rdx + 0xfc], eax
cmp r9, 0x118b60
jl 0x180049842
xor r12d, 0x761a
sub esi, 0x843
jmp 0x1800499a0
mov eax, dword [rbx + 0x6c]
and eax, dword [rbx + 0x24]
cmp dword [0x18018d104], eax
jne 0x1800499a0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [r13 + 0x145]
cmp ebp, eax
je 0x1800499ce
cmp dword [rbx + 0xfc], 0x12a4c
jae 0x180049ab5
mov rax, qword [section..data]
mov dword [rax + 0x64], 0x153
jmp 0x180049ab5
mov ecx, dword [0x18018d07c]
lea eax, [r15 + r14]
or eax, edi
cmp ecx, eax
jge 0x180049a2d
sub eax, ecx
lea ecx, [rax - 1]
shr ecx, 2
inc ecx
mov qword [rsp + 0x30], rcx
mov eax, ebp
xor eax, edi
xor eax, dword [rbx + 0x134]
cmp dword [rbx + 0x6c], eax
jb 0x180049a22
mov rax, qword [section..data]
mov ecx, dword [rax + 0x9c]
add ecx, dword [rbx + 0x48]
or ecx, dword [rax + 0x38]
sub dword [rbx + 0xb8], ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [rsp + 0x30]
sub rcx, 1
mov qword [rsp + 0x30], rcx
jne 0x1800499ed
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov eax, r15d
mov qword [rsp + 0x28], rbx
or eax, r14d
sub dword [rbx + 0x9c], eax
mov eax, dword [rbx + 0x104]
mov rcx, qword [section..data]
sub eax, r15d
imul eax, eax, 0x412c
xor dword [rcx + 0x14c], eax
mov rax, qword [section..data]
mov edx, dword [rbx + 0x108]
mov r9d, dword [0x18018d120]
mov r10d, dword [rbx + 0x154]
add r9d, edi
mov ecx, dword [rax + 0x90]
add r10d, r13d
or r9d, dword [0x18018d0a0]
xor ecx, r12d
xor ecx, 0x3a56
mov dword [rsp + 0x20], r10d
xor edx, ecx
mov r8d, ecx
sub edx, ecx
xor r8d, 0x338a
lea ecx, [rdi + 0x31c5]
call sym.xellxsz554sa6.dll_FoOixh
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
lea eax, [rsi - 0x1ad]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret