Function at 0x180004050
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x18002d0a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor eax, eax
mov rbx, rcx
lea r8, [0x18002a8f0]
lea edx, [rax + 0x62]
lea rcx, [r11 - 0x88]
mov qword [r11 - 0x88], rax
mov qword [r11 - 0x80], rax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x60], rax
mov word [r11 - 0x58], ax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov word [r11 - 0x20], ax
mov qword [r11 - 0x98], rax
mov qword [r11 - 0x90], rax
call fcn.18001482c
lea r8, [0x18002a958]
lea rcx, [rsp + 0x1f0]
mov edx, 0xb
call fcn.18001482c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x200]
repne scasb al, byte [rdi]
xor edi, edi
not rcx
dec rcx
mov r9, rcx
test ecx, ecx
je 0x18000414b
lea r8, [rsp + 0x200]
nop dword [rax + rax]
mov eax, 0x51eb851f
inc r8
mul edi
mov al, 0x64
shr edx, 5
imul dl
movzx ecx, al
movzx eax, byte [r8 - 1]
xor al, 0xb2
add cl, al
sub cl, dil
inc edi
mov byte [r8 - 1], cl
cmp edi, r9d
jb 0x180004120
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1f0]
repne scasb al, byte [rdi]
xor edi, edi
not rcx
dec rcx
mov r9, rcx
test ecx, ecx
je 0x1800041ab
lea r8, [rsp + 0x1f0]
nop word [rax + rax]
mov eax, 0x51eb851f
inc r8
mul edi
mov al, 0x64
shr edx, 5
imul dl
movzx ecx, al
movzx eax, byte [r8 - 1]
xor al, 0xb2
add cl, al
sub cl, dil
inc edi
mov byte [r8 - 1], cl
cmp edi, r9d
jb 0x180004180
lea rcx, [0x18002a968]
call fcn.1800148a8
test eax, eax
je 0x1800042ab
lea r8, [0x18002a968]
lea rcx, [rsp + 0x1f8]
mov edx, 0xb
call fcn.18001482c
lea r8, [0x18002a980]
lea rcx, [rsp + 0x238]
mov edx, 0x62
call fcn.18001482c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1f8]
repne scasb al, byte [rdi]
xor edi, edi
not rcx
dec rcx
mov r9, rcx
test ecx, ecx
je 0x18000424b
lea r8, [rsp + 0x1f8]
nop dword [rax + rax]
mov eax, 0x51eb851f
inc r8
mul edi
mov al, 0x64
shr edx, 5
imul dl
movzx ecx, al
movzx eax, byte [r8 - 1]
xor al, 0xb2
add cl, al
sub cl, dil
inc edi
mov byte [r8 - 1], cl
cmp edi, r9d
jb 0x180004220
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x238]
repne scasb al, byte [rdi]
xor edi, edi
not rcx
dec rcx
mov r9, rcx
test ecx, ecx
je 0x1800042ab
lea r8, [rsp + 0x238]
nop word [rax + rax]
mov eax, 0x51eb851f
inc r8
mul edi
mov al, 0x64
shr edx, 5
imul dl
movzx ecx, al
movzx eax, byte [r8 - 1]
xor al, 0xb2
add cl, al
sub cl, dil
inc edi
mov byte [r8 - 1], cl
cmp edi, r9d
jb 0x180004280
mov rax, qword [rbx + 8]
mov esi, 2
lea rdx, [rsp + 0x50]
mov ecx, esi
mov word [rsp + 0x40], si
call qword [rax]
test eax, eax
jne 0x180004313
mov rax, qword [rbx + 8]
lea rcx, [rsp + 0x200]
call qword [rax + 0x10]
mov rdi, qword [rbx + 8]
lea rcx, [rsp + 0x1f0]
mov dword [rsp + 0x44], eax
call fcn.1800148a8
mov ecx, eax
call qword [rdi + 0x38]
lea edx, [rsi - 1]
xor r8d, r8d
mov word [rsp + 0x42], ax
mov rax, qword [rbx + 8]
mov ecx, esi
call qword [rax + 8]
mov rdi, rax
cmp rax, 0xffffffffffffffff
mov rax, qword [rbx + 8]
jne 0x18000431c
call qword [rax + 0x60]
or rax, 0xffffffffffffffff
jmp 0x180004430
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1005
mov ecx, edi
mov dword [rsp + 0x30], 0xdbba0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x20], 4
call qword [rax + 0x48]
mov rax, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1006
mov ecx, edi
mov qword [rsp + 0x20], 4
call qword [rax + 0x48]
mov rax, qword [rbx + 8]
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov r8d, 0xffffff7f
mov ecx, edi
mov qword [rsp + 0x20], 4
call qword [rax + 0x48]
mov rax, qword [rbx + 8]
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 4
mov ecx, edi
mov qword [rsp + 0x20], 4
call qword [rax + 0x48]
mov rax, qword [rbx + 8]
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov rcx, rdi
call qword [rax + 0x18]
test eax, eax
jne 0x1800043d6
mov rax, rdi
jmp 0x180004430
mov ecx, 0x2710
push rdx
call 0x180084dde
lea rcx, [rsp + 0x1f0]
call fcn.1800148a8
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x238]
mov r8d, eax
lea rax, [rsp + 0x1f8]
lea rdx, [rsp + 0x200]
mov qword [rsp + 0x20], rax
call fcn.1800038e0
cmp rax, 0xffffffffffffffff
jne 0x18000442c
mov ecx, 0x2710
call 0x180245fd3
int3
mov qword [rbx + 0x18], rax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800147e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret