Function at 0x4012c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x41d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add edx, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x40], eax
lea esi, [ebp - 0x13]
mov ecx, 4
nop dword [eax + eax]
movzx eax, byte [edx - 8]
lea edx, [edx + 1]
mov byte [esi - 1], al
lea esi, [esi + 4]
movzx eax, byte [edx - 5]
mov byte [esi - 4], al
movzx eax, byte [edx - 1]
mov byte [esi - 3], al
movzx eax, byte [edx + 3]
mov byte [esi - 2], al
sub ecx, 1
jne 0x4012f0
mov edi, dword [edi + 4]
mov esi, edi
shl esi, 4
add esi, dword [ebp + 0x10]
lea edx, [esi + 0xc]
movzx eax, byte [esi + ecx]
lea edx, [edx + 1]
xor byte [ebp + ecx*4 - 0x14], al
movzx eax, byte [esi + ecx + 4]
xor byte [ebp + ecx*4 - 0x13], al
movzx eax, byte [edx - 5]
xor byte [ebp + ecx*4 - 0x12], al
movzx eax, byte [edx - 1]
xor byte [ebp + ecx*4 - 0x11], al
inc ecx
cmp ecx, 4
jb 0x401325
push ebx
lea ebx, [edi - 1]
mov dword [ebp - 0x3c], ebx
cmp ebx, 1
jb 0x4014d0
mov edi, ebx
lea esi, [ebp - 0x14]
shl edi, 4
add edi, dword [ebp + 0x10]
mov dword [ebp - 0x38], edi
nop dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.00401810
movzx eax, byte [ebp - 0xd]
lea ebx, [ebp - 0x12]
mov byte [ebp - 0x2c], al
mov ecx, edi
movzx eax, byte [ebp - 0x10]
lea edi, [ebp - 0x11]
mov byte [ebp - 0x2b], al
xor edx, edx
movzx eax, byte [ebp - 0xf]
mov byte [ebp - 0x2a], al
movzx eax, byte [ebp - 0xe]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 0xa]
mov byte [ebp - 0x30], al
movzx eax, byte [ebp - 9]
mov byte [ebp - 0x2f], al
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x2e], al
movzx eax, byte [ebp - 0xb]
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp - 7]
mov byte [ebp - 0x28], al
movzx eax, byte [ebp - 6]
mov byte [ebp - 0x27], al
movzx eax, byte [ebp - 5]
mov byte [ebp - 0x26], al
movzx eax, byte [ebp - 8]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor byte [esi + edx*4], al
movzx eax, byte [ecx + 3]
xor byte [ebp + edx*4 - 0x13], al
movzx eax, byte [ecx + 7]
xor byte [ebx + edx*4], al
movzx eax, byte [ecx + 0xb]
xor byte [edi + edx*4], al
inc edx
cmp edx, 4
jb 0x4013f0
mov edi, dword [ebp - 0x38]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
xor esi, esi
mov cl, byte [ebp + esi - 0x22]
xor eax, eax
mov bl, byte [ebp + esi - 0x24]
mov bh, byte [ebp + esi - 0x23]
mov byte [ebp - 0x31], cl
mov cl, byte [ebp + esi - 0x21]
mov byte [ebp - 0x32], cl
nop dword [eax]
movzx edx, byte [esi + eax + 0x419c40]
movzx ecx, byte [ebp + eax*4 - 0x14]
shl edx, 8
xor bl, byte [ecx + edx + 0x419e50]
movzx ecx, byte [ebp + eax*4 - 0x13]
mov byte [ebp - 0x33], bl
mov bl, byte [ebp - 0x31]
xor bh, byte [ecx + edx + 0x419e50]
movzx ecx, byte [ebp + eax*4 - 0x12]
xor bl, byte [ecx + edx + 0x419e50]
movzx ecx, byte [ebp + eax*4 - 0x11]
inc eax
mov byte [ebp - 0x31], bl
mov bl, byte [ebp - 0x32]
xor bl, byte [ecx + edx + 0x419e50]
mov byte [ebp - 0x32], bl
mov bl, byte [ebp - 0x33]
cmp eax, 4
jb 0x401440
mov al, byte [ebp - 0x31]
mov cl, byte [ebp - 0x32]
mov byte [ebp + esi - 0x24], bl
mov byte [ebp + esi - 0x23], bh
mov byte [ebp + esi - 0x22], al
mov byte [ebp + esi - 0x21], cl
add esi, 4
cmp esi, 0x10
jb 0x401421
movups xmm0, xmmword [ebp - 0x24]
sub edi, 0x10
lea esi, [ebp - 0x14]
sub dword [ebp - 0x3c], 1
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x38], edi
jne 0x401370
lea eax, [ebp - 0x14]
push eax
call fcn.00401810
movzx eax, byte [ebp - 0xd]
lea ecx, [ebp - 0x13]
mov byte [ebp - 0x28], al
mov esi, 4
movzx eax, byte [ebp - 0x10]
mov byte [ebp - 0x27], al
movzx eax, byte [ebp - 0xf]
mov byte [ebp - 0x26], al
movzx eax, byte [ebp - 0xe]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 0xa]
mov byte [ebp - 0x28], al
movzx eax, byte [ebp - 9]
mov edx, dword [ebp + 0x10]
mov byte [ebp - 0x27], al
add edx, 8
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x26], al
movzx eax, byte [ebp - 0xb]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp - 7]
mov byte [ebp - 0x28], al
movzx eax, byte [ebp - 6]
mov byte [ebp - 0x27], al
movzx eax, byte [ebp - 5]
mov byte [ebp - 0x26], al
movzx eax, byte [ebp - 8]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
pop ebx
nop
movzx eax, byte [edx - 8]
lea edx, [edx + 1]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
xor byte [ecx - 4], al
movzx eax, byte [edx - 1]
xor byte [ecx - 3], al
movzx eax, byte [edx + 3]
xor byte [ecx - 2], al
sub esi, 1
jne 0x401550
mov edx, dword [ebp - 0x40]
xor ecx, ecx
pop edi
pop esi
nop
movzx eax, byte [ebp + ecx*4 - 0x14]
mov byte [edx + ecx], al
movzx eax, byte [ebp + ecx*4 - 0x13]
mov byte [edx + ecx + 4], al
movzx eax, byte [ebp + ecx*4 - 0x12]
mov byte [edx + ecx + 8], al
movzx eax, byte [ebp + ecx*4 - 0x11]
mov byte [edx + ecx + 0xc], al
inc ecx
cmp ecx, 4
jb 0x401580
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406c1b
mov esp, ebp
pop ebp
ret 0xc