Function at 0x180004c68
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov eax, dword [rsp + 0xa0]
lea ebp, [r8 - 0x16a]
mov esi, dword [rsp + 0x98]
mov edi, eax
mov rbx, qword [rsp + 0x90]
xor edi, 0xf3b
xor esi, 0x7ac
xor r15d, r15d
lea r12d, [rax + 0x88b]
lea r10d, [rax + 0x855]
mov dword [rsp + 0x80], r12d
lea r13d, [rax - 0xf3b]
mov dword [rsp + 0xa0], r10d
lea eax, [rdi + 0x1571]
cmp ebp, eax
jg 0x180004e62
mov r11d, r15d
lea r14d, [r15 + 1]
mov eax, dword [rbx + 0x120]
sub eax, r14d
or dword [0x18015e0c4], eax
mov eax, dword [rbx + 4]
or dword [rbx + 0x78], eax
mov r8, qword [section..data]
mov rax, qword [r8 + 0xc8]
mov ecx, dword [r8 + 0x108]
mov r9d, dword [r11 + rax]
add r11, 4
mov eax, dword [0x18015e118]
dec eax
add ecx, eax
mov dword [0x18015e118], ecx
mov rax, qword [r8 + 0xd0]
movsxd rcx, dword [rbx + 0x88]
imul r9d, dword [rbx + 0x84]
mov edx, r9d
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x88], r14d
mov ecx, dword [rbx + 0xb4]
mov rax, qword [section..data]
mov edx, dword [rax + 0x28]
add edx, ecx
xor edx, ecx
xor edx, 0x11
mov dword [rbx + 0xb4], edx
mov eax, dword [0x18015e178]
sub eax, dword [rbx + 0xdc]
mov rcx, qword [section..data]
sub eax, 0x12c358
add dword [rcx + 0x120], eax
mov rax, qword [section..data]
mov ecx, dword [rax + 0x64]
add dword [rbx + 0x78], ecx
mov rax, qword [rbx + 0xd0]
movsxd rcx, dword [0x18015e098]
mov byte [rcx + rax], r9b
add dword [0x18015e098], r14d
mov rdx, qword [section..data]
mov ecx, dword [rdx + 0xf8]
xor ecx, dword [rbx + 0x78]
mov eax, dword [rdx + 0x10c]
sub ecx, 0xa71db
imul eax, ecx
mov dword [rdx + 0x10c], eax
mov eax, dword [0x18015e0b4]
add eax, 0xffffffec
add dword [rbx + 0x8c], eax
mov ecx, dword [0x18015e020]
mov edx, dword [0x18015e048]
add ecx, 0xfff9210c
add ecx, edx
mov dword [0x18015e020], ecx
mov ecx, dword [0x18015e160]
lea eax, [rcx + rdx]
xor eax, 0x6def5
or ecx, eax
mov eax, r14d
mov dword [0x18015e160], ecx
sub eax, dword [rbx + 0x114]
add dword [0x18015e0ec], eax
cmp r11, 0x1b2358
jl 0x180004cec
lea eax, [rbp + 0x2fd]
mov r8, rbx
lea r9d, [rdi + 0xe88]
mov dword [rsp + 0x20], eax
lea edx, [r10 - 0x673]
lea ecx, [rsi - 0x6a9]
call fcn.180003f4c
mov edi, eax
jmp 0x180004f39
mov rcx, qword [section..data]
mov edx, dword [0x18015e178]
mov r14d, dword [rbx + 0x10c]
mov eax, dword [rcx + 0xdc]
and eax, edx
xor eax, 0x1790
cmp r14d, eax
je 0x180004f41
mov r8d, dword [0x18015e024]
mov eax, edi
mov r15d, edi
sub eax, r8d
sub eax, dword [rbx + 0xb0]
cmp edi, eax
je 0x180004f14
mov r12d, esi
sub r12d, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rax, qword [section..data]
mov r8d, r12d
mov ecx, dword [rbx + 0x6c]
and ecx, 0xc46
mov edx, dword [rax + 0xf8]
imul edx, dword [0x18015e074]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov eax, dword [rbx + 0x15c]
add r15d, 4
mov rcx, qword [section..data]
add eax, r13d
or eax, esi
xor dword [rcx + 0x1c], eax
mov eax, edi
mov r8d, dword [0x18015e024]
sub eax, r8d
sub eax, dword [rbx + 0xb0]
cmp r15d, eax
jne 0x180004eab
mov edx, dword [0x18015e178]
mov rcx, qword [section..data]
mov eax, dword [rcx + 0xdc]
add r14d, 3
and eax, edx
xor eax, 0x1790
cmp r14d, eax
jne 0x180004e93
mov r12d, dword [rsp + 0x80]
xor r15d, r15d
mov r10d, dword [rsp + 0xa0]
xor r12d, 0x56
cmp edi, r12d
jg 0x180005098
cmp dword [rbx + 0xdc], 0xbe31
ja 0x180004f71
mov eax, dword [rbx + 0xf4]
xor eax, dword [rbx + 0x84]
xor eax, 0x1e8ca8
mov dword [rbx + 0x84], eax
lea ecx, [r13 + 0x852]
lea eax, [r10 + 0x36]
mov dword [rsp + 0x30], eax
lea r9d, [rbp + 0x751]
mov qword [rsp + 0x28], rbx
lea r8d, [rdi + 0x2f5]
mov dword [rsp + 0x20], ecx
lea edx, [rsi - 0x9a6]
mov ecx, ebp
call fcn.180004920
mov rdx, qword [section..data]
lea r8, [0x180007090]
mov eax, dword [0x18015e108]
add ebp, 0x24a
cmp dword [rdx + 0x64], eax
cmova r8, qword [0x18015e0d8]
xor r13d, 0xc46
mov qword [0x18015e0d8], r8
mov r9d, r13d
lea r8d, [rsi - 0xe5c]
mov dword [rsp + 0x20], r13d
xor esi, 0x1b80
mov ecx, esi
call fcn.180004214
mov rax, qword [section..data]
mov rcx, qword [rax + 0xe8]
mov rax, qword [0x18015e0f8]
mov edx, dword [rcx + r15]
xor edx, dword [0x18015e0c8]
mov dword [r15 + rax], edx
add r15, 4
mov rax, qword [section..data]
mov ecx, dword [rax + 0x114]
add ecx, 0xfff58e31
add ecx, dword [rbx + 0xf8]
xor dword [0x18015e110], ecx
mov eax, dword [rbx + 4]
xor eax, dword [rbx + 0x15c]
sub eax, 0xa
add dword [rbx + 0xf4], eax
mov eax, 0x1c55d2
sub eax, dword [rbx + 0x150]
sub eax, dword [0x18015e104]
add dword [0x18015e024], eax
mov rcx, qword [section..data]
mov eax, dword [rbx + 0xf0]
add dword [rcx + 0xb8], eax
mov rcx, qword [section..data]
mov eax, dword [rcx + 0xa4]
xor eax, dword [rcx + 4]
xor eax, 0x14
mov dword [rcx + 4], eax
cmp r15, 0x21e794
jl 0x180004ff3
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
lea eax, [rbp - 0x3c1]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret