Function at 0x14001df34
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [0x1400398a8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov qword [rsp + 0x70], rdx
lea r15, [rcx + 0x18]
lea rdx, [0x140000000]
mov rax, qword [r15]
mov qword [rbp - 0x80], rcx
mov ecx, reloc.Mso20Win32Client.dll_Ordinal_255
mov esi, dword [rax + 5]
inc rax
mov qword [rbp - 0x70], r15
mov qword [rsp + 0x68], rax
and rsi, rcx
add rsi, rdx
mov edx, dword [rax]
mov eax, dword [0x140042fbc]
shr rdx, 1
lea r14, [rax - 1]
mov qword [rbp - 0x60], rsi
and rdx, rcx
mov ecx, eax
add r14, rdx
xor edx, edx
mov rax, r14
div rcx
mov eax, dword [0x140042fbc]
sub r14, rdx
mov r10d, dword [0x140042fc0]
mov eax, dword [0x140042fbc]
mov eax, dword [0x140042fc0]
test eax, eax
je reloc.Mso20Win32Client.dll_Ordinal_255
mov edi, dword [0x140042fc0]
xor r8d, r8d
xor eax, eax
dec edi
inc rdi
mov r9, rdi
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, qword [0x140049ce8]
imul rcx, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
shl rax, 0x10
shr r9, 0x10
add rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [0x140049ce8], rcx
xor edx, edx
div rdi
test r10, r10
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, qword [0x140049d38]
inc r8
mov edi, reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, reloc.Mso20Win32Client.dll_Ordinal_255
lock cmpxchg dword [rcx + rdx*4], edi
je reloc.Mso20Win32Client.dll_Ordinal_255
mov ecx, dword [0x140042fc0]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb reloc.Mso20Win32Client.dll_Ordinal_255
xor ebx, ebx
test rbx, rbx
jne reloc.Mso20Win32Client.dll_Ordinal_255
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
mov dword [rsp + 0x34], eax
lea rax, [r14 + 0xffff]
shr rax, 0x10
mov qword [rsp + 0x58], rax
mov rdi, qword [0x140049ce0]
inc r13
sub rdi, rax
xor eax, eax
inc rdi
mov r8, rdi
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, qword [0x140049ce8]
imul rcx, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
shl rax, 0x10
shr r8, 0x10
add rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r8, r8
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [0x140049ce8], rcx
xor edx, edx
mov r9d, 0x40
mov r8d, reloc.Mso20Win32Client.dll_Ordinal_255
div rdi
mov rcx, rdx
mov rdx, r14
shl rcx, 0x10
add rcx, qword [0x140049cd0]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne reloc.Mso20Win32Client.dll_Ordinal_255
cmp r13, 0x11
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [0x140049cd8]
mov r12, qword [0x140049cd0]
lea rdi, [r12 + r14]
mov qword [rsp + 0x50], rax
cmp rdi, rax
ja reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, reloc.Mso20Win32Client.dll_Ordinal_255
sub rax, r14
mov qword [rsp + 0x48], rax
mov r9d, 0x40
mov r8d, reloc.Mso20Win32Client.dll_Ordinal_255
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [rsp + 0x48]
add rax, rdi
cmp rax, r12
jbe reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, reloc.Mso20Win32Client.dll_Ordinal_255
add rdi, rax
add r12, rax
cmp rdi, qword [rsp + 0x50]
jbe reloc.Mso20Win32Client.dll_Ordinal_255
xor ebx, ebx
test rbx, rbx
je reloc.Mso20Win32Client.dll_Ordinal_255
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rbx
lea r9, [0x1400264e4]
or rcx, 3
mov r8d, r14d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_RtlInstallFunctionTableCallback]
movzx eax, al
test eax, eax
jne reloc.Mso20Win32Client.dll_Ordinal_255
xor edx, edx
mov r8d, reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x58]
cmp r13, 0x11
jb reloc.Mso20Win32Client.dll_Ordinal_255
xor ebx, ebx
cmp qword [0x140049380], rbx
ja reloc.Mso20Win32Client.dll_Ordinal_255
test bl, 3
je reloc.Mso20Win32Client.dll_Ordinal_255
test rbx, rbx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
or rcx, 3
call qword [sym.imp.KERNEL32.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rdi, rbx
xor eax, eax
mov rcx, r14
rep stosb byte [rdi], al
add qword [r15], 9
mov r14, qword [rsp + 0x68]
mov r8d, dword [0x140042fbc]
mov r14d, dword [r14]
xor eax, eax
shr r14, 1
and r14d, reloc.Mso20Win32Client.dll_Ordinal_255
sub r8, r14
mov qword [rbp - 0x68], r14
inc r8
mov rdi, r8
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, qword [0x140049ce8]
imul rcx, rcx, reloc.Mso20Win32Client.dll_Ordinal_255
shl rax, 0x10
shr rdi, 0x10
add rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test rdi, rdi
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [0x140049ce8], rcx
xor edx, edx
xor dil, dil
mov qword [rsp + 0x58], r14
div r8
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x60], rsi
add rbx, rdx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x78], rbx
test r14, r14
je reloc.Mso20Win32Client.dll_Ordinal_255
movups xmm0, xmmword [r14 + rsi]
and qword [rbp + 0x18], 0
and qword [rbp + 0x20], 0
mov r12, rbx
mov r11d, 0x40
movq r8, xmm0
movups xmmword [rbp - 0x58], xmm0
psrldq xmm0, 8
mov rdx, r8
mov dword [rbp + 4], r8d
mov dword [rbp + 0x2c], r8d
movq rax, xmm0
movd dword [rbp + 0xc], xmm0
movd dword [rbp + 0x34], xmm0
shr rax, 0x20
shr rdx, 0x20
mov dword [rbp + 0x10], eax
mov dword [rbp + 0x38], eax
mov eax, dword [0x140043080]
mov dword [rbp], eax
mov eax, dword [0x140043084]
mov dword [rbp + 8], edx
mov dword [rbp + 0x14], eax
mov eax, dword [0x140043088]
mov dword [rbp + 0x30], edx
mov dword [rbp + 0x28], eax
mov eax, dword [0x14004308c]
mov dword [rbp + 0x3c], eax
lea rax, [rbp + 0x40]
sub r12, rax
mov rax, rsi
sub rax, rbx
mov qword [rbp - 0x78], rax
lea rdx, [rbp]
lea rcx, [rbp - 0x40]
mov r8, r11
mov qword [rsp + 0x50], r12
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp - 0x2c]
mov ecx, dword [rbp - 4]
mov edx, dword [rbp - 8]
mov r8d, dword [rbp - 0xc]
mov r9d, dword [rbp - 0x10]
mov r10d, dword [rbp - 0x14]
mov r11d, dword [rbp - 0x18]
mov r14d, dword [rbp - 0x1c]
mov r15d, dword [rbp - 0x20]
mov ebx, dword [rbp - 0x24]
mov esi, dword [rbp - 0x28]
mov r12d, dword [rbp - 0x30]
mov edi, dword [rbp - 0x34]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x38]
mov r13d, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x3c]
mov qword [rsp + 0x68], 3
mov dword [rsp + 0x3c], eax
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x34], eax
add eax, r9d
rol eax, 7
xor r12d, eax
mov eax, dword [rsp + 0x34]
add eax, r12d
rol eax, 9
xor r15d, eax
lea eax, [r15 + r12]
rol eax, 0xd
xor r9d, eax
mov dword [rsp + 0x40], r9d
lea eax, [r15 + r9]
mov r9d, dword [rsp + 0x34]
ror eax, 0xe
xor r9d, eax
mov eax, dword [rsp + 0x3c]
add eax, r13d
mov dword [rsp + 0x34], r9d
rol eax, 7
xor r14d, eax
lea eax, [r14 + r13]
rol eax, 9
xor r8d, eax
lea eax, [r8 + r14]
rol eax, 0xd
xor dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
add eax, r8d
ror eax, 0xe
xor r13d, eax
lea eax, [r11 + rsi]
rol eax, 7
xor edx, eax
lea eax, [rdx + r11]
rol eax, 9
xor dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
add eax, edx
rol eax, 0xd
xor esi, eax
mov eax, dword [rsp + 0x38]
add eax, esi
ror eax, 0xe
xor r11d, eax
lea eax, [r10 + rcx]
rol eax, 7
xor edi, eax
lea eax, [rdi + rcx]
rol eax, 9
xor ebx, eax
lea eax, [rbx + rdi]
rol eax, 0xd
xor r10d, eax
lea eax, [rbx + r10]
ror eax, 0xe
xor ecx, eax
lea eax, [rdi + r9]
rol eax, 7
xor dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rbp - 0x3c], eax
add eax, r9d
rol eax, 9
xor dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rbp - 0x38], eax
add eax, dword [rsp + 0x3c]
rol eax, 0xd
xor edi, eax
mov eax, dword [rsp + 0x38]
add eax, edi
ror eax, 0xe
xor r9d, eax
lea eax, [r12 + r13]
rol eax, 7
mov dword [rsp + 0x34], r9d
mov dword [rbp - 0x40], r9d
xor esi, eax
lea eax, [rsi + r13]
rol eax, 9
xor ebx, eax
mov r9d, dword [rsp + 0x40]
lea eax, [rbx + rsi]
rol eax, 0xd
xor r12d, eax
lea eax, [rbx + r12]
ror eax, 0xe
xor r13d, eax
lea eax, [r11 + r14]
rol eax, 7
xor r10d, eax
lea eax, [r10 + r11]
rol eax, 9
xor r15d, eax
lea eax, [r15 + r10]
rol eax, 0xd
xor r14d, eax
lea eax, [r15 + r14]
ror eax, 0xe
xor r11d, eax
lea eax, [rcx + rdx]
rol eax, 7
xor r9d, eax
mov dword [rbp - 0x10], r9d
lea eax, [rcx + r9]
rol eax, 9
xor r8d, eax
lea eax, [r8 + r9]
rol eax, 0xd
xor edx, eax
lea eax, [rdx + r8]
ror eax, 0xe
xor ecx, eax
dec qword [rsp + 0x68]
mov eax, dword [rsp + 0x34]
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov dword [rbp - 4], ecx
mov dword [rbp - 0x24], ebx
mov rbx, qword [rsp + 0x48]
mov dword [rbp - 0x28], esi
mov rsi, qword [rbp - 0x60]
mov dword [rbp - 0x2c], r13d
mov r13, qword [rsp + 0x58]
mov dword [rbp - 0x30], r12d
mov r12, qword [rsp + 0x50]
mov dword [rbp - 0x34], edi
mov dil, byte [rsp + 0x30]
xor ecx, ecx
mov dword [rbp - 8], edx
mov dword [rbp - 0xc], r8d
mov dword [rbp - 0x14], r10d
mov dword [rbp - 0x18], r11d
mov dword [rbp - 0x1c], r14d
mov dword [rbp - 0x20], r15d
mov eax, dword [rbp + rcx]
add rcx, 4
add dword [rbp + rcx - 0x44], eax
cmp rcx, 0x40
jl reloc.Mso20Win32Client.dll_Ordinal_255
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x40]
mov r8d, 0x40
call sub.VCRUNTIME140.dll_memcpy
inc dword [rbp + 0x20]
mov r11d, 0x40
cmp r13, r11
jbe reloc.Mso20Win32Client.dll_Ordinal_255
mov r15, qword [rbp - 0x78]
lea rdx, [rbp + 0x40]
mov r8d, r11d
lea rax, [r15 + r12]
mov cl, byte [rax + rdx]
xor cl, byte [rdx]
mov byte [r12 + rdx], cl
inc rdx
xor dil, cl
dec r8
jne reloc.Mso20Win32Client.dll_Ordinal_255
add qword [rsp + 0x78], r11
sub r13, r11
add r12, r11
add qword [rsp + 0x60], r11
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x58], r13
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov ebx, dword [0x140042fbc]
mov rax, qword [0x140049d40]
imul rbx, rdx
add rbx, rax
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov r14, qword [rbp - 0x68]
mov r15, qword [rbp - 0x70]
xor edx, edx
test r13, r13
je reloc.Mso20Win32Client.dll_Ordinal_255
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x78]
xor ecx, ecx
mov al, byte [rbp + rcx + 0x40]
inc edx
xor al, byte [rcx + r8]
mov byte [rcx + r9], al
mov ecx, edx
xor dil, al
cmp rcx, r13
jb reloc.Mso20Win32Client.dll_Ordinal_255
cmp dil, byte [r14 + rsi + 0x10]
je reloc.Mso20Win32Client.dll_Ordinal_255
call fcn.1400264d8
mov r11, qword [rbp - 0x80]
and r15, reloc.Mso20Win32Client.dll_Ordinal_255
mov r10, rax
mov rax, reloc.Mso20Win32Client.dll_Ordinal_255
lea r8, [r15 + 0xfff]
and r10, rax
and r8, rax
lea rbx, [fcn.140036e40]
mov qword [r11 + 0x10], rbx
mov rax, qword [0x140049ce8]
xor edi, edi
mov r9d, reloc.Mso20Win32Client.dll_Ordinal_255
imul rax, rax, reloc.Mso20Win32Client.dll_Ordinal_255
shl rdi, 0x10
shr r9, 0x10
add rax, reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rax
shr rcx, 0x10
movzx edx, cx
or rdi, rdx
test r9, r9
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [0x140049ce8], rax
movabs rax, reloc.Mso20Win32Client.dll_Ordinal_255
mul rdi
shr rdx, 0xf
imul rax, rdx, reloc.Mso20Win32Client.dll_Ordinal_255
sub rdi, rax
mov rax, qword [rsp + 0x70]
inc rdi
mov qword [rax + 0x98], r10
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x70], r9
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [rsp + 0x70]
mov qword [r15], rax
add r15, 8
cmp r15, r8
jb reloc.Mso20Win32Client.dll_Ordinal_255
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [0x140043058]
lea rcx, [0x140000000]
mov r11, rsi
mov r15, rcx
sub r11, rbx
sub r15, rax
jne reloc.Mso20Win32Client.dll_Ordinal_255
test r11, r11
je reloc.Mso20Win32Client.dll_Ordinal_255
mov r10, rbx
sub r10, rsi
sub esi, ecx
lea r12d, [rsi + r14]
mov r14, qword [0x140049d50]
test r14, r14
je reloc.Mso20Win32Client.dll_Ordinal_255
mov r13d, dword [r14]
xor edi, edi
lea r8d, [r13 - 1]
test r8d, r8d
js reloc.Mso20Win32Client.dll_Ordinal_255
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rcx, eax
mov edx, dword [r14 + rcx*4 + 4]
and edx, reloc.Mso20Win32Client.dll_Ordinal_255
cmp esi, edx
jae reloc.Mso20Win32Client.dll_Ordinal_255
lea r8d, [rax - 1]
jmp reloc.Mso20Win32Client.dll_Ordinal_255
jbe reloc.Mso20Win32Client.dll_Ordinal_255
lea edi, [rax + 1]
cmp r8d, edi
jge reloc.Mso20Win32Client.dll_Ordinal_255
movsxd r9, edi
cmp r9, r13
jae reloc.Mso20Win32Client.dll_Ordinal_255
lea rsi, [r14 + 4]
mov r13d, reloc.Mso20Win32Client.dll_Ordinal_255
lea rbx, [0x140000000]
lea rsi, [rsi + r9*4]
mov ecx, dword [rsi]
mov eax, ecx
and eax, r13d
cmp eax, r12d
jae reloc.Mso20Win32Client.dll_Ordinal_255
mov edx, ecx
mov edi, ecx
sar ecx, 0x1d
sar edx, 0x1b
and rdi, r13
and ecx, 7
and edx, 3
add rdi, rbx
xor r8d, r8d
dec edx
je reloc.Mso20Win32Client.dll_Ordinal_255
dec edx
je reloc.Mso20Win32Client.dll_Ordinal_255
dec edx
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov r8, r15
jmp reloc.Mso20Win32Client.dll_Ordinal_255
movsxd r9, eax
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov r8, r11
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov r8, r15
sub r8, r11
sub ecx, 2
je reloc.Mso20Win32Client.dll_Ordinal_255
dec ecx
jne reloc.Mso20Win32Client.dll_Ordinal_255
add qword [rdi + r10], r8
jmp reloc.Mso20Win32Client.dll_Ordinal_255
add dword [rdi + r10], r8d
mov eax, dword [r14]
inc r9
add rsi, 4
cmp r9, rax
jb reloc.Mso20Win32Client.dll_Ordinal_255
mov rbx, qword [rsp + 0x48]
mov eax, dword [0x140042fbc]
mov r11, qword [rbp - 0x80]
mov qword [r11 + 0x10], rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140003dd0
mov rbx, qword [rsp + 0x1e0]
add rsp, reloc.Mso20Win32Client.dll_Ordinal_255
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret