Function at 0x6350f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], 0
test eax, eax
push ecx
cmove eax, ecx
mov dword [ebp + 0x18], eax
call fcn.00630a80
mov esi, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
jne 0x635163
mov esi, eax
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 8]
call fcn.006218c0
add esp, 4
test eax, eax
je 0x635199
push 0x2b3
push 0x9dfe88
push 0x75
push 0x6c
push 4
call fcn.005edd10
add esp, 0x14
pop ebx
push edi
call fcn.00652e27
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xfffffffe
jne 0x63516a
jmp 0x635125
jge 0x635125
push 0x2ad
push 0x9dfe88
push 0x85
push 0x6c
push 4
call fcn.005edd10
add esp, 0x14
push edi
call fcn.00652e27
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebx + 8]
call fcn.0061bc40
dec eax
and eax, 7
push ebx
mov dword [ebp - 0xc], eax
call fcn.0061b610
mov ebx, dword [ebp + 0xc]
add esp, 8
mov edx, eax
mov dword [ebp + 0x1c], edx
cmp dword [ebp - 0xc], edi
jne 0x6351c6
mov byte [ebx], 0
inc ebx
dec edx
mov dword [ebp + 0x1c], edx
cmp esi, 0xfffffffe
jne 0x635225
mov ecx, dword [ebp - 4]
lea eax, [ecx + 2]
cmp edx, eax
jae 0x6351dc
push 0x2c1
jmp 0x635236
mov esi, edx
sub esi, ecx
sub esi, 2
test esi, esi
jle 0x635271
push esi
call fcn.00652e5f
mov edi, eax
add esp, 4
test edi, edi
jne 0x63525c
push 0x2ce
push 0x9dfe88
push 0x41
push 0x6c
push 4
call fcn.005edd10
add esp, 0x14
pop ebx
push edi
call fcn.00652e27
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
add eax, 2
add eax, esi
cmp edx, eax
jae 0x6351e3
push 0x2c7
push 0x9dfe88
push 0x6f
push 0x6c
push 4
call fcn.005edd10
add esp, 0x14
pop ebx
push edi
call fcn.00652e27
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.00613f70
add esp, 8
test eax, eax
je 0x6353c5
mov edx, dword [ebp + 0x1c]
mov eax, edx
sub eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
dec eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00606990
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push eax
call fcn.00606730
add esp, 0x10
test eax, eax
je 0x6353c5
push 8
lea eax, [ebp - 0x24]
push 0x9dfe80
push eax
call fcn.006067b0
add esp, 0xc
test eax, eax
je 0x6353c5
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push dword [ebp + 0x10]
push eax
call fcn.006067b0
add esp, 0xc
test eax, eax
je 0x6353c5
test esi, esi
je 0x6352ee
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.006067b0
add esp, 0xc
test eax, eax
je 0x6353c5
mov eax, dword [ebp - 8]
add eax, ebx
push 0
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.006066f0
add esp, 0xc
test eax, eax
je 0x6353c5
lea eax, [ebp - 0x24]
push eax
call fcn.006067d0
push dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
push dword [ebp - 4]
lea eax, [ecx + ebx]
push eax
push ecx
push ebx
call fcn.00634c00
add esp, 0x18
test eax, eax
jne 0x6353c5
mov ecx, dword [ebp - 0x14]
sub ecx, esi
add ecx, ebx
xor byte [ecx - 2], 1
dec ecx
test esi, esi
jle 0x63539f
xor edx, edx
cmp esi, 0x10
jb 0x63538d
lea eax, [edi - 1]
add eax, esi
cmp ecx, eax
ja 0x63535b
lea eax, [ecx - 1]
add eax, esi
cmp eax, edi
jae 0x63538d
mov eax, esi
and eax, 0x8000000f
jns 0x635369
dec eax
or eax, 0xfffffff0
inc eax
mov dword [ebp + 0x18], esi
sub dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
movdqu xmm1, xmmword [edx + edi]
add edx, 0x10
movdqu xmm0, xmmword [ecx]
pxor xmm1, xmm0
movdqu xmmword [ecx], xmm1
add ecx, 0x10
cmp edx, eax
jl 0x635372
cmp edx, esi
jge 0x63539f
mov al, byte [edx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, esi
jl 0x635391
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x6353b6
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebx], al
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], 1
mov byte [eax + ebx - 1], 0xbc
pop ebx
push edi
call fcn.00652e27
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret