Function at 0x14000420c
Capabilities:
Encode data using xor

Disassembly:
cmp qword [r13 + 0x40], 0
je 0x14000422d
mov rcx, r14
mov edx, 8
call fcn.1400036e5
mov r10, qword [r13 + 0x40]
xor r9d, r9d
movzx r11d, word [r10 + r9*2]
test r11d, r11d
je 0x140004091
mov word [r14 + r9*2], r11w
inc r9
cmp r9, 4
jb 0x140004079
mov rcx, r14
call fcn.1400026a5
test eax, eax
je 0x140004183
jbe 0x140004183
cmp eax, 8
jb 0x14000500e
test r12d, r12d
je 0x140004101
test edi, edi
jne 0x14000500e
cmp eax, ebp
jb 0x14000500e
mov r10d, eax
xor r9d, r9d
sub r10d, esi
and r10d, 7
neg r10d
add r10d, eax
mov r11d, esi
test esi, esi
je 0x140004113
movzx ecx, word [r14 + r9*2]
cmp ecx, 0x41
jl 0x1400040f2
cmp ecx, 0x5a
lea edx, [rcx + 0x20]
cmovle ecx, edx
mov word [r14 + r9*2], cx
inc r9
cmp r9, r11
jb 0x1400040df
jmp 0x140004113
mov r10d, eax
and r10d, 7
neg r10d
mov r11, qword [rsp + 0x58]
add r10d, eax
movsxd r10, r10d
pcmpeqd xmm4, xmm4
movdqu xmm1, xmmword [r14 + r11*2]
movdqa xmm0, xmm15
movdqa xmm5, xmm1
psubw xmm5, xmm12
pcmpgtw xmm0, xmm5
pcmpgtw xmm5, xmm14
por xmm0, xmm5
pxor xmm0, xmm4
pand xmm0, xmm13
paddw xmm1, xmm0
movdqu xmmword [r14 + r11*2], xmm1
add r11, 8
cmp r11, r10
jb 0x14000411a
movsxd rax, eax
cmp r10, rax
jae 0x140004183
movzx r11d, word [r14 + r10*2]
cmp r11d, 0x41
jl 0x140004176
cmp r11d, 0x5a
lea r9d, [r11 + 0x20]
cmovle r11d, r9d
mov word [r14 + r10*2], r11w
inc r10
cmp r10, rax
jb 0x14000415f
mov rcx, r14
call fcn.1400026a5
mov r11d, eax
xor r9d, r9d
test r11d, r11d
jbe 0x1400041ed
mov ecx, r11d
mov eax, 1
mov edx, dword [r15 + 0xf4]
xor r10d, r10d
shr ecx, 1
je 0x1400041d4
mov eax, ecx
imul r9d, edx
movzx ecx, word [r14 + r10*4]
add r9d, ecx
imul r9d, edx
movzx r8d, word [r14 + r10*4 + 2]
inc r10
add r9d, r8d
cmp r10, rax
jb 0x1400041ae
lea eax, [r10 + r10 + 1]
lea r10d, [rax - 1]
cmp r10d, r11d
jae 0x1400041ed
imul edx, r9d
movsxd rax, eax
movzx r9d, word [r14 + rax*2 - 2]
add r9d, edx
cmp r9d, dword [r15 + 0x54]
jne 0x1400041f9
mov byte [rbx + 1], 1
jmp 0x14000422d
cmp r9d, dword [r15 + 0x24]
jne 0x140004205
mov byte [rbx + 5], 1
jmp 0x14000422d
cmp r9d, dword [r15 + 0xa8]
jne 0x140004214
mov byte [rbx + 6], 1
jmp 0x14000422d
cmp r9d, dword [r15 + 0x94]
jne 0x140004223
mov byte [rbx + 7], 1
jmp 0x14000422d
cmp r9d, dword [r15 + 0x14]
jne 0x14000422d
mov byte [rbx + 8], 1
mov r9d, dword [r13]
add r13, r9
cmp dword [r13], 0
jne 0x14000405a
movups xmm12, xmmword [rsp + 0x90]
movups xmm13, xmmword [rsp + 0xa0]
movups xmm14, xmmword [rsp + 0x70]
movups xmm15, xmmword [rsp + 0x80]
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
movabs rax, 0xff000000ff00
test qword [rbx], rax
je 0x1400042b9
xor bpl, bpl
mov edx, 8
lea rcx, [rsp + 0x170]
mov rsi, qword [r13]
call fcn.1400036e5
xor ecx, ecx
lea rdx, [rsp + 0x170]
mov dword [rdx], 0xff1eeed0
mov dword [rdx + 4], 0xffffffff
call rsi
inc bpl
cmp bpl, 0x24
cmp ch, 0x24
jl 0x140004281
xor ecx, ecx
call qword [r13 + 0x18]
mov rbp, rax
movzx eax, word [rbx + 6]
test eax, eax
je 0x140004fa7
mov rcx, r14
mov r8, r15
mov edx, dword [r15 + 0x28]
mov qword [rsp + 0x60], r13
call fcn.140002a85
mov qword [rsp + 0x48], rax
mov rcx, r14
mov r8, r15
mov edx, dword [r15 + 0xac]
call fcn.140002a85
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov r8, r15
mov edx, dword [r15 + 0xd4]
call fcn.140002a85
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov rax, qword [r13 + 0xd8]
mov edx, dword [rax + 0x70]
mov ecx, dword [rax + 0x2c]
call qword [r13 + 0x80]
mov rbp, rax
xor ecx, ecx
mov rdx, rbp
mov r8d, 0x104
call qword [r13 + 0x30]
mov rax, rsp
mov rcx, rbp
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
mov dword [rax + 0x20], 3
mov dword [rax + 0x28], 0x80
mov qword [rax + 0x30], 0
call qword [r13 + 0x70]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x1400043e2
mov rcx, r12
xor edx, edx
call qword [r13 + 0xa0]
mov esi, eax
test esi, esi
je 0x1400043db
mov rax, qword [r13 + 0xd8]
mov rdx, rsi
mov ecx, dword [rax + 0x2c]
call qword [r13 + 0x80]
mov rbp, rax
mov rax, rsp
mov rcx, r12
mov dword [rsp + 0x138], 0
mov rdx, rbp
mov r8d, esi
lea r9, [rsp + 0x138]
mov qword [rax + 0x20], 0
call qword [r13 + 0xa8]
test eax, eax
je 0x1400043db
mov rcx, r12
mov rbx, rbp
call qword [r13 + 0x38]
jmp 0x1400043e2
mov rcx, r12
call qword [r13 + 0x38]
mov rcx, rdi
mov r8, r15
mov edx, dword [r15 + 0xf8]
call fcn.140002a85
mov r14, rax
movsxd r12, dword [r15 + 0x44]
xor eax, eax
mov r11d, dword [r15 + 0x104]
xor r11d, dword [r15 + 0x5c]
mov ebp, dword [r15 + 0x48]
mov r10d, dword [r15 + 0xa4]
mov edi, dword [rbx + r12]
mov esi, dword [rbx + r12 + 4]
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x130], rax
mov dword [rsp + 0xc8], ebp
mov dword [rsp + 0xc0], r10d
cmp edi, r11d
jne 0x1400044d5
mov r8d, 4
lea rdx, [r15 + 0x48]
lea rcx, [rsp + 0x168]
call fcn.1400029d5
mov byte [rsp + 0x16c], 0xd
lea rbp, [rbx + r12 + 8]
mov byte [rsp + 0x16d], 0xa
xor ebx, ebx
mov rax, rbx
mov r10, rbx
lea rdi, [rbp + rax]
mov r11b, byte [rdi + r10 + 1]
mov r12b, byte [rsp + r10 + 0x168]
add byte [rax], al
cmp r11b, r12b
je 0x140004499
cmp r12b, 0x3f
jne 0x140005016
inc r10d
cmp r10d, 6
jb 0x14000447d
lea rbp, [rbp + rax + 1]
test rbp, rbp
je 0x140004928
mov rax, rsp
mov rcx, rbp
mov edx, esi
lea r8, [rsp + 0x130]
mov r9, r13
mov qword [rax + 0x20], r15
call fcn.1400026e5
test al, al
je 0x140004472
jmp 0x140004928
mov rax, qword [r13 + 0xd8]
test edi, edi
jne 0x1400044e5
mov edx, dword [rax + 0x70]
jmp 0x1400044e7
mov edx, edi
mov ecx, dword [rax + 0x2c]
call qword [r13 + 0x80]
mov rbp, rax
mov rcx, rbp
lea rdx, [rbx + r12 + 8]
mov r8d, edi
call fcn.1400029d5
test edi, edi
jbe 0x1400045be
lea eax, [rdi + 3]
sar eax, 1
shr eax, 0x1e
lea ebx, [rax + rdi + 3]
sar ebx, 2
movsxd rax, ebx
cmp rax, 4
jl 0x14000529b
mov r12, rbp
and r12, 0xf
test r12d, r12d
je 0x14000454c
test r12d, 3
jne 0x14000529b
neg r12d
add r12d, 0x10
shr r12d, 2
mov r11d, r12d
lea rdi, [r11 + 4]
cmp rax, rdi
jl 0x14000529b
mov edi, ebx
xor r10d, r10d
sub edi, r12d
and edi, 3
sub ebx, edi
mov rdi, rbp
movsxd rbx, ebx
test r12d, r12d
jbe 0x140004582
inc r10
xor dword [rdi], esi
add rdi, 4
cmp r10, r11
jb 0x140004574
movd xmm0, esi
pshufd xmm0, xmm0, 0
movdqu xmm1, xmmword [rbp + r11*4]
pxor xmm1, xmm0
movdqu xmmword [rbp + r11*4], xmm1
add r11, 4
cmp r11, rbx
jb 0x14000458b
lea rdi, [rbp + rbx*4]
cmp rbx, rax
jae 0x1400045be
inc rbx
xor dword [rdi], esi
add rdi, 4
cmp rbx, rax
jb 0x1400045b0
mov rax, qword [r13 + 0xd8]
mov edx, dword [rax + 0x70]
mov ecx, dword [rax + 0x2c]
call qword [r13 + 0x80]
mov qword [rsp + 0xb8], rax
xor eax, eax
cmp byte [rbp], 0
je 0x1400045fb
mov rbx, qword [rsp + 0xb8]
movsx edx, byte [rax + rbp]
mov word [rbx + rax*2], dx
inc rax
cmp byte [rax + rbp], 0
jne 0x1400045ea
mov rax, qword [r13 + 0xd8]
mov edx, dword [rax + 0x70]
mov ecx, dword [rax + 0x2c]
call qword [r13 + 0x80]
mov rbx, rax
mov ecx, 0x104
mov rdx, rbx
call qword [r13 + 0x10]
mov rax, qword [r13 + 0xd8]
mov edx, 0x2c
mov ecx, dword [rax + 0x2c]
call qword [r13 + 0x80]
mov rbp, rax
mov eax, 0x25
mov esi, 0x78
mov word [rsp + 0x128], ax
xor edi, edi
mov word [rsp + 0x12a], si
lea rcx, [rsp + 0xd8]
mov word [rcx + 0x54], di
mov edx, 8
mov rsi, qword [r13 + 0x28]
call fcn.1400036e5
lea rcx, [rsp + 0xd8]
call rsi
mov rcx, rbp
lea rdx, [rsp + 0x128]
mov r8d, dword [rdx - 0x50]
call qword [r13 + 0x90]
xor eax, eax
movzx esi, word [rbx]
test esi, esi
je 0x1400046a0
inc eax
movzx esi, word [rbx + rax*2]
test esi, esi
jne 0x140004696
xor edi, edi
lea esi, [rax - 1]
movzx r10d, word [rbx + rsi*2]
cmp r10d, 0x5c
je 0x1400046c0
mov eax, eax
mov esi, 0x5c
mov edi, 1
mov word [rbx + rax*2], si
test rbp, rbp
je 0x14000528e
add eax, edi
xor esi, esi
movzx edi, word [rbp]
test edi, edi
je 0x1400046f2
movzx r10d, word [rbp + rsi*2]
mov edi, esi
inc rsi
add edi, eax
mov word [rbx + rdi*2], r10w
movzx r11d, word [rbp + rsi*2]
test r11d, r11d
jne 0x1400046d5
add eax, esi
xor ebp, ebp
mov word [rbx + rax*2], bp
mov rcx, qword [rsp + 0xb8]
call fcn.1400026a5
mov edx, eax
xor ebp, ebp
test edx, edx
jbe 0x140004769
mov ebx, edx
mov edi, 1
mov eax, dword [r15 + 0xf4]
xor esi, esi
shr ebx, 1
je 0x14000474d
mov r11, qword [rsp + 0xb8]
imul ebp, eax
movzx edi, word [r11 + rsi*4]
add ebp, edi
imul ebp, eax
movzx r10d, word [r11 + rsi*4 + 2]
inc rsi
add ebp, r10d
cmp rsi, rbx
jb 0x14000472b
lea edi, [rsi + rsi + 1]
lea ebx, [rdi - 1]
cmp ebx, edx
jae 0x140004769
imul eax, ebp
movsxd rdi, edi
mov rdx, qword [rsp + 0xb8]
movzx ebp, word [rdx + rdi*2 - 2]
add ebp, eax
mov rax, qword [r13 + 0xd8]
mov edx, dword [rax + 0x70]
mov ecx, dword [rax + 0x2c]
call qword [r13 + 0x80]
mov rdi, rax
mov rbx, rsp
mov rcx, r13
mov r8, rdi
lea rdx, [rsp + 0x48]
mov r9d, ebp
lea rax, [rsp + 0xe4]
mov dword [rax], 0
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], r15
call fcn.140003085
mov rax, rsp
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
mov dword [rax + 0x20], 3
mov dword [rax + 0x28], 0x80
mov qword [rax + 0x30], 0
call qword [r13 + 0x70]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x140004e77
mov rcx, r12
xor edx, edx
call qword [r13 + 0xa0]
mov ebx, eax
test ebx, ebx
je 0x140004e70
mov rsi, qword [r13 + 0xd8]
mov rdx, rbx
mov ecx, dword [rsi + 0x2c]
call qword [r13 + 0x80]
mov rsi, rax
mov r10, rsp
mov rcx, r12
mov dword [rsp + 0xe0], 0
mov rdx, rsi
mov r8d, ebx
lea r9, [rsp + 0xe0]
mov qword [r10 + 0x20], 0
call qword [r13 + 0xa8]
test eax, eax
je 0x140004e70
mov rcx, r12
call qword [r13 + 0x38]
mov r12d, dword [rsp + 0xe4]
mov ebp, r12d
mov r10d, r12d
mov r11d, r12d
shr ebp, 0x18
shr r10d, 0x10
shr r11d, 8
mov byte [rsp + 0x40], bpl
mov byte [rsp + 0x41], r10b
mov byte [rsp + 0x42], r11b
xor r11d, r11d
mov byte [rsp + 0x43], r12b
test ebx, ebx
jbe 0x1400048e8
mov ebp, ebx
xor r10d, r10d
mov r12d, 1
shr ebp, 1
je 0x1400048d7
xor eax, eax
mov dl, byte [rsp + r11 + 0x40]
lea r12d, [r10 + r10]
inc r11d
cmp r11, 4
cmove r11, rax
xor byte [r12 + rsi], dl
lea r12d, [r10 + r10 + 1]
inc r10d
mov cl, byte [rsp + r11 + 0x40]
inc r11d
cmp r11, 4
cmove r11, rax
xor byte [r12 + rsi], cl
cmp r10d, ebp
jb 0x140004899
lea r12d, [r10 + r10 + 1]
dec r12d
cmp r12d, ebx
jae 0x1400048e8
mov r11b, byte [rsp + r11 + 0x40]
xor byte [r12 + rsi], r11b
mov qword [rsp + 0x158], rsi
test rdi, rdi
je 0x140004904
mov rcx, rdi
call qword [r13 + 0x78]
mov rsi, qword [rsp + 0x158]
mov rbp, rsp
mov rcx, rsi
mov edx, ebx
lea r8, [rsp + 0x130]
mov r9, r13
mov qword [rbp + 0x20], r15
call fcn.1400026e5
test al, al
je 0x140004e5c
mov rbx, qword [rsp + 0x130]
mov rax, qword [r13 + 0xd8]
mov edi, dword [rbx + 0xc]
mov ebp, dword [rbx + 8]
test edi, edi
jne 0x140004946
mov edx, dword [rax + 0x70]
jmp 0x140004948
mov edx, edi
mov ecx, dword [rax + 0x2c]
call qword [r13 + 0x80]
mov rsi, rax
mov rax, rsp
lea r9, [rbx + 0x10]
mov dword [rsp + 0x13c], 0
mov ecx, 2
mov rdx, rsi
mov r8d, edi
mov dword [rax + 0x20], ebp
lea rbp, [rsp + 0x13c]
mov qword [rax + 0x28], rbp
call qword [r13 + reloc.ATL.DLL_AtlInternalQueryInterface]
test eax, eax
jne 0x140004e5c
xor ebp, ebp
lea rcx, [rsi + 0x90]
call fcn.140002a41
test eax, eax
jne 0x1400049a5
mov ebp, dword [rsi + 0x160]
mov eax, dword [rsi + 8]
xor r12d, r12d
add rax, rsi
lea r10, [rax + rbp + 0x3dd]
mov qword [rsp + 0xc8], r10
xor ebp, ebp
lea rdi, [r10 + 0x10de]
mov eax, dword [r15 + 0x110]
cmp dword [rdi - 0x1fa], 0
jbe 0x140004bd2
mov qword [rsp + 0xb8], rsi
mov dword [rsp + 0xc0], ebp
mov ebp, eax
mov qword [rsp + 0xb0], rbx
xor ebx, ebx
mov qword [rsp + 0xd0], r14
mov rsi, r10
mov rcx, rdi
call fcn.140002a41
mov r10, qword [r13 + 0xd8]
lea edx, [rax + rax + 2]
test edx, edx
jne 0x140004a1c
mov edx, dword [r10 + 0x70]
mov ecx, dword [r10 + 0x2c]
call qword [r13 + 0x80]
mov r14, rax
mov rcx, rdi
call fcn.140002a41
mov edx, eax
test eax, eax
je 0x140004b21
cmp eax, 6
jbe 0x140004abe
mov r8d, eax
lea rcx, [r14 + r8*2]
lea r10, [rdi + r8]
sub rcx, r10
lea r11, [r8 + r8]
cmp rcx, r11
jg 0x140004a60
neg rcx
cmp rcx, r8
jle 0x140004abe
mov r11d, eax
xor r10d, r10d
mov ecx, 1
xor edx, edx
shr r11d, 1
je 0x140004a9e
inc r10d
lea ecx, [rax + rdx]
movsx r8d, byte [rcx + rdi]
lea r9d, [rax + rdx - 1]
mov word [r14 + rcx*2], r8w
add edx, 0xfffffffe
movsx ecx, byte [r9 + rdi]
mov word [r14 + r9*2], cx
cmp r10d, r11d
jb 0x140004a72
lea ecx, [r10 + r10 + 1]
lea edx, [rcx - 1]
cmp edx, eax
jae 0x140004ab4
neg ecx
add ecx, eax
inc ecx
movsx edx, byte [rcx + rdi]
mov word [r14 + rcx*2], dx
lea edx, [rax + 1]
sub eax, edx
lea edx, [rax + 1]
jmp 0x140004b21
mov ecx, eax
xor r11d, r11d
mov r8d, 1
xor r10d, r10d
shr ecx, 1
je 0x140004b06
inc r11d
lea edx, [rax + r10]
movsx r8d, byte [rdx + rdi]
mov word [r14 + rdx*2], r8w
lea edx, [rax + r10 - 1]
movsx r9d, byte [rdx + rdi]
add r10d, 0xfffffffe
mov word [r14 + rdx*2], r9w
cmp r11d, ecx
jb 0x140004ad0
lea edx, [r11 + r11]
neg edx
lea r8d, [r11 + r11 + 1]
add edx, eax
lea r10d, [r8 - 1]
cmp r10d, eax
jae 0x140004b21
sub eax, r8d
lea edx, [rax + 1]
movsx r10d, byte [rdx + rdi]
mov word [r14 + rdx*2], r10w
mov edx, eax
mov rcx, r14
movsx r10d, byte [rdx + rdi]
mov word [r14 + rdx*2], r10w
call fcn.1400026a5
mov edx, eax
xor r10d, r10d
test edx, edx
jbe 0x140004b90
mov ecx, edx
mov r8d, 1
mov r11d, dword [r15 + 0xf4]
mov rax, rbx
shr ecx, 1
je 0x140004b78
imul r10d, r11d
movzx r8d, word [r14 + rax*4]
add r10d, r8d
imul r10d, r11d
movzx r9d, word [r14 + rax*4 + 2]
inc rax
add r10d, r9d
cmp rax, rcx
jb 0x140004b52
lea r8d, [rax + rax + 1]
lea eax, [r8 - 1]
cmp eax, edx
jae 0x140004b90
imul r11d, r10d
movsxd r8, r8d
movzx r10d, word [r14 + r8*2 - 2]
add r10d, r11d
cmp r10d, ebp
je 0x1400050a0
inc r12
add rdi, 0x8a
movsxd rdx, dword [rsi + 0xee4]
cmp r12, rdx
jb 0x140004a01
mov ebp, dword [rsp + 0xc0]
mov rsi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xd0]
mov qword [rsp + 0xc0], 0
mov rax, qword [r13 + 0xd8]
mov edx, dword [rax + 0x70]
mov ecx, dword [rax + 0x2c]
call qword [r13 + 0x80]
mov r12, rax
lea rdi, [rsi + 0xf4]
mov rcx, rdi
call fcn.140002a41
mov ecx, eax
test eax, eax
je 0x140004d02
cmp eax, 6
jbe 0x140004c9e
mov r8d, eax
lea rdx, [r12 + r8*2]
lea r10, [r8 + rsi + 0xf4]
sub rdx, r10
lea r11, [r8 + r8]
cmp rdx, r11
jg 0x140004c3a
neg rdx
cmp rdx, r8
jle 0x140004c9e
mov edx, eax
xor r11d, r11d
mov ecx, 1
xor r10d, r10d
shr edx, 1
je 0x140004c79
inc r11d
lea ecx, [rax + r10]
movsx r8d, byte [rcx + rdi]
lea r9d, [rax + r10 - 1]
mov word [r12 + rcx*2], r8w
add r10d, 0xfffffffe
movsx ecx, byte [r9 + rdi]
mov word [r12 + r9*2], cx
cmp r11d, edx
jb 0x140004c4b
lea ecx, [r11 + r11 + 1]
lea r10d, [rcx - 1]
cmp r10d, eax
jae 0x140004c92
neg ecx
add ecx, eax
inc ecx
movsx r10d, byte [rcx + rdi]
mov word [r12 + rcx*2], r10w
lea r10d, [rax + 1]
invalid
invalid