Function at 0x634e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0xa470b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x60], 0
push edi
test eax, eax
jne 0x634e67
call fcn.006064f0
mov dword [ebp - 0x4c], eax
test esi, esi
push eax
cmove esi, eax
mov dword [ebp - 0x5c], esi
call fcn.00630a80
mov edi, dword [ebp + 0xc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x64], esi
lea edx, [esi + esi]
lea ecx, [edx + 2]
cmp edi, ecx
jae 0x634eb5
push 0x188
push 0x9dfe88
push 0x7a
push 0x6b
push 4
call fcn.005edd10
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00654228
mov esp, ebp
pop ebp
ret
dec edi
mov eax, edi
sub eax, edx
mov dword [ebp - 0x68], eax
dec eax
cmp ebx, eax
jbe 0x634eed
push 0x18f
push 0x9dfe88
push 0x6f
push 0x6b
push 4
call fcn.005edd10
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00654228
mov esp, ebp
pop ebp
ret
lea eax, [edx + 1]
cmp edi, eax
jae 0x634efb
push 0x195
jmp 0x634e8f
mov eax, dword [ebp - 0x58]
push 0
push dword [ebp - 0x4c]
lea ebx, [eax + 1]
mov byte [eax], 0
inc eax
mov dword [ebp - 0x58], ebx
add eax, esi
push 0
push eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x6c]
call fcn.006065c0
add esp, 0x18
test eax, eax
je 0x634ea2
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x48]
dec eax
push eax
mov eax, dword [ebp - 0x50]
add eax, esi
push 0
push eax
call fcn.00655430
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
sub eax, ecx
sub eax, esi
push ecx
push dword [ebp - 0x54]
add eax, edi
push eax
mov byte [eax - 1], 1
call fcn.00654750
push esi
push ebx
call fcn.00613f70
add esp, 0x20
test eax, eax
je 0x634ea2
sub edi, esi
push edi
call fcn.00652e5f
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x634f8f
push 0x1aa
push 0x9dfe88
push 0x41
jmp 0x634e96
push dword [ebp - 0x5c]
push esi
push ebx
push edi
push eax
call fcn.00634c00
add esp, 0x14
test eax, eax
js 0x6350c3
xor edx, edx
test edi, edi
je 0x635035
mov ecx, dword [ebp - 0x50]
cmp edi, 0x10
jb 0x635011
lea eax, [ecx - 1]
add eax, edi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
dec eax
add eax, edi
cmp ecx, eax
ja 0x634fd2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x54], eax
jae 0x635014
mov esi, dword [ebp - 0x48]
mov eax, edi
and eax, 0xf
mov dword [ebp - 0x4c], edi
sub dword [ebp - 0x4c], eax
sub esi, ecx
mov dword [ebp - 0x54], esi
mov eax, ecx
mov esi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x54]
lea ecx, [ecx]
movdqu xmm1, xmmword [ebx + eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, dword [ebp - 0x4c]
jb 0x634ff0
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x48]
cmp edx, edi
jae 0x635035
mov esi, eax
mov ebx, edi
sub esi, dword [ebp - 0x50]
add ecx, edx
sub ebx, edx
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec ebx
jne 0x635023
mov esi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x58]
push dword [ebp - 0x5c]
lea eax, [ebp - 0x44]
push edi
push dword [ebp - 0x50]
push esi
push eax
call fcn.00634c00
add esp, 0x14
test eax, eax
js 0x6350c3
xor edx, edx
test esi, esi
je 0x6350bc
cmp esi, 0x10
jb 0x63509d
lea ecx, [ebx - 1]
lea eax, [ebp + esi - 0x45]
add ecx, esi
cmp ebx, eax
ja 0x63506c
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x63509d
mov eax, esi
lea edi, [ebp - 0x44]
and eax, 0xf
mov ecx, esi
sub ecx, eax
mov eax, ebx
sub edi, ebx
lea esp, [esp]
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [edi + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x635080
cmp edx, esi
jae 0x6350bc
lea edi, [ebp - 0x44]
sub edi, ebx
lea ecx, [edx + ebx]
sub esi, edx
jmp 0x6350b0
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec esi
jne 0x6350b0
mov dword [ebp - 0x60], 1
push dword [ebp - 0x48]
call fcn.00652e27
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x60]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00654228
mov esp, ebp
pop ebp
ret