Function at 0x4106d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.004249a0
mov eax, dword [0x46b7f0]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [esp + 0x4c], 1
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x48]
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov edi, eax
jne 0x410835
cmp ebp, 0x10
jb 0x4107cb
mov eax, ebp
shr eax, 4
mov dword [esp + 0x10], eax
lea esp, [esp]
mov eax, ebx
sub eax, edi
mov dword [esp + 0x28], eax
mov eax, esi
sub eax, edi
lea edx, [ebx + 3]
sub ebx, esi
lea ecx, [esi + 1]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov ebp, 4
mov esi, eax
movzx eax, byte [ebx + edi]
xor al, byte [edi]
lea edi, [edi + 4]
mov byte [esi + edi - 4], al
mov eax, dword [esp + 0x18]
lea ecx, [ecx + 4]
movzx eax, byte [eax + ecx - 4]
xor al, byte [edi - 3]
lea edx, [edx + 4]
mov byte [ecx - 4], al
movzx eax, byte [edi - 2]
xor al, byte [edx - 5]
mov byte [ecx - 3], al
movzx eax, byte [edi - 1]
xor al, byte [edx - 4]
mov byte [ecx - 2], al
dec ebp
jne 0x410757
push dword [esp + 0x14]
mov esi, dword [esp + 0x24]
push esi
push esi
call fcn.0040f9c0
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x30]
mov edi, esi
sub ebp, 0x10
add ebx, 0x10
add esi, 0x10
add esp, 0xc
dec dword [esp + 0x10]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
jne 0x410730
test ebp, ebp
je 0x41081f
sub ebx, edi
sub esi, edi
mov ecx, edi
mov dword [esp + 0x18], esi
mov edx, ebp
jmp 0x4107e0
mov al, byte [ebx + ecx]
xor al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
dec edx
jne 0x4107e0
mov esi, dword [esp + 0x20]
cmp ebp, 0x10
jae 0x41080f
mov edx, 0x10
sub edi, esi
lea ecx, [esi + ebp]
sub edx, ebp
mov al, byte [edi + ecx]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x410804
push dword [esp + 0x14]
push esi
push esi
call fcn.0040f9c0
add esp, 0xc
mov edi, esi
movq xmm0, qword [edi]
mov ebx, dword [esp + 0x1c]
movq qword [ebx], xmm0
movq xmm0, qword [edi + 8]
jmp 0x410a02
cmp ebx, esi
je 0x4108ef
cmp ebp, 0x10
jb 0x4108b0
mov eax, ebp
shr eax, 4
mov dword [esp + 0x10], eax
jmp 0x410850
push ecx
push esi
push ebx
call fcn.0040f420
add esp, 0xc
lea edx, [edi + 2]
mov ecx, esi
sub edi, esi
mov ebp, 4
jmp 0x410870
movzx eax, byte [ecx + edi]
xor byte [ecx], al
movzx eax, byte [edx - 1]
xor byte [ecx + 1], al
movzx eax, byte [edx]
xor byte [ecx + 2], al
movzx eax, byte [edx + 1]
xor byte [ecx + 3], al
lea ecx, [ecx + 4]
lea edx, [edx + 4]
dec ebp
jne 0x410870
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
mov edi, ebx
sub ebp, 0x10
add ebx, 0x10
add esi, 0x10
dec dword [esp + 0x10]
mov dword [esp + 0x50], ebp
jne 0x410850
test ebp, ebp
je 0x41081f
push ecx
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.0040f420
add esp, 0xc
xor edx, edx
test ebp, ebp
je 0x4108e8
lea eax, [esp + 0x30]
sub edi, eax
sub esi, eax
lea ecx, [esp + 0x30]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + esi], al
cmp edx, ebp
jb 0x4108d5
mov edi, ebx
jmp 0x41081f
cmp ebp, 0x10
jb 0x41098f
lea edx, [eax + 2]
mov eax, ebp
sub edi, esi
shr eax, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
lea ebx, [ebx]
movq xmm0, qword [ebx]
push ecx
movq qword [esp + 0x34], xmm0
movq xmm0, qword [ebx + 8]
push esi
push ebx
movq qword [esp + 0x44], xmm0
call fcn.0040f420
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edx, 4
lea esp, [esp]
movzx eax, byte [edi + esi]
xor byte [esi], al
movzx eax, byte [ecx - 1]
xor byte [esi + 1], al
movzx eax, byte [ecx]
xor byte [esi + 2], al
movzx eax, byte [ecx + 1]
xor byte [esi + 3], al
add esi, 4
lea ecx, [ecx + 4]
dec edx
jne 0x410940
mov eax, dword [esp + 0x1c]
movq xmm0, qword [esp + 0x30]
mov ecx, dword [esp + 0x14]
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x38]
sub ebp, 0x10
add ebx, 0x10
sub edi, 0x10
dec dword [esp + 0x10]
movq qword [eax + 8], xmm0
jne 0x410910
test ebp, ebp
je 0x410a07
movq xmm0, qword [ebx]
push ecx
movq qword [esp + 0x34], xmm0
movq xmm0, qword [ebx + 8]
lea eax, [esp + 0x34]
push esi
push eax
movq qword [esp + 0x44], xmm0
call fcn.0040f420
mov ebx, dword [esp + 0x28]
add esp, 0xc
test ebp, ebp
je 0x4109d2
mov edi, ebx
mov ecx, esi
sub edi, esi
mov edx, ebp
mov al, byte [ecx + edi]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4109c7
cmp ebp, 0x10
jae 0x4109f2
mov eax, 0x10
sub eax, ebp
lea ecx, [esp + 0x30]
push eax
add ecx, ebp
lea edx, [esi + ebp]
push ecx
push edx
call fcn.004241a0
add esp, 0xc
movq xmm0, qword [esp + 0x30]
movq qword [ebx], xmm0
movq xmm0, qword [esp + 0x38]
movq qword [ebx + 8], xmm0
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424ad5
add esp, 0x34
ret