Function at 0x41cb38
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rsi, rcx
mov rdi, qword [rcx + 0x158]
mov rax, rdi
shr rax, 4
lea rbp, [rax + rdi + 0x400]
cmp rbp, rdi
jae 0x41cb76
mov eax, 0x80004005
jmp 0x41d22c
mov rax, qword [rcx + 0x170]
mov qword [rcx + 0x168], rax
xor r13d, r13d
cmp rax, r13
jne 0x41ccbd
mov rcx, qword [rcx + 0x178]
cmp rcx, r13
je 0x41cba5
cmp rdi, qword [rsi + 0x180]
je 0x41cbd3
call fcn.00459420
mov qword [rsi + 0x180], r13
mov qword [rsi + 0x178], r13
mov rcx, rdi
call fcn.00459400
mov qword [rsi + 0x178], rax
cmp rax, r13
je 0x41cbd3
mov qword [rsi + 0x180], rdi
mov rax, qword [rsi + 0x158]
cmp rax, r13
je 0x41cbf2
cmp qword [rsi + 0x178], r13
jne 0x41cbf2
mov eax, 0x8007000e
jmp 0x41d22c
mov edx, dword [rsi + 0x1e8]
cmp edx, r13d
jne 0x41cc65
mov eax, dword [rsi + 0x88]
mov dword [rsp + 0x48], eax
mov r10d, 0x159a55e5
mov r9d, 0x1f123bb5
mov rdx, qword [rsi + 0x180]
mov r11, qword [rsi + 0x178]
mov r8, r13
cmp rdx, r13
jbe 0x41cc96
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 0x41cc29
jmp 0x41cc96
cmp edx, 0x40
jb 0x41cc83
movabs rcx, 0x8000000000000000
cmp rax, rcx
jbe 0x41cc83
mov eax, 0x80070057
jmp 0x41d22c
mov r8d, dword [rsi + 0x88]
lea rcx, [rsi + 0x178]
call fcn.0041b2d0
mov rdx, qword [rsi + 0x180]
mov rcx, qword [rsi + 0x178]
call fcn.004598b0
mov dword [rsi + 0x150], eax
mov rax, qword [rsi + 0x178]
mov qword [rsi + 0x168], rax
cmp qword [rsi + 0x58], r13
je 0x41cd29
mov rbx, qword [rsi + 0x158]
mov rcx, qword [rsi + 0x188]
cmp rcx, r13
je 0x41ccdf
cmp rbx, qword [rsi + 0x190]
je 0x41cd0d
call fcn.00459420
mov qword [rsi + 0x190], r13
mov qword [rsi + 0x188], r13
mov rcx, rbx
call fcn.00459400
mov qword [rsi + 0x188], rax
cmp rax, r13
je 0x41cd0d
mov qword [rsi + 0x190], rbx
cmp qword [rsi + 0x158], r13
je 0x41cd29
cmp qword [rsi + 0x188], r13
jne 0x41cd29
mov eax, 0x8007000e
jmp 0x41d22c
cmp qword [rsi + 0x138], r13
jne 0x41cd8d
mov ecx, 0x30
call fcn.00402308
mov rbx, rax
cmp rax, r13
je 0x41cd5c
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov dword [rax + 0x18], r13d
lea rax, [0x0045df70]
mov qword [rbx], rax
jmp 0x41cd5f
mov rbx, r13
mov qword [rsi + 0x130], rbx
cmp rbx, r13
je 0x41cd74
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rcx, qword [rsi + 0x138]
cmp rcx, r13
je 0x41cd86
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x138], rbx
mov rbx, qword [rsi + 0x130]
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x41cda3
cmp rbp, qword [rbx + 0x10]
je 0x41cdc5
call fcn.00459420
mov qword [rbx + 0x10], r13
mov qword [rbx + 8], r13
mov rcx, rbp
call fcn.00459400
mov qword [rbx + 8], rax
cmp rax, r13
je 0x41cdc5
mov qword [rbx + 0x10], rbp
cmp rbp, r13
je 0x41cde1
mov rax, qword [rsi + 0x130]
cmp qword [rax + 8], r13
jne 0x41cde1
mov eax, 0x8007000e
jmp 0x41d22c
mov ebp, 0x28
cmp qword [rsi + 0x1e0], r13
jne 0x41ce40
mov rcx, rbp
call fcn.00402308
mov rbx, rax
cmp rax, r13
je 0x41ce0f
mov dword [rax + 8], r13d
lea rax, [0x0045d2c0]
mov qword [rbx], rax
jmp 0x41ce12
mov rbx, r13
mov qword [rsi + 0x1d8], rbx
cmp rbx, r13
je 0x41ce27
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rcx, qword [rsi + 0x1e0]
cmp rcx, r13
je 0x41ce39
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x1e0], rbx
mov rcx, qword [rsi + 0x1d8]
lea rax, [rsi + 0x198]
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 0x41ce87
cmp rbx, r13
je 0x41ce7d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov qword [rsp + 0xb8], rbx
jmp 0x41cea1
mov rbx, qword [rsi + 0x50]
cmp rbx, r13
je 0x41ce99
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, [0x00463558]
mov rcx, rbx
call qword [rax]
mov rdi, qword [rsp + 0xa0]
cmp rdi, r13
je 0x41cf45
mov rax, qword [rsi + 0x158]
mov qword [rsp + 0x30], rax
lea rcx, [rsi + 0x30]
lea r8, [rsp + 0xa8]
mov edx, dword [rsi + 0x28]
call fcn.0041a698
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 + 0x1f0]
call fcn.0040f350
mov edi, eax
cmp eax, r13d
je 0x41cf78
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x41cf35
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, edi
jmp 0x41d22c
mov edx, r13d
cmp dword [rsi + 0x1f8], r13d
jbe 0x41cf78
mov rcx, qword [rsi + 0x1f0]
mov rax, qword [rcx]
cmp byte [rax + 4], r13b
je 0x41cf71
inc edx
add rcx, 8
cmp edx, dword [rsi + 0x1f8]
jb 0x41cf58
jmp 0x41cf78
mov edi, 0x80070057
jmp 0x41cfe0
mov qword [rsp + 0xb0], r13
mov rax, qword [rbx]
lea r8, [rsp + 0xb0]
lea rdx, [0x00463538]
mov rcx, rbx
call qword [rax]
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x41cff0
mov rax, qword [rcx]
mov rdx, qword [rsi + 0x1e0]
call qword [rax + 0x18]
mov edi, eax
cmp eax, r13d
je 0x41cff0
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x41cfcc
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x41cfe0
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, edi
jmp 0x41d22c
mov qword [rsp + 0xa8], r13
mov rax, qword [rbx]
lea r8, [rsp + 0xa8]
lea rdx, [0x004634a8]
mov rcx, rbx
call qword [rax]
mov rcx, qword [rsp + 0xa8]
cmp rcx, r13
je 0x41d1ed
mov rax, qword [rcx]
lea rdx, [rsi + 0xcc]
mov r12d, 0x10
mov r8d, r12d
call qword [rax + 0x18]
mov edi, eax
cmp eax, r13d
je 0x41d07e
mov rcx, qword [rsp + 0xa8]
cmp rcx, r13
je 0x41d051
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x41d065
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x41d079
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x41d1c4
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
mov rcx, qword [rsi + 0x58]
cmp rcx, r13
je 0x41d0bb
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov r8d, r12d
lea rdx, [rsp + 0x50]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0xa8]
jmp 0x41d1ed
mov rcx, rbp
call fcn.00402308
mov rbp, rax
cmp rax, r13
je 0x41d0dc
mov dword [rax + 8], r13d
lea rax, [0x0045de68]
mov qword [rbp], rax
jmp 0x41d0df
mov rbp, r13
mov qword [rsp + 0x30], rbp
cmp rbp, r13
je 0x41d0f4
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], r12
mov qword [rbp + 0x18], r13
mov ecx, 0x20
call fcn.00402308
mov rdi, rax
cmp rax, r13
je 0x41d12b
mov dword [rax + 8], r13d
lea rax, [0x0045df30]
mov qword [rdi], rax
mov byte [rdi + 0xc], 1
jmp 0x41d12e
mov rdi, r13
mov qword [rsp + 0x40], rdi
cmp rdi, r13
je 0x41d142
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 0x41d1d1
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 0x41d19a
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x41d1ae
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x41d1c2
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 0x41d22c
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 0x41d1f9
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xb0]
cmp rcx, r13
je 0x41d20d
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x41d221
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, 0x68
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret