Function at 0x463040
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62f88d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6ac860
call fcn.00409430
mov eax, dword [0x6ac864]
lea ecx, [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], edi
mov eax, dword [0x6ac878]
test al, 1
je 0x4630af
lea esi, [edi + 2]
jmp 0x4632d0
xor esi, esi
test al, 2
jne 0x46311c
mov ecx, dword [ebx + 8]
xor eax, eax
mov edx, 3
nop
ror eax, 0x19
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
sub edx, 1
jne 0x4630c0
div dword [0x6ac870]
mov eax, dword [0x6ac874]
mov ecx, dword [eax + edx*4]
lea esi, [eax + edx*4]
test ecx, ecx
je 0x46311c
mov eax, dword [ebx + 8]
movzx edx, word [eax]
nop dword [eax]
cmp word [ecx + 4], dx
jne 0x463116
mov edi, dword [ebx + 8]
mov eax, dword [ecx + 8]
cmp eax, dword [edi + 4]
mov edi, 0
jne 0x463116
mov edi, dword [ebx + 8]
mov eax, dword [ecx + 0xc]
cmp eax, dword [edi + 8]
mov edi, 0
je 0x46314a
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4630f0
mov edx, dword [0x6ac86c]
mov eax, dword [0x6ac868]
cmp edx, eax
jb 0x463273
mov esi, 2
lea ecx, [eax + eax]
cmp eax, esi
cmovb ecx, esi
cmp ecx, edx
jae 0x463154
mov esi, 3
jmp 0x4632d0
mov esi, 1
jmp 0x4632d0
push dword [0x6ac878]
mov eax, dword [0x6ac860]
push 0x6ac860
push ecx
mov ecx, 0x6ac860
mov eax, dword [eax + 8]
call eax
mov edi, eax
test edi, edi
je 0x463292
mov al, byte [edi + 0x18]
not al
test al, 1
je 0x463292
mov ecx, dword [0x6ac874]
test ecx, ecx
je 0x463237
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [0x6ac870], edx
jbe 0x463237
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
nop dword [eax]
mov esi, dword [eax + ecx]
test esi, esi
je 0x46320a
nop word [eax + eax]
mov eax, dword [esi]
lea ecx, [esi + 4]
dec dword [0x6ac86c]
mov edx, 3
mov dword [ebp - 0x24], eax
xor eax, eax
ror eax, 0x19
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
sub edx, 1
jne 0x4631d5
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx], esi
mov esi, eax
inc dword [edi + 0xc]
test eax, eax
jne 0x4631c0
mov ecx, dword [0x6ac874]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
inc edx
add eax, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
mov dword [esi + ecx], 0
add esi, 4
mov dword [ebp - 0x20], esi
cmp edx, dword [0x6ac870]
jae 0x463237
mov ecx, dword [0x6ac874]
jmp 0x4631b0
mov eax, dword [0x6ac860]
mov ecx, 0x6ac860
push edi
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0xc]
mov ecx, dword [ebx + 8]
xor eax, eax
mov edx, 3
ror eax, 0x19
xor eax, dword [ecx]
add ecx, 4
sub edx, 1
jne 0x463258
div dword [0x6ac870]
mov eax, dword [0x6ac874]
lea esi, [eax + edx*4]
push ecx
mov ecx, dword [0x6ac864]
push 0x6ac864
call fcn.00463ba0
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x463297
lea esi, [eax + 2]
jmp 0x4632d0
mov edi, dword [ebp - 0x14]
jmp 0x4632d0
mov eax, dword [ebx + 8]
movq xmm0, qword [eax]
movq qword [edi + 4], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
inc dword [0x6ac86c]
xor esi, esi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4632e2
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.00462790
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc