Function at 0x140037d10
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1400bd320]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r10, rcx
mov qword [rsp + 0x48], rcx
movzx ecx, byte [0x1400c2e60]
mov r14, r9
mov qword [rsp + 0x40], r9
mov rdi, r8
mov rsi, rdx
test cl, cl
jne 0x140037d5d
call fcn.140040bb0
movzx ecx, byte [0x1400c2e60]
mov r10, qword [rsp + 0x48]
mov qword [rsp + 0x88], rbx
xor ebx, ebx
cmp byte [0x1400c2e61], bl
je 0x140037d92
mov r9, r14
mov r8, rdi
mov rdx, rsi
mov rcx, r10
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], 0x10
call fcn.140037720
jmp 0x14003828b
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r15
mov edx, ebx
test rsi, rsi
je 0x140037db2
mov edx, dword [rsi]
mov r9d, ebx
add rsi, 4
je 0x140037dbe
mov r9d, dword [rsi]
mov r8d, ebx
add rsi, 4
je 0x140037dca
mov r8d, dword [rsi]
mov eax, ebx
add rsi, 4
je 0x140037dd4
mov eax, dword [rsi]
mov rsi, qword [r10 + 0x30]
add rsi, 0x20
mov r13d, dword [rsi - 0x14]
mov r14d, dword [rsi - 0x20]
mov r15d, dword [rsi - 0x1c]
mov r12d, dword [rsi - 0x18]
mov r11d, dword [rsi - 0xc]
mov ebp, dword [rsi - 8]
xor r13d, eax
mov eax, dword [rsi - 0x10]
xor r14d, edx
mov dword [rsp + 0x34], eax
mov eax, dword [rsi - 4]
xor r15d, r9d
xor r12d, r8d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x38], eax
test cl, cl
jne 0x140037e25
call fcn.140040bb0
mov r11d, dword [rsp + 0x30]
mov r10, qword [rsp + 0x48]
mov edx, dword [0x1400bce30]
mov dword [rsp + 0x30], ebx
lea r8, [0x1400c1e30]
mov ecx, dword [rsp + 0x30]
nop word [rax + rax]
and ecx, dword [rbx + r8]
add ebx, edx
cmp ebx, 0x800
jb 0x140037e40
and ecx, dword [0x1400c2628]
mov ebx, dword [rsp + 0x38]
or r13d, ecx
or r14d, ecx
or r15d, ecx
or r12d, ecx
movzx eax, r13b
shr r13d, 8
xor ebx, dword [r8 + rax*8 + 4]
movzx eax, r13b
shr r13d, 8
xor ebp, dword [r8 + rax*8 + 1]
movzx eax, r12b
movzx ecx, r13b
xor ebp, dword [r8 + rax*8 + 4]
shr r12d, 8
shr r13d, 8
movzx eax, r12b
shl r13d, 3
shr r12d, 8
mov eax, dword [r8 + rax*8 + 1]
mov edx, dword [r13 + r8 + 3]
mov r13d, dword [rsp + 0x34]
xor eax, dword [r8 + rcx*8 + 2]
xor r11d, eax
movzx eax, r15b
shr r15d, 8
xor r11d, dword [r8 + rax*8 + 4]
movzx eax, r15b
shr r15d, 8
xor edx, dword [r8 + rax*8 + 1]
movzx eax, r12b
shr r12d, 8
xor edx, dword [r8 + rax*8 + 2]
movzx eax, r14b
shr r14d, 8
xor r13d, edx
shl r12d, 3
xor r13d, dword [r8 + rax*8 + 4]
movzx eax, r14b
shr r14d, 8
mov ecx, r12d
lea r12, [0x1400c1e30]
mov edx, dword [rcx + r12 + 3]
movzx ecx, r14b
shr r14d, 8
xor edx, dword [r12 + rax*8 + 1]
movzx eax, r15b
shr r15d, 8
xor edx, dword [r12 + rax*8 + 2]
shl r14d, 3
shl r15d, 3
xor r11d, dword [r14 + r12 + 3]
mov eax, dword [r15 + r12 + 3]
mov r14d, dword [r10 + 0x10]
xor eax, dword [r12 + rcx*8 + 2]
mov r15, qword [rsp + 0x68]
shr r14d, 1
xor ebp, eax
xor ebx, edx
dec r14d
nop dword [rax]
movzx eax, bl
shr ebx, 8
movzx ecx, r11b
mov r10d, dword [r12 + rax*8 + 3]
movzx eax, bl
shr ebx, 8
mov r9d, dword [r12 + rax*8 + 2]
xor r10d, dword [rsi]
movzx eax, bl
mov r8d, dword [r12 + rax*8 + 1]
xor r9d, dword [rsi + 4]
movzx eax, bpl
xor r8d, dword [rsi + 8]
shr ebp, 8
shr r11d, 8
shr ebx, 8
shl ebx, 3
mov edx, dword [rbx + r12 + 4]
xor edx, dword [r12 + rax*8 + 3]
movzx eax, bpl
shr ebp, 8
xor r10d, dword [r12 + rax*8 + 2]
xor edx, dword [rsi + 0xc]
movzx eax, bpl
xor r9d, dword [r12 + rax*8 + 1]
shr ebp, 8
shl ebp, 3
mov eax, dword [rbp + r12 + 4]
xor eax, dword [r12 + rcx*8 + 3]
movzx ecx, r13b
shr r13d, 8
xor r8d, eax
movzx eax, r11b
shr r11d, 8
xor edx, dword [r12 + rax*8 + 2]
movzx eax, r11b
shr r11d, 8
xor r10d, dword [r12 + rax*8 + 1]
shl r11d, 3
mov eax, dword [r11 + r12 + 4]
xor eax, dword [r12 + rcx*8 + 3]
xor r9d, eax
movzx eax, r13b
shr r13d, 8
xor r8d, dword [r12 + rax*8 + 2]
movzx eax, r13b
shr r13d, 8
xor edx, dword [r12 + rax*8 + 1]
shl r13d, 3
xor r10d, dword [r13 + r12 + 4]
movzx eax, dl
shr edx, 8
mov r13d, dword [r12 + rax*8 + 3]
movzx eax, dl
shr edx, 8
mov r11d, dword [r12 + rax*8 + 2]
xor r13d, dword [rsi + 0x10]
movzx eax, r8b
xor r11d, dword [rsi + 0x14]
mov ecx, edx
shr r8d, 8
shr ecx, 8
shl ecx, 3
mov ebx, dword [rcx + r12 + 4]
xor ebx, dword [r12 + rax*8 + 3]
movzx eax, r8b
shr r8d, 8
xor r13d, dword [r12 + rax*8 + 2]
xor ebx, dword [rsi + 0x1c]
movzx eax, r9b
mov ecx, r8d
shr r9d, 8
shr ecx, 8
shl ecx, 3
mov ebp, dword [rcx + r12 + 4]
xor ebp, dword [r12 + rax*8 + 3]
movzx eax, dl
xor ebp, dword [r12 + rax*8 + 1]
movzx eax, r9b
xor ebp, dword [rsi + 0x18]
xor ebx, dword [r12 + rax*8 + 2]
movzx eax, r10b
shr r10d, 8
shr r9d, 8
mov ecx, r9d
lea rsi, [rsi + 0x20]
shr ecx, 8
shl ecx, 3
mov edx, dword [rcx + r12 + 4]
movzx ecx, r9b
xor edx, dword [r12 + rax*8 + 3]
movzx eax, r8b
xor edx, dword [r12 + rax*8 + 1]
movzx eax, r10b
shr r10d, 8
xor ebp, dword [r12 + rax*8 + 2]
movzx eax, r10b
shr r10d, 8
xor ebx, dword [r12 + rax*8 + 1]
shl r10d, 3
xor r11d, edx
mov eax, dword [r10 + r12 + 4]
xor eax, dword [r12 + rcx*8 + 1]
xor r13d, eax
dec r14d
jne 0x140037f50
movzx eax, bpl
shr ebp, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x57], al
movzx eax, bpl
shr ebp, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x4a], al
movzx eax, bpl
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x4d], al
mov eax, ebp
mov rbp, qword [rsp + 0x80]
shr rax, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x50], al
movzx eax, r11b
shr r11d, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x53], al
movzx eax, r11b
shr r11d, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x56], al
movzx eax, r11b
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x49], al
mov eax, r11d
shr rax, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x4c], al
movzx eax, r13b
shr r13d, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x4f], al
movzx eax, r13b
shr r13d, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x52], al
movzx eax, r13b
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x55], al
mov eax, r13d
mov r13, qword [rsp + 0x70]
shr rax, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x48], al
movzx eax, bl
shr ebx, 8
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x4b], al
mov ecx, dword [rsp + 0x48]
movzx eax, bl
movzx eax, byte [r12 + rax*8 + 1]
xor ecx, dword [rsi]
shr ebx, 8
mov byte [rsp + 0x4e], al
movzx eax, bl
movzx eax, byte [r12 + rax*8 + 1]
mov byte [rsp + 0x51], al
mov eax, ebx
shr rax, 8
movzx eax, byte [r12 + rax*8 + 1]
mov r12, qword [rsp + 0x78]
mov byte [rsp + 0x54], al
test rdi, rdi
je 0x140038219
xor ecx, dword [rdi]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140038225
mov dword [rax], ecx
lea rcx, [rax + 4]
test rdi, rdi
je 0x140038232
add rdi, 4
mov eax, dword [rsi + 4]
xor eax, dword [rsp + 0x4c]
test rdi, rdi
je 0x140038240
xor eax, dword [rdi]
test rcx, rcx
je 0x140038247
mov dword [rcx], eax
add rcx, 4
test rdi, rdi
je 0x140038254
add rdi, 4
mov eax, dword [rsi + 8]
xor eax, dword [rsp + 0x50]
test rdi, rdi
je 0x140038262
xor eax, dword [rdi]
test rcx, rcx
je 0x140038269
mov dword [rcx], eax
add rcx, 4
test rdi, rdi
je 0x140038276
add rdi, 4
mov eax, dword [rsi + 0xc]
xor eax, dword [rsp + 0x54]
test rdi, rdi
je 0x140038284
xor eax, dword [rdi]
test rcx, rcx
je 0x14003828b
mov dword [rcx], eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140047700
add rsp, 0x90
pop r14
pop rdi
pop rsi
ret