Function at 0x14002c84c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
mov r15, qword [rcx + 0x10]
and qword [rbp + 0x58], 0
mov eax, reloc.Mso20Win32Client.dll_Ordinal_255
mov r8d, dword [r15 + 5]
mov r10d, dword [r15 + 9]
inc r15
and r10, rax
lea r11, [0x140000000]
and r8, rax
mov rax, qword [0x140043058]
mov rdi, rcx
mov rcx, r11
add r10, r11
sub rcx, rax
mov rsi, rdx
mov qword [rbp - 0x30], r15
mov r14, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp - 0x28], rcx
jne reloc.Mso20Win32Client.dll_Ordinal_255
xor r11d, r11d
test r8, r8
je reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, dword [rbp + 0x5c]
mov r9d, dword [rbp + 0x58]
mov r13d, reloc.Mso20Win32Client.dll_Ordinal_255
movzx edx, byte [r11 + r10]
inc r11
add edx, reloc.Mso20Win32Client.dll_Ordinal_255
add r9d, edx
add edx, eax
imul ecx, edx, reloc.Mso20Win32Client.dll_Ordinal_255
ror edx, 4
mov eax, edx
rol ecx, 4
xor rcx, rax
imul rax, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp + 0x48], rax
shr rax, 0x20
add eax, dword [rbp + 0x48]
mov ecx, eax
imul rax, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp + 0x48], rax
mov ecx, dword [rbp + 0x48]
shr rax, 0x20
lea edx, [rcx - 0x7fffffff]
sar ecx, 0x1f
lea edx, [rdx + rax*2]
and ecx, r13d
sub edx, ecx
mov eax, edx
sar eax, 0x1f
and eax, r13d
add eax, edx
add r9d, eax
cmp r11, r8
jb reloc.Mso20Win32Client.dll_Ordinal_255
mov dword [rbp + 0x5c], eax
mov dword [rbp + 0x58], r9d
jmp reloc.Mso20Win32Client.dll_Ordinal_255
movsxd rdx, dword [0x14000003c]
lea rax, [r10 + r8]
mov qword [rbp - 0x10], rax
lea rax, [0x1400000b0]
add rdx, rax
mov eax, r10d
sub eax, r11d
mov r9d, eax
mov ebx, eax
lea r15, [rax + r8]
mov r8d, dword [rdx]
and r9, r14
mov rsi, r15
add r8, r11
sub rbx, r9
and rsi, r14
mov r14d, dword [rdx + 4]
sub r15, rsi
add r14, r8
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r15
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, dword [r8]
cmp rax, r9
jae reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, r14
jne reloc.Mso20Win32Client.dll_Ordinal_255
xor r11d, r11d
cmp r8, r14
je reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, dword [r8]
cmp rax, r9
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je reloc.Mso20Win32Client.dll_Ordinal_255
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, reloc.Mso20Win32Client.dll_Ordinal_255
cmp rax, rbx
jae reloc.Mso20Win32Client.dll_Ordinal_255
inc r11
add rdx, 2
cmp r11, rcx
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov ebx, dword [rbp + 0x5c]
mov r12d, dword [rbp + 0x58]
mov r13d, reloc.Mso20Win32Client.dll_Ordinal_255
cmp r8, r14
je reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, dword [r8]
cmp rax, rsi
ja reloc.Mso20Win32Client.dll_Ordinal_255
mov ecx, dword [r8 + 4]
lea rax, [rcx - 8]
shr rax, 1
cmp r11, rax
jne reloc.Mso20Win32Client.dll_Ordinal_255
add r8, rcx
cmp r8, r14
je reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, dword [r8]
cmp rax, rsi
ja reloc.Mso20Win32Client.dll_Ordinal_255
xor r11d, r11d
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, dword [r8]
cmp rax, rsi
jne reloc.Mso20Win32Client.dll_Ordinal_255
movzx eax, word [r8 + r11*2 + 8]
and eax, reloc.Mso20Win32Client.dll_Ordinal_255
cmp rax, r15
jae reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, r11
mov ecx, reloc.Mso20Win32Client.dll_Ordinal_255
inc r11
test word [r8 + rax*2 + 8], cx
je reloc.Mso20Win32Client.dll_Ordinal_255
movzx r9d, word [r8 + rax*2 + 8]
lea rax, [0x140000000]
mov edi, 0
mov esi, r9d
and esi, reloc.Mso20Win32Client.dll_Ordinal_255
add esi, dword [r8]
add rsi, rax
mov r15, rsi
sub r15, r10
je reloc.Mso20Win32Client.dll_Ordinal_255
movzx edx, byte [rdi + r10]
inc rdi
add edx, reloc.Mso20Win32Client.dll_Ordinal_255
add r12d, edx
add edx, ebx
imul ecx, edx, reloc.Mso20Win32Client.dll_Ordinal_255
ror edx, 4
mov eax, edx
rol ecx, 4
xor rcx, rax
imul rax, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp + 0x60], rax
shr rax, 0x20
add eax, dword [rbp + 0x60]
mov ecx, eax
imul rax, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp + 0x60], rax
mov ecx, dword [rbp + 0x60]
shr rax, 0x20
lea edx, [rcx - 0x7fffffff]
sar ecx, 0x1f
and ecx, r13d
lea edx, [rdx + rax*2]
sub edx, ecx
mov ebx, edx
sar ebx, 0x1f
and ebx, r13d
add ebx, edx
add r12d, ebx
cmp rdi, r15
jb reloc.Mso20Win32Client.dll_Ordinal_255
shr r9d, 0xc
cmp r9d, 3
je reloc.Mso20Win32Client.dll_Ordinal_255
sub r9d, 0xa
neg r9d
sbb edx, edx
add edx, 3
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov edx, 2
mov r9, qword [rbp - 0x28]
mov rax, qword [rsi]
neg r9
mov qword [rbp + 0x60], rax
sub edx, 2
je reloc.Mso20Win32Client.dll_Ordinal_255
dec edx
je reloc.Mso20Win32Client.dll_Ordinal_255
or r9, reloc.Mso20Win32Client.dll_Ordinal_255
jmp reloc.Mso20Win32Client.dll_Ordinal_255
add rax, r9
mov r9d, 8
mov qword [rbp + 0x60], rax
jmp reloc.Mso20Win32Client.dll_Ordinal_255
add dword [rbp + 0x60], r9d
mov r9d, 4
xor r10d, r10d
movzx edx, byte [rbp + r10 + 0x60]
inc r10
add edx, reloc.Mso20Win32Client.dll_Ordinal_255
add r12d, edx
add edx, ebx
imul ecx, edx, reloc.Mso20Win32Client.dll_Ordinal_255
ror edx, 4
mov eax, edx
rol ecx, 4
xor rcx, rax
imul rax, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp - 0x38], rax
shr rax, 0x20
add eax, dword [rbp - 0x38]
mov ecx, eax
imul rax, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp - 0x38], rax
shr rax, 0x20
mov ecx, dword [rbp - 0x38]
lea edx, [rcx - 0x7fffffff]
sar ecx, 0x1f
and ecx, r13d
lea edx, [rdx + rax*2]
sub edx, ecx
mov ebx, edx
sar ebx, 0x1f
and ebx, r13d
add ebx, edx
add r12d, ebx
cmp r10, r9
jb reloc.Mso20Win32Client.dll_Ordinal_255
mov r15, qword [rbp - 0x18]
lea r10, [r9 + rsi]
mov rsi, qword [rbp - 0x20]
mov dword [rbp + 0x5c], ebx
mov dword [rbp + 0x58], r12d
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov r9, qword [rbp - 0x10]
mov rdi, qword [rbp + 0x48]
mov r8d, 0
sub r9, r10
je reloc.Mso20Win32Client.dll_Ordinal_255
movzx edx, byte [r8 + r10]
inc r8
add edx, reloc.Mso20Win32Client.dll_Ordinal_255
add r12d, edx
add edx, ebx
imul ecx, edx, reloc.Mso20Win32Client.dll_Ordinal_255
ror edx, 4
mov eax, edx
rol ecx, 4
xor rcx, rax
imul rax, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp + 0x48], rax
shr rax, 0x20
add eax, dword [rbp + 0x48]
mov ecx, eax
imul rax, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp + 0x48], rax
mov ecx, dword [rbp + 0x48]
shr rax, 0x20
lea edx, [rcx - 0x7fffffff]
sar ecx, 0x1f
and ecx, r13d
lea edx, [rdx + rax*2]
sub edx, ecx
mov ebx, edx
sar ebx, 0x1f
and ebx, r13d
add ebx, edx
add r12d, ebx
cmp r8, r9
jb reloc.Mso20Win32Client.dll_Ordinal_255
mov dword [rbp + 0x5c], ebx
mov dword [rbp + 0x58], r12d
mov rsi, qword [rbp + 0x50]
mov r15, qword [rbp - 0x30]
mov r14, reloc.Mso20Win32Client.dll_Ordinal_255
add qword [rdi + 0x10], 0xd
mov eax, dword [r15]
lea rcx, [0x140000000]
and eax, reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [rax + rcx]
cmp qword [rbp + 0x58], rax
je reloc.Mso20Win32Client.dll_Ordinal_255
call fcn.1400264d8
lea r9, [rdi + 0x18]
mov r11d, reloc.Mso20Win32Client.dll_Ordinal_255
and r9, reloc.Mso20Win32Client.dll_Ordinal_255
mov rbx, rax
and rbx, r14
lea r10, [r9 + 0xfff]
and r10, r14
lea r14, [fcn.140036e40]
xor r8d, r8d
mov qword [rdi + 0x10], r14
mov rcx, qword [0x140049ce8]
imul rcx, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
shl r8, 0x10
shr r11, 0x10
add rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or r8, rdx
test r11, r11
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [0x140049ce8], rcx
movabs rax, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rsi + 0x98], rbx
mul r8
shr rdx, 0xf
imul rax, rdx, reloc.Mso20Win32Client.dll_Ordinal_255
sub r8, rax
inc r8
mov qword [rsi + 0xb0], r8
mov qword [rbp + 0x48], r11
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [rbp + 0x48]
mov qword [r9], rax
add r9, 8
cmp r9, r10
jb reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rdi + 0x10], r14
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret