Function at 0x4012d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ecx
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], edi
test ebx, ebx
je 0x4014c5
lea edx, [ebp - 0x44]
mov eax, edi
sub eax, edx
mov dword [ebp - 0x4c], eax
mov eax, esi
sub eax, edx
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x3f]
mov dword [ebp - 0x48], eax
mov edx, ecx
lea ecx, [ebp - 0x44]
call fcn.00401000
mov eax, dword [ebp - 0x54]
add dword [eax + 0x20], 1
jne 0x401326
inc dword [eax + 0x24]
cmp ebx, 0x40
jbe 0x4013d4
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 5]
xor eax, eax
cmp edi, ecx
ja 0x401342
lea ecx, [ebp - 0x44]
cmp edx, ecx
jae 0x40134d
lea ecx, [esi + 0x3f]
cmp edi, ecx
ja 0x401371
cmp edx, esi
jb 0x401371
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
lea edx, [ebp - 0x44]
add edx, eax
inc eax
mov cl, byte [edi + edx]
xor cl, byte [edx]
mov byte [ebx + edx], cl
cmp eax, 0x40
jl 0x401353
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x48]
jmp 0x4013af
movups xmm0, xmmword [ebp - 0x44]
movups xmm1, xmmword [esi]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [edi], xmm1
movups xmm1, xmmword [esi + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [edx - 0x2f], xmm1
movups xmm1, xmmword [esi + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [edx - 0x1f], xmm1
movups xmm1, xmmword [esi + 0x30]
pxor xmm1, xmm0
movups xmmword [edx - 0xf], xmm1
add dword [ebp - 0x4c], 0x40
sub ebx, 0x40
mov ecx, dword [ebp - 0x54]
add edi, 0x40
add edx, 0x40
mov dword [ebp + 0xc], ebx
add esi, 0x40
mov dword [ebp - 0x58], edi
add dword [ebp - 0x50], 0x40
mov dword [ebp - 0x48], edx
jmp 0x401310
xor edx, edx
mov dword [ebp - 0x54], esi
test ebx, ebx
je 0x4014c5
cmp ebx, 0x40
jb 0x4014a8
lea ecx, [edi - 1]
lea eax, [ebp + ebx - 0x45]
add ecx, ebx
cmp edi, eax
ja 0x401402
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x4014a8
lea eax, [ebx - 1]
add eax, esi
cmp edi, eax
ja 0x401413
cmp ecx, esi
jae 0x4014a8
mov eax, ebx
lea ecx, [esi + 0x30]
mov ebx, esi
and eax, 0xffffffc0
sub ebx, edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], ebx
lea eax, [edi + 0x10]
lea ebx, [ebp - 0x44]
sub ebx, edi
mov dword [ebp - 0x4c], ebx
lea ebx, [ebp - 0x34]
mov esi, dword [ebp - 0x4c]
sub ebx, edi
mov dword [ebp - 0x48], ebx
lea ebx, [ebp - 0x24]
sub ebx, edi
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x5c], ebx
movups xmm0, xmmword [ecx - 0x30]
mov ebx, dword [ebp - 0x48]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ebp + edx - 0x44]
add edx, 0x40
lea eax, [eax + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [edi + eax - 0x40]
movups xmmword [eax - 0x50], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x50]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [ebp - 0x5c]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [ebp + 0xc]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x60]
jb 0x401446
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
cmp edx, ebx
jae 0x4014c5
lea eax, [ebp - 0x44]
sub esi, eax
sub edi, eax
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
cmp edx, ebx
jb 0x4014b3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040232e
mov esp, ebp
pop ebp
ret