Function at 0x415d50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4667c8]
push ebx
push ebp
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x415d64
call fcn.00415a40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x1f]
shr edx, 5
mov dword [edi + 4], edx
mov eax, dword [ecx]
mov dword [edi + 8], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0xc]
sub edx, 4
mov dword [edi + 0x14], eax
je 0x415f54
sub edx, 2
je 0x415ead
sub edx, 2
jne 0x415fd4
mov edx, dword [ecx + 0x10]
mov esi, 0x4663a0
mov dword [edi + 0x18], edx
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x1c], eax
mov edx, dword [ecx + 0x18]
mov dword [edi + 0x20], edx
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x24], eax
lea ecx, [edi + 0x28]
mov edx, eax
add esi, 4
ror edx, 8
mov ebx, edx
mov eax, edx
shr ebx, 0x10
and ebx, 0xff
add ecx, 0x20
shr eax, 0x18
mov ebp, dword [ebx*4 + 0x463ba0]
mov ebx, edx
mov eax, dword [eax*4 + 0x463fa0]
and edx, 0xff
shr ebx, 8
and ebx, 0xff
xor eax, ebp
mov ebp, dword [ebx*4 + 0x4637a0]
mov ebx, dword [edx*4 + 0x4633a0]
mov edx, dword [ecx - 0x40]
xor eax, ebp
mov ebp, dword [esi - 4]
xor eax, ebx
xor eax, edx
xor eax, ebp
mov dword [ecx - 0x20], eax
mov ebx, dword [ecx - 0x3c]
xor eax, ebx
mov dword [ecx - 0x1c], eax
mov edx, dword [ecx - 0x38]
xor eax, edx
mov dword [ecx - 0x18], eax
mov ebp, dword [ecx - 0x34]
xor eax, ebp
mov ebx, eax
mov dword [ecx - 0x14], eax
shr ebx, 0x10
and ebx, 0xff
mov edx, eax
shr edx, 0x18
mov ebp, dword [ebx*4 + 0x463ba0]
mov ebx, eax
mov edx, dword [edx*4 + 0x463fa0]
and eax, 0xff
shr ebx, 8
and ebx, 0xff
xor edx, ebp
mov ebp, dword [ebx*4 + 0x4637a0]
mov ebx, dword [eax*4 + 0x4633a0]
mov eax, dword [ecx - 0x30]
xor edx, ebp
xor edx, ebx
xor eax, edx
mov dword [ecx - 0x10], eax
mov ebp, dword [ecx - 0x2c]
xor eax, ebp
mov dword [ecx - 0xc], eax
mov ebx, dword [ecx - 0x28]
xor eax, ebx
mov dword [ecx - 8], eax
mov edx, dword [ecx - 0x24]
xor eax, edx
cmp esi, 0x4663bc
mov dword [ecx - 4], eax
jb 0x415dc7
jmp 0x415fd4
mov eax, dword [ecx + 0x10]
mov edx, 0x4663a0
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x20]
ror eax, 8
mov ebx, eax
mov esi, eax
shr ebx, 0x10
and ebx, 0xff
add edx, 4
shr esi, 0x18
mov ebp, dword [ebx*4 + 0x463ba0]
mov ebx, eax
mov esi, dword [esi*4 + 0x463fa0]
and eax, 0xff
shr ebx, 8
and ebx, 0xff
xor esi, ebp
add ecx, 0x18
mov ebp, dword [ebx*4 + 0x4637a0]
mov ebx, dword [eax*4 + 0x4633a0]
mov eax, dword [ecx - 0x30]
xor esi, ebp
mov ebp, dword [edx - 4]
xor esi, ebx
xor esi, eax
xor esi, ebp
mov eax, esi
mov dword [ecx - 0x18], eax
mov ebx, dword [ecx - 0x2c]
xor eax, ebx
mov dword [ecx - 0x14], eax
mov esi, dword [ecx - 0x28]
xor eax, esi
mov dword [ecx - 0x10], eax
mov ebp, dword [ecx - 0x24]
xor eax, ebp
mov dword [ecx - 0xc], eax
mov ebx, dword [ecx - 0x20]
xor eax, ebx
mov dword [ecx - 8], eax
mov esi, dword [ecx - 0x1c]
xor eax, esi
cmp edx, 0x4663c0
mov dword [ecx - 4], eax
jb 0x415ec1
jmp 0x415fd4
mov edx, 0x4663a0
lea ecx, [edi + 0x18]
ror eax, 8
mov ebx, eax
mov esi, eax
shr ebx, 0x10
and ebx, 0xff
add edx, 4
shr esi, 0x18
mov ebp, dword [ebx*4 + 0x463ba0]
mov ebx, eax
mov esi, dword [esi*4 + 0x463fa0]
and eax, 0xff
shr ebx, 8
and ebx, 0xff
xor esi, ebp
add ecx, 0x10
mov ebp, dword [ebx*4 + 0x4637a0]
mov ebx, dword [ecx - 0x20]
xor esi, ebp
mov ebp, dword [eax*4 + 0x4633a0]
mov eax, dword [edx - 4]
xor esi, ebp
xor esi, ebx
xor eax, esi
mov dword [ecx - 0x10], eax
mov ebp, dword [ecx - 0x1c]
xor eax, ebp
mov dword [ecx - 0xc], eax
mov ebx, dword [ecx - 0x18]
xor eax, ebx
mov dword [ecx - 8], eax
mov esi, dword [ecx - 0x14]
xor eax, esi
cmp edx, 0x4663c8
mov dword [ecx - 4], eax
jb 0x415f5c
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
mov dword [edi + 0x10c], edx
mov edx, dword [edi + 4]
mov dword [edi + 0x110], eax
mov dword [edi + 0x108], ecx
mov ecx, dword [edi + 0x14]
lea eax, [edx*4 + 0x18]
mov dword [edi + 0x114], ecx
cmp eax, 4
mov dword [esp + 0x18], 4
jbe 0x4160bb
lea eax, [edi + 0x18]
mov dword [esp + 0x14], eax
mov edx, dword [eax]
mov eax, edx
mov ecx, edx
shr eax, 7
and eax, 0x1010101
and ecx, 0xff7f7f7f
shl ecx, 1
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
xor eax, ecx
mov ecx, eax
mov esi, eax
shr ecx, 7
and ecx, 0x1010101
and esi, 0xff7f7f7f
shl esi, 1
lea ecx, [ecx + ecx*2]
mov ebp, eax
lea ecx, [ecx + ecx*8]
xor ecx, esi
mov esi, ecx
mov ebx, ecx
shr esi, 7
and esi, 0x1010101
and ebx, 0xff7f7f7f
shl ebx, 1
lea esi, [esi + esi*2]
lea esi, [esi + esi*8]
xor esi, ebx
mov ebx, ecx
xor edx, esi
xor ebx, edx
xor ebp, edx
ror ebx, 0x10
ror ebp, 8
xor ebx, ebp
ror edx, 0x18
xor ebx, edx
xor ebx, esi
xor ebx, ecx
mov ecx, dword [esp + 0x18]
xor ebx, eax
mov eax, dword [esp + 0x14]
inc ecx
mov dword [eax + 0x100], ebx
mov edx, dword [edi + 4]
add eax, 4
mov dword [esp + 0x18], ecx
lea edx, [edx*4 + 0x18]
mov dword [esp + 0x14], eax
cmp ecx, edx
jb 0x41601a
pop edi
pop esi
pop ebp
pop ebx
ret 8