Function at 0x140004400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140019010]
xor rax, rsp
mov qword [rbp + 0x47], rax
cmp qword [0x14001a468], 0
je 0x14000443b
xor al, al
jmp 0x140004a79
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rax, [0x14001a378]
mov qword [rsp + 0x20], rax
lea r9, [0x140013128]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140013118]
call qword [sym.imp.ole32.dll_CoCreateInstance]
movsxd r10, dword [0x14001a3e0]
lea rsi, [0x14001a3f0]
mov rcx, qword [rsi + r10*8]
inc r10d
mov rdx, rcx
lea r9, [0x1400191b8]
sub r9, rcx
mov r8d, 0xa
nop dword [rax + rax]
movzx eax, byte [r9 + rdx]
xor al, 0xf7
mov byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x1400044a0
mov byte [rcx + 0xa], r8b
xor edi, edi
cmp r10d, 0xf
cmovge r10d, edi
mov dword [0x14001a3e0], r10d
call qword [0x14001a3b0]
mov qword [0x14001a3c8], rax
movsxd r8, dword [0x14001a3e0]
mov r9, qword [rsi + r8*8]
inc r8d
mov rcx, r9
lea r10, [0x1400191a0]
sub r10, r9
lea edx, [rdi + 0x16]
movzx eax, byte [r10 + rcx]
xor al, 0xf7
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400044f3
mov byte [r9 + 0x16], dil
cmp r8d, 0xf
cmovge r8d, edi
mov dword [0x14001a3e0], r8d
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x37], rdi
mov qword [rbp + 0x3f], 0xf
mov byte [rbp + 0x27], dil
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r9 + r8], dil
jne 0x140004534
mov rdx, r9
lea rcx, [rbp + 0x27]
call fcn.140006d20
nop
movsxd r8, dword [0x14001a3e0]
mov r9, qword [rsi + r8*8]
inc r8d
mov rcx, r9
lea r10, [0x140019190]
sub r10, r9
mov edx, 0xd
nop word [rax + rax]
movzx eax, byte [r10 + rcx]
xor al, 0xf7
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140004570
mov byte [r9 + 0xd], dl
cmp r8d, 0xf
cmovge r8d, edi
mov dword [0x14001a3e0], r8d
mov qword [rbp + 7], rdi
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], dl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r9 + r8], 0
jne 0x1400045b0
mov rdx, r9
lea rcx, [rbp + 7]
call fcn.140006d20
nop
movsxd r8, dword [0x14001a3e0]
mov r9, qword [rsi + r8*8]
inc r8d
mov rcx, r9
lea r10, [0x140019178]
sub r10, r9
mov edx, 0x11
nop word [rax + rax]
movzx eax, byte [rcx + r10]
xor al, 0xf7
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400045f0
mov byte [r9 + 0x11], dl
cmp r8d, 0xf
cmovge r8d, edi
mov dword [0x14001a3e0], r8d
mov qword [rbp - 0x19], rdi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], dl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r9 + r8], 0
jne 0x140004630
mov rdx, r9
lea rcx, [rbp - 0x19]
call fcn.140006d20
nop
lea r8, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae r8, qword [rbp + 0x27]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 7
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.1400069e0
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
lea r8, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae r8, qword [rbp + 0x27]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rbp - 0x39]
lea rcx, [0x140019540]
call fcn.140006570
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140004717
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004712
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004712
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400101c8
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 7
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.1400069e0
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rbp - 0x39]
lea rcx, [0x140019560]
call fcn.140006570
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x1400047e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400047e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400101c8
lea r8, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae r8, qword [rbp - 0x19]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 7
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.1400069e0
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea r8, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae r8, qword [rbp - 0x19]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rbp - 0x39]
lea rcx, [0x140019580]
call fcn.140006570
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x1400048b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400101c8
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], di
movsxd rbx, dword [0x14001a3e0]
mov rdx, qword [rsi + rbx*8]
inc ebx
mov rcx, rdx
lea r9, [0x140019158]
sub r9, rdx
mov r8d, 0x19
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
xor al, 0xf7
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400048f0
mov byte [rdx + 0x19], r8b
cmp ebx, 0xf
cmovge ebx, edi
mov rcx, qword [0x14001a3c8]
call fcn.1400016a0
mov qword [0x14001a380], rax
movsxd rax, ebx
mov rdx, qword [rsi + rax*8]
inc ebx
mov rcx, rdx
lea r9, [0x140019148]
sub r9, rdx
mov r8d, 0xf
nop dword [rax]
movzx eax, byte [r9 + rcx]
xor al, 0xf7
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140004940
mov byte [rdx + 0xf], r8b
cmp ebx, 0xf
cmovge ebx, edi
mov dword [0x14001a3e0], ebx
mov rcx, qword [0x14001a3d0]
call fcn.1400016a0
mov qword [0x14001a3a8], rax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
lea r9, [0x140004260]
xor r8d, r8d
mov edx, 0x800e
lea ecx, [rdx - 9]
call rax
mov qword [0x14001a468], rax
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1400049db
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400101c8
mov qword [rbp - 9], rdi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140004a29
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400101c8
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x140004a77
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400101c8
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000fe60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret