Function at 0x61c540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x7adbc0]
movzx ecx, byte [esi + 0x1a5]
xor eax, ebp
and ecx, 0x20
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
shr ecx, 5
je 0x61c64f
lea ecx, [edx - 5]
cmp ecx, 0xc
ja 0x61c62b
mov edx, dword [ebp + 0x10]
mov esi, edx
shr esi, 0x1f
add esi, edx
sar esi, 1
test esi, esi
jle 0x61c609
mov edi, esi
shr edi, 1
je 0x61c802
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], eax
lea ebx, [edx + eax]
xor edx, edx
mov esi, dword [ebp - 0x14]
movzx eax, byte [edx + ebx - 1]
movzx edi, byte [esi + ecx*2]
xor edi, eax
mov byte [esi + ecx*2], al
mov eax, edi
xor byte [edx + ebx - 1], al
movzx eax, byte [edx + ebx - 2]
movzx edi, byte [esi + ecx*2 + 1]
xor edi, eax
mov byte [esi + ecx*2 + 1], al
inc ecx
mov eax, edi
xor byte [edx + ebx - 2], al
add edx, 0xfffffffe
cmp ecx, dword [ebp - 0x20]
jb 0x61c5aa
mov esi, dword [ebp - 0x24]
lea ecx, [ecx + ecx + 1]
mov eax, dword [ebp - 0x14]
lea edx, [ecx - 1]
cmp edx, esi
jae 0x61c609
mov esi, dword [ebp + 0x10]
movzx ebx, byte [ecx + eax - 1]
lea edi, [esi + eax]
sub edi, ecx
movzx edx, byte [edi]
xor ebx, edx
mov byte [ecx + eax - 1], dl
xor byte [edi], bl
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x61c7fd
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movsx esi, byte [esi + 0x190]
lea ecx, [edx - 0x19]
cmp ecx, 6
jbe 0x61c682
lea ecx, [edx - 0x32]
cmp ecx, 2
jbe 0x61c682
lea ecx, [edx - 0x28]
cmp ecx, 8
jbe 0x61c682
jmp 0x61c7df
movsx esi, byte [esi + 0x190]
lea edi, [edx - 0x19]
cmp edi, 6
jbe 0x61c740
lea edi, [edx - 0x32]
cmp edi, 2
jbe 0x61c740
lea edi, [edx - 0x28]
cmp edi, 8
ja 0x61c7df
test ecx, ecx
je 0x61c740
test esi, esi
je 0x61c6a1
lea ecx, [edx - 0x32]
test ecx, 0xfffffffd
jne 0x61c740
lea ecx, [esi - 3]
cmp ecx, 1
ja 0x61c740
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 0x1f
add ecx, edi
sar ecx, 1
test ecx, ecx
jle 0x61c740
mov edx, ecx
shr edx, 1
mov dword [ebp - 0x18], edx
je 0x61c822
mov edi, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
add edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
mov ebx, edx
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
movzx eax, byte [ebx + edi - 1]
movzx ecx, byte [esi + edx*2]
xor ecx, eax
mov byte [esi + edx*2], al
xor byte [ebx + edi - 1], cl
movzx eax, byte [ebx + edi - 2]
movzx ecx, byte [esi + edx*2 + 1]
xor ecx, eax
mov byte [esi + edx*2 + 1], al
inc edx
xor byte [ebx + edi - 2], cl
add ebx, 0xfffffffe
cmp edx, dword [ebp - 0x18]
jb 0x61c6d7
mov ecx, dword [ebp - 0x24]
lea edx, [edx + edx + 1]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
lea edi, [edx - 1]
cmp edi, ecx
jae 0x61c73d
mov edi, dword [ebp + 0x10]
movzx ebx, byte [eax + edx - 1]
add edi, eax
sub edi, edx
movzx ecx, byte [edi]
xor ebx, ecx
mov byte [eax + edx - 1], cl
xor byte [edi], bl
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 8]
mov ecx, dword [edx*4 + 0x74a99c]
cmp ecx, 0xffffffff
je 0x61c80c
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov ecx, dword [ecx + esi*4 + 0x74aa80]
test ecx, ecx
je 0x61c7df
lea edx, [ebp - 0x24]
push edx
push 0
push eax
call ecx
add esp, 0xc
test eax, eax
jne 0x61c7be
cmp dword [ebp + 0x10], 4
jne 0x61c786
mov edx, dword [ebx]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
jmp 0x61c7df
cmp dword [ebp + 0x10], 8
jne 0x61c79d
mov edx, dword [ebx]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 4], ecx
jmp 0x61c7df
mov edx, dword [ebx]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov esi, dword [ebx]
mov ecx, dword [ebp - 0x20]
mov dword [esi + 4], ecx
mov eax, dword [ebx]
mov edi, dword [ebp - 0x1c]
mov dword [eax + 8], edi
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [eax + 0xc], ebx
jmp 0x61c7df
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x61c7fd
mov eax, 0x5f
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x61c7fd
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.00693023
mov ecx, 1
jmp 0x61c5ea
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x61c7fd
jmp 0x61c7d2
mov edx, 1
jmp 0x61c71c