Function at 0x420748
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rsi, rcx
xor r13d, r13d
cmp qword [rcx + 0x58], r13
je 0x420778
mov rbx, qword [rcx + 0x160]
mov rbp, rbx
jmp 0x42078e
mov rbx, qword [rcx + 0x160]
mov rax, rbx
shr rax, 4
lea rbp, [rax + rbx + 0x400]
cmp rbp, rbx
jae 0x42079d
mov eax, 0x80004005
jmp 0x420f1a
mov rax, qword [rcx + 0x178]
mov qword [rcx + 0x170], rax
cmp rax, r13
je 0x420846
cmp byte [rcx + 0x4c], r13b
je 0x420973
mov rcx, qword [rcx + 0x180]
cmp rcx, r13
je 0x4207d3
cmp rbx, qword [rsi + 0x188]
je 0x420801
call fcn.0045e3e0
mov qword [rsi + 0x188], r13
mov qword [rsi + 0x180], r13
mov rcx, rbx
call fcn.0045e3c0
mov qword [rsi + 0x180], rax
cmp rax, r13
je 0x420801
mov qword [rsi + 0x188], rbx
mov r8, qword [rsi + 0x160]
cmp r8, r13
je 0x420820
cmp qword [rsi + 0x180], r13
jne 0x420820
mov eax, 0x8007000e
jmp 0x420f1a
mov rdx, qword [rsi + 0x178]
mov rcx, qword [rsi + 0x180]
call sub.msvcrt.dll_memcpy
mov r11, qword [rsi + 0x180]
mov qword [rsi + 0x170], r11
jmp 0x420973
mov rcx, qword [rcx + 0x180]
cmp rcx, r13
je 0x42085b
cmp rbx, qword [rsi + 0x188]
je 0x420889
call fcn.0045e3e0
mov qword [rsi + 0x188], r13
mov qword [rsi + 0x180], r13
mov rcx, rbx
call fcn.0045e3c0
mov qword [rsi + 0x180], rax
cmp rax, r13
je 0x420889
mov qword [rsi + 0x188], rbx
mov rax, qword [rsi + 0x160]
cmp rax, r13
je 0x4208a8
cmp qword [rsi + 0x180], r13
jne 0x4208a8
mov eax, 0x8007000e
jmp 0x420f1a
mov edx, dword [rsi + 0x1f0]
cmp edx, r13d
jne 0x42091b
mov eax, dword [rsi + 0x88]
mov dword [rsp + 0x48], eax
mov r10d, 0x159a55e5
mov r9d, 0x1f123bb5
mov rdx, qword [rsi + 0x188]
mov r11, qword [rsi + 0x180]
mov r8, r13
cmp rdx, r13
jbe 0x42094c
movzx ecx, r10w
imul ecx, ecx, 0x9069
shr r10d, 0x10
add r10d, ecx
movzx ecx, r9w
imul ecx, ecx, 0x4650
shr r9d, 0x10
add r9d, ecx
mov dword [rsp + 0x44], r9d
mov al, byte [rsp + 0x48]
xor al, r9b
mov byte [r8 + r11], al
inc r8
cmp r8, rdx
jb 0x4208df
jmp 0x42094c
cmp edx, 0x40
jb 0x420939
movabs rcx, 0x8000000000000000
cmp rax, rcx
jbe 0x420939
mov eax, 0x80070057
jmp 0x420f1a
mov r8d, dword [rsi + 0x88]
lea rcx, [rsi + 0x180]
call fcn.0041efb4
mov rdx, qword [rsi + 0x188]
mov rcx, qword [rsi + 0x180]
call fcn.0045e8b0
mov dword [rsi + 0x158], eax
mov rax, qword [rsi + 0x180]
mov qword [rsi + 0x170], rax
cmp qword [rsi + 0x140], r13
jne 0x4209d7
mov ecx, 0x30
call fcn.0040230c
mov rbx, rax
cmp rax, r13
je 0x4209a6
mov dword [rax + 8], r13d
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
lea rax, [0x004635d8]
mov qword [rbx], rax
jmp 0x4209a9
mov rbx, r13
mov qword [rsi + 0x138], rbx
cmp rbx, r13
je 0x4209be
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rcx, qword [rsi + 0x140]
cmp rcx, r13
je 0x4209d0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x140], rbx
mov rbx, qword [rsi + 0x138]
mov r14d, 0x10
add rbx, r14
mov rcx, qword [rbx]
cmp rcx, r13
je 0x4209f5
cmp rbp, qword [rbx + 8]
je 0x420a15
call fcn.0045e3e0
mov qword [rbx + 8], r13
mov qword [rbx], r13
mov rcx, rbp
call fcn.0045e3c0
mov qword [rbx], rax
cmp rax, r13
je 0x420a15
mov qword [rbx + 8], rbp
cmp rbp, r13
je 0x420a31
mov rax, qword [rsi + 0x138]
cmp qword [rax + 0x10], r13
jne 0x420a31
mov eax, 0x8007000e
jmp 0x420f1a
cmp qword [rsi + 0x58], r13
je 0x420ad5
mov rbx, qword [rsi + 0x160]
mov rcx, qword [rsi + 0x190]
cmp rcx, r13
je 0x420a57
cmp rbx, qword [rsi + 0x198]
je 0x420a85
call fcn.0045e3e0
mov qword [rsi + 0x198], r13
mov qword [rsi + 0x190], r13
mov rcx, rbx
call fcn.0045e3c0
mov qword [rsi + 0x190], rax
cmp rax, r13
je 0x420a85
mov qword [rsi + 0x198], rbx
mov r8, qword [rsi + 0x160]
cmp r8, r13
je 0x420aa4
cmp qword [rsi + 0x190], r13
jne 0x420aa4
mov eax, 0x8007000e
jmp 0x420f1a
mov rax, qword [rsi + 0x138]
mov rdx, qword [rsi + 0x170]
mov rcx, qword [rax + 0x10]
call sub.msvcrt.dll_memcpy
mov r8, qword [rsi + 0x160]
mov rdx, qword [rsi + 0x170]
mov rcx, qword [rsi + 0x190]
call sub.msvcrt.dll_memcpy
mov ebp, 0x28
cmp qword [rsi + 0x1e8], r13
jne 0x420b34
mov rcx, rbp
call fcn.0040230c
mov rbx, rax
cmp rax, r13
je 0x420b03
mov dword [rax + 8], r13d
lea rax, [0x004627f0]
mov qword [rbx], rax
jmp 0x420b06
mov rbx, r13
mov qword [rsi + 0x1e0], rbx
cmp rbx, r13
je 0x420b1b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rcx, qword [rsi + 0x1e8]
cmp rcx, r13
je 0x420b2d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x1e8], rbx
mov rcx, qword [rsi + 0x1e0]
lea rax, [rsi + 0x1a0]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x20], r13
mov qword [rcx + 0x18], 0x40
mov qword [rsp + 0xb8], r13
mov rbx, qword [rsi + 0x58]
cmp rbx, r13
je 0x420b7b
cmp rbx, r13
je 0x420b71
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov qword [rsp + 0xb8], rbx
jmp 0x420b95
mov rbx, qword [rsi + 0x50]
cmp rbx, r13
je 0x420b8d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xa0], r13
mov rax, qword [rbx]
lea r8, [rsp + 0xa0]
lea rdx, [0x004682d8]
mov rcx, rbx
call qword [rax]
mov rdi, qword [rsp + 0xa0]
cmp rdi, r13
je 0x420c39
mov rax, qword [rsi + 0x160]
mov qword [rsp + 0x30], rax
lea rcx, [rsi + 0x30]
lea r8, [rsp + 0xa8]
mov edx, dword [rsi + 0x28]
call fcn.0041e210
mov qword [rsp + 0xa8], rax
neg rax
sbb r9, r9
lea rax, [rsp + 0xa8]
and r9, rax
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsi + 0x1f8]
call fcn.00410254
mov edi, eax
cmp eax, r13d
je 0x420c6c
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x420c29
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, edi
jmp 0x420f1a
mov edx, r13d
cmp dword [rsi + 0x200], r13d
jbe 0x420c6c
mov rcx, qword [rsi + 0x1f8]
mov rax, qword [rcx]
cmp byte [rax + 4], r13b
je 0x420c65
inc edx
add rcx, 8
cmp edx, dword [rsi + 0x200]
jb 0x420c4c
jmp 0x420c6c
mov edi, 0x80070057
jmp 0x420cd4
mov qword [rsp + 0xb0], r13
mov rax, qword [rbx]
lea r8, [rsp + 0xb0]
lea rdx, [0x004682f8]
mov rcx, rbx
call qword [rax]
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x420ce4
mov rax, qword [rcx]
mov rdx, qword [rsi + 0x1e8]
call qword [rax + 0x18]
mov edi, eax
cmp eax, r13d
je 0x420ce4
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x420cc0
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x420cd4
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, edi
jmp 0x420f1a
mov qword [rsp + 0xa8], r13
mov rax, qword [rbx]
lea r8, [rsp + 0xa8]
lea rdx, [0x00468428]
mov rcx, rbx
call qword [rax]
mov rcx, qword [rsp + 0xa8]
cmp rcx, r13
je 0x420edb
mov rax, qword [rcx]
lea rdx, [rsi + 0xcc]
mov r8d, r14d
call qword [rax + 0x18]
mov edi, eax
cmp eax, r13d
je 0x420d6c
mov rcx, qword [rsp + 0xa8]
cmp rcx, r13
je 0x420d3f
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x420d53
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x420d67
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x420eb2
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
mov rcx, qword [rsi + 0x58]
cmp rcx, r13
je 0x420da9
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov r8d, r14d
lea rdx, [rsp + 0x50]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0xa8]
jmp 0x420edb
mov rcx, rbp
call fcn.0040230c
mov rbp, rax
cmp rax, r13
je 0x420dca
mov dword [rax + 8], r13d
lea rax, [0x004634b0]
mov qword [rbp], rax
jmp 0x420dcd
mov rbp, r13
mov qword [rsp + 0x30], rbp
cmp rbp, r13
je 0x420de2
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + VariantCopy]
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x18], r13
mov ecx, 0x20
call fcn.0040230c
mov rdi, rax
cmp rax, r13
je 0x420e19
mov dword [rax + 8], r13d
lea rax, [0x00463598]
mov qword [rdi], rax
mov byte [rdi + 0xc], 1
jmp 0x420e1c
mov rdi, r13
mov qword [rsp + 0x40], rdi
cmp rdi, r13
je 0x420e30
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + VariantCopy]
nop
mov dword [rdi + 0x10], 0xffffffff
mov qword [rdi + 0x18], r13
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, rdi
mov rdx, rbp
call qword [rax + 0x18]
mov esi, eax
cmp eax, r13d
je 0x420ebf
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x10]
nop
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0x10]
nop
mov rcx, qword [rsp + 0xa8]
cmp rcx, r13
je 0x420e88
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x420e9c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x420eb0
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov edi, esi
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, edi
jmp 0x420f1a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x10]
mov rcx, qword [rsp + 0xa8]
cmp rcx, r13
je 0x420ee7
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x420efb
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x420f0f
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
xor eax, eax
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret