Function at 0x413c40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.0047f270
mov eax, dword [0x4d4664]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 4], eax
cmp dword [edi + 0x10], 0
je 0x413c92
push 0x12d
push 0x4da018
push 0x67
push 0x66
push 0x24
call fcn.0041d280
add esp, 0x14
xor eax, eax
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0047f259
add esp, 0x38
ret
cmp dword [edi + 4], 0
jne 0x413cc2
push 0x132
push 0x4da018
push 0x66
push 0x66
push 0x24
call fcn.0041d280
add esp, 0x14
xor eax, eax
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0047f259
add esp, 0x38
ret
cmp dword [edi], 0
jne 0x413cf1
push 0x137
push 0x4da018
push 0x64
push 0x66
push 0x24
call fcn.0041d280
add esp, 0x14
xor eax, eax
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0047f259
add esp, 0x38
ret
push ebx
push ebp
mov ebx, 0xfffffedf
push esi
sub ebx, edi
lea esi, [edi + 0x18]
cmp dword [edi + 8], 0
lea ebp, [edi + 0x130]
jne 0x413d17
lea eax, [edi + 0x14]
push eax
push ebp
call fcn.00413bc0
add esp, 8
push esi
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.0041c600
add esp, 0xc
lea esi, [edi + 0x121]
xor eax, eax
nop
lea edx, [ebx + esi]
movzx ecx, byte [esp + edx + 0x24]
lea esi, [esi + 4]
xor cl, byte [esi - 5]
lea eax, [eax + 4]
mov byte [esp + edx + 0x14], cl
movzx ecx, byte [esp + eax + 0x21]
xor cl, byte [esi - 4]
mov byte [esp + eax + 0x11], cl
movzx ecx, byte [esp + eax + 0x22]
xor cl, byte [esi - 3]
mov byte [esp + eax + 0x12], cl
movzx ecx, byte [esp + eax + 0x23]
xor cl, byte [esi - 2]
mov byte [esp + eax + 0x13], cl
lea ecx, [ebx + esi]
cmp ecx, 0x10
jl 0x413d30
lea esi, [edi + 0x18]
push esi
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041c600
movups xmm1, xmmword [esp + 0x40]
push esi
movups xmm0, xmmword [esp + 0x34]
lea eax, [edi + 0x120]
push eax
lea eax, [esp + 0x28]
pxor xmm1, xmm0
push eax
movups xmmword [esp + 0x2c], xmm1
call fcn.0041c600
mov ebp, dword [edi + 0xc]
add esp, 0x18
movups xmm0, xmmword [esp + 0x34]
test ebp, ebp
je 0x413e24
cmp dword [0x4d8670], 0
je 0x413dc8
movups xmmword [edi + 0x140], xmm0
lea edx, [edi + 0x140]
mov esi, 0xc
lea ecx, [esp + 0x34]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x413e21
add ecx, 4
add edx, 4
sub esi, 4
jae 0x413dd7
push 0x14c
push 0x4da018
push 0x6a
push 0x66
push 0x24
call fcn.0041d280
add esp, 0x14
mov dword [edi + 0x10], 1
call fcn.0041c010
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0047f259
add esp, 0x38
ret
lea esi, [edi + 0x18]
movups xmmword [edi + 0x140], xmm0
test ebp, ebp
jne 0x413e45
cmp dword [edi + 8], ebp
lea ebp, [edi + 0x130]
mov dword [edi + 0xc], 1
je 0x413d0a
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jbe 0x413e68
mov ecx, dword [esp + 0x10]
movups xmmword [ecx], xmm0
add ecx, 0x10
sub eax, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], eax
jmp 0x413cfe
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00480c10
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov eax, 1
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.0047f259
add esp, 0x38
ret