Function at 0x140059910
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push r14
push r15
push rbx
push rdi
sub rsp, 0xd8
mov word [rsp + 0xd6], 0x50fe
mov qword [rsp + 0x88], 0x1502b6f
mov qword [rsp + 0xa0], 0x15e4e247
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rcx
call fcn.1400011a0
mov r8d, 0x26790d66
mov ecx, r8d
mov r8d, 0xd8f87fc
mov edx, r8d
mov r8d, 0x729320b8
mov r9d, dword [rsp + 0xc4]
sub r8d, r9d
mov dword [rsp + 0xc4], r8d
mov rax, qword [rax + 0x18]
mov r10, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rcx
mov rcx, rdx
mov rdx, r10
shl rdx, cl
mov qword [rsp + 0xc8], rdx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0
setne cl
mov r11, qword [rsp + 0x88]
add rax, 0x20
sub r11, 0x6ce7b77d
mov rsi, qword [rsp + 0x48]
cmp rsi, r11
mov dword [rsp + 0x44], r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r10
mov byte [rsp + 0x2f], cl
ja 0x140059ce6
jmp 0x140059b6c
test byte [rsp + 0xaf], 1
jne 0x140059bb6
jmp 0x140059b33
mov cx, 0x511e
mov rdx, qword [rsp + 0x30]
or rdx, 0x6d513c76
mov r8d, dword [rsp + 0x64]
mov r9w, word [rsp + 0xd6]
mov qword [rsp + 0xc8], rdx
sub cx, r9w
mov rdx, qword [rsp + 0x30]
xor rdx, rdx
mov r10d, r8d
mov r11d, r10d
mov r9w, word [rsp + 0xd6]
add r9w, 0xaf1c
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0xc8], rdx
mov r10d, dword [rsp + 0x44]
or r10d, r10d
mov dword [rsp + 0xc4], r10d
mov di, word [rsi + r11*2]
mov r10d, dword [rsp + 0x44]
and r10d, 0x23dc3a8e
mov dword [rsp + 0xc4], r10d
mov bx, di
add bx, 0xffbf
mov r10d, dword [rsp + 0x44]
xor r10d, 0x3270771e
mov bp, di
add bp, cx
cmp bx, r9w
cmovb di, bp
mov dword [rsp + 0xc4], r10d
mov rdx, qword [rsp + 0x50]
cmp word [rdx + r11*2], di
sete r14b
and r14b, 1
mov byte [rsp + 0xaf], r14b
cmp di, 0
setne r14b
mov r15b, byte [rsp + 0xaf]
mov qword [rsp + 0xc8], 0x437cd820
and r15b, r14b
mov r10d, dword [rsp + 0x9c]
add r8d, 1
mov r11, qword [rsp + 0x30]
mov qword [rsp + 0xc8], r11
cmp r8d, r10d
setb r14b
mov dword [rsp + 0xc4], eax
and r15b, r14b
mov dword [rsp + 0x64], r8d
test r15b, 1
jne 0x1400599f5
jmp 0x1400599e2
mov qword [rsp + 0xc8], 0x42780af8
mov rax, qword [rsp + 0x78]
add rsp, 0xd8
pop rdi
pop rbx
pop r15
pop r14
pop rsi
pop rbp
ret
mov eax, 0xedfd97
mov ecx, eax
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0xc8], 0xffffffffad54945e
mov r8, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], r8
cmp rcx, rdx
jae 0x1400599e2
jmp 0x140059ce6
mov eax, 0x70df9909
mov ecx, eax
mov rdx, qword [rsp + 0x30]
imul r8, rdx, 0x58638c86
mov qword [rsp + 0xc8], r8
mov r8, qword [rsp + 0x38]
mov r9, qword [r8]
shr rdx, cl
mov qword [rsp + 0xc8], rdx
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x78], 0
cmp r9, r8
je 0x140059b12
jmp 0x140059c1e
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
shl rdx, cl
mov qword [rsp + 0xc8], rdx
mov rdx, qword [rsp + 0x20]
mov r8, qword [rdx]
mov dword [rsp + 0xc4], eax
mov qword [rsp + 0x78], r8
jmp 0x140059b12
mov rax, qword [rsp + 0xb0]
add rax, 0xfffffffffffffff0
mov ecx, dword [rsp + 0x44]
xor ecx, 0x6ac17d3c
mov dword [rsp + 0xc4], ecx
mov qword [rsp + 0x78], rax
mov dword [rsp + 0xc4], 0x20b7f612
jmp 0x140059b12
mov rax, qword [rsp + 0x30]
and rax, 0x337da491
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
sub rcx, rcx
mov qword [rsp + 0xc8], rcx
add rax, 0x48
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xc8], 0x425d1fe4
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xb0]
add rax, 0x20
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0xc8], rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
or rcx, 0x310c66e7
mov rax, qword [rax]
mov qword [rsp + 0xc8], rcx
mov rcx, qword [rsp + 0x58]
cmp rax, rcx
sete dl
mov rax, qword [rsp + 0x30]
or rax, rax
mov r8b, byte [rsp + 0x2f]
and r8b, dl
mov qword [rsp + 0xc8], rax
test r8b, 1
jne 0x140059bec
jmp 0x140059d26
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], 0
mov ecx, dword [rsp + 0x44]
imul edx, ecx, 0x57252f57
mov dword [rsp + 0xc4], edx
mov r8, qword [rsp + 0x38]
cmp rax, r8
je 0x140059b12
jmp 0x140059c1e
mov rax, qword [rsp + 0x90]
mov cx, word [rax]
shr cx, 1
movzx edx, cx
mov dword [rsp + 0x9c], edx
mov dword [rsp + 0x64], 0
cmp cx, 0
je 0x140059b33
jmp 0x1400599f5