Function at 0x635b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0xa470b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x7c]
push edi
mov edi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
call fcn.00606990
test esi, esi
push edi
cmove esi, edi
mov dword [ebp - 0x48], esi
call fcn.00630a80
mov edi, eax
add esp, 8
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], edi
cmp eax, 0xffffffff
jne 0x635c0e
mov dword [ebp + 0x1c], edi
mov esi, dword [ebp - 0x50]
push dword [esi + 8]
call fcn.0061bc40
dec eax
and eax, 7
push esi
mov dword [ebp - 0x50], eax
call fcn.0061b610
mov ecx, dword [ebp - 0x50]
mov esi, eax
mov eax, 0xff
add esp, 8
shl eax, cl
test byte [ebx], al
je 0x635c3a
push 0x24b
push 0x9dfe88
push 0x76
push 0x77
push 4
call fcn.005edd10
add esp, 0x14
jmp 0x635eeb
cmp eax, 0xfffffffe
jne 0x635c18
mov dword [ebp + 0x1c], eax
jmp 0x635bc6
jge 0x635bc6
push 0x243
push 0x9dfe88
push 0x85
push 0x77
push 4
call fcn.005edd10
add esp, 0x14
jmp 0x635eeb
test ecx, ecx
jne 0x635c43
inc ebx
dec esi
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp + 0x1c]
add eax, 2
add eax, edi
cmp esi, eax
jge 0x635c6c
push 0x254
push 0x9dfe88
push 0x6e
push 0x77
push 4
call fcn.005edd10
add esp, 0x14
jmp 0x635eeb
cmp byte [ebx + esi - 1], 0xbc
je 0x635c90
push 0x258
push 0x9dfe88
push 0x7b
push 0x77
push 4
call fcn.005edd10
add esp, 0x14
jmp 0x635eeb
sub esi, edi
dec esi
push esi
mov dword [ebp - 0x54], esi
add ebx, esi
call fcn.00652e5f
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x635cc5
push 0x25f
push 0x9dfe88
push 0x41
push 0x77
push 4
call fcn.005edd10
add esp, 0x14
jmp 0x635eeb
push dword [ebp - 0x48]
push edi
push ebx
push esi
push eax
call fcn.00634c00
add esp, 0x14
test eax, eax
js 0x635eeb
xor ecx, ecx
mov dword [ebp - 0x48], ecx
test esi, esi
jle 0x635d75
mov edx, dword [ebp - 0x4c]
cmp esi, 0x10
jb 0x635d58
mov ecx, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x48], eax
lea eax, [ecx - 1]
add eax, esi
cmp edx, eax
ja 0x635d0b
lea eax, [edx - 1]
add eax, esi
cmp eax, ecx
jae 0x635d56
mov eax, esi
and eax, 0x8000000f
jns 0x635d19
dec eax
or eax, 0xfffffff0
inc eax
sub ecx, edx
mov dword [ebp - 0x48], esi
sub dword [ebp - 0x48], eax
mov eax, edx
mov dword [ebp - 0x68], ecx
xor ecx, ecx
mov edi, dword [ebp - 0x68]
jmp 0x635d30
movdqu xmm1, xmmword [edi + eax]
add ecx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ecx, dword [ebp - 0x48]
jl 0x635d30
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x48], ecx
jmp 0x635d58
xor ecx, ecx
cmp ecx, esi
jge 0x635d75
mov edi, dword [ebp - 0x58]
add ecx, edx
sub edi, edx
sub esi, dword [ebp - 0x48]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec esi
jne 0x635d66
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x635d91
mov ecx, 8
mov edx, 0xff
sub ecx, eax
mov eax, dword [ebp - 0x4c]
sar edx, cl
and byte [eax], dl
jmp 0x635d94
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
xor esi, esi
cmp byte [eax], 0
jne 0x635dac
lea edx, [ecx - 1]
cmp esi, edx
jge 0x635dac
inc esi
cmp byte [esi + eax], 0
je 0x635da1
mov al, byte [esi + eax]
inc esi
cmp al, 1
je 0x635dd4
push 0x270
push 0x9dfe88
push 0x86
push 0x77
push 4
call fcn.005edd10
add esp, 0x14
jmp 0x635eeb
mov edx, dword [ebp + 0x1c]
test edx, edx
js 0x635ded
mov eax, ecx
sub eax, esi
cmp eax, edx
je 0x635ded
push 0x274
jmp 0x635c1f
push 0
push dword [ebp - 0x6c]
lea eax, [ebp - 0x7c]
push eax
call fcn.00606730
add esp, 0xc
test eax, eax
je 0x635eeb
push 8
lea eax, [ebp - 0x7c]
push 0x9dfe80
push eax
call fcn.006067b0
add esp, 0xc
test eax, eax
je 0x635eeb
push edi
push dword [ebp - 0x64]
lea eax, [ebp - 0x7c]
push eax
call fcn.006067b0
add esp, 0xc
test eax, eax
je 0x635eeb
mov eax, dword [ebp - 0x54]
sub eax, esi
je 0x635e5b
push eax
mov eax, dword [ebp - 0x4c]
add eax, esi
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.006067b0
add esp, 0xc
test eax, eax
je 0x635eeb
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.006066f0
add esp, 0xc
test eax, eax
je 0x635eeb
lea ecx, [ebp - 0x44]
sub edi, 4
jb 0x635e91
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x635e96
add ecx, 4
add ebx, 4
sub edi, 4
jae 0x635e80
cmp edi, 0xfffffffc
je 0x635ee4
mov al, byte [ecx]
cmp al, byte [ebx]
jne 0x635ec3
cmp edi, 0xfffffffd
je 0x635ee4
mov al, byte [ecx + 1]
cmp al, byte [ebx + 1]
jne 0x635ec3
cmp edi, 0xfffffffe
je 0x635ee4
mov al, byte [ecx + 2]
cmp al, byte [ebx + 2]
jne 0x635ec3
cmp edi, 0xffffffff
je 0x635ee4
mov al, byte [ecx + 3]
cmp al, byte [ebx + 3]
je 0x635ee4
push 0x285
push 0x9dfe88
push 0x68
push 0x77
push 4
call fcn.005edd10
add esp, 0x14
mov dword [ebp - 0x5c], 0
jmp 0x635eeb
mov dword [ebp - 0x5c], 1
push dword [ebp - 0x4c]
call fcn.00652e27
lea eax, [ebp - 0x7c]
push eax
call fcn.006067d0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x5c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00654228
mov esp, ebp
pop ebp
ret