Function at 0x6ebc36a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x7c
mov dword [esp + 0x38], edx
call fcn.6ebc2f50
test eax, eax
je 0x6ebc3846
cmp dword [eax + 0x10], 0x6f2d728b
mov esi, eax
lea ecx, [eax + 0x10]
je 0x6ebc3850
lea edx, [eax + 0x23b8]
mov eax, ecx
jmp 0x6ebc36e8
cmp dword [eax], 0x6f2d728b
je 0x6ebc36f7
add eax, 1
cmp edx, eax
ja 0x6ebc36e0
cmp ecx, eax
jne 0x6ebc3997
mov ecx, dword [eax + 0x2c]
lea ebp, [eax + 0x40]
test ecx, ecx
jne 0x6ebc3830
mov edi, dword [eax + 0x38]
lea eax, [ebx + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x6c]
add edi, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x20]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x18]
add eax, edi
mov dword [esp], eax
call fcn.6ebe0920
test eax, eax
jne 0x6ebc3abe
mov eax, dword [esp + 0x6c]
mov ebp, dword [ebx + 0x60]
test eax, eax
je 0x6ebc3b01
mov eax, dword [edi + 8]
add eax, edi
movzx edx, byte [eax]
and edx, 3
cmp dl, 2
jne 0x6ebc3a77
mov ecx, dword [esp + 0x38]
add eax, 0x20
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.6ec668a0
test eax, eax
jne 0x6ebc3a30
test ebp, ebp
je 0x6ebc37a3
mov dword [esp], ebp
call fcn.6ec66918
mov ebp, dword [edi + 0xc]
mov dword [esp], ebp
call fcn.6ec668f0
test eax, eax
mov dword [ebx + 0x60], eax
je 0x6ebc3b46
mov edx, dword [edi + 8]
mov dword [esp + 8], ebp
mov dword [esp], eax
add edx, edi
mov dword [esp + 4], edx
call fcn.6ec668e0
mov ebp, dword [edi + 0x14]
test ebp, ebp
je 0x6ebc380d
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x6ebc37e7
mov dword [esp], eax
call fcn.6ec66918
mov ebp, dword [edi + 0x14]
mov dword [esp], ebp
call fcn.6ec668f0
test eax, eax
mov dword [ebx + 0x68], eax
je 0x6ebc3bc8
add edi, dword [edi + 0x10]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.6ec668e0
mov eax, dword [esi]
cmp eax, 0x3fffffff
je 0x6ebc381f
sub eax, 1
test eax, eax
mov dword [esi], eax
je 0x6ebc3861
xor eax, eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [eax + 0x28]
lea edi, [ebp + ecx]
mov dword [esp + 0x3c], ecx
cmp byte [edi], 1
je 0x6ebc3870
jbe 0x6ebc3705
mov eax, 0xffffffff
jmp 0x6ebc3821
mov eax, ecx
mov ecx, dword [eax + 0x2c]
lea ebp, [eax + 0x40]
test ecx, ecx
jne 0x6ebc3830
jmp 0x6ebc3705
mov dword [esp], esi
call dword [0x6ec83984]
jmp 0x6ebc381f
lea ecx, [edi + 4]
mov dword [esp + 0x54], ecx
movzx ecx, byte [edi + 2]
shl ecx, 8
mov edx, ecx
movzx ecx, byte [edi + 3]
shl ecx, 0x10
or ecx, edx
movzx edx, byte [edi + 1]
or ecx, edx
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x30]
lea edx, [ebp + ecx]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x40]
sub edx, 1
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x40]
test edx, edx
je 0x6ebc3705
mov edx, dword [esp + 0x3c]
add edx, 0x44
mov dword [esp + 0x5c], edx
add edx, eax
mov dword [esp + 0x4c], edx
lea edx, [ecx + 0x40]
add ecx, 0x44
mov dword [esp + 0x58], edx
add edx, eax
cmp dword [esp + 0x5c], ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x3c]
setge cl
add edx, 0x48
cmp dword [esp + 0x58], edx
setge dl
or edx, ecx
mov ecx, dword [esp + 0x48]
or ecx, dword [esp + 0x4c]
and ecx, 3
sete cl
test dl, cl
je 0x6ebc3a02
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jbe 0x6ebc3a02
cmp dword [esp + 0x44], 2
jbe 0x6ebc3960
sub ecx, 4
mov dword [esp + 0x3c], esi
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
shr ecx, 2
xor edx, edx
add ecx, 1
mov dword [esp + 0x58], eax
mov eax, dword [edi + edx*4]
xor dword [esi + edx*4], eax
add edx, 1
cmp ecx, edx
ja 0x6ebc3932
shl ecx, 2
add dword [esp + 0x54], ecx
add dword [esp + 0x50], ecx
sub dword [esp + 0x44], ecx
cmp dword [esp + 0x40], ecx
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x58]
je 0x6ebc3705
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
movzx edx, byte [ecx]
xor byte [edi], dl
mov edx, dword [esp + 0x44]
test edx, edx
je 0x6ebc3705
movzx edx, byte [ecx + 1]
xor byte [edi + 1], dl
cmp dword [esp + 0x44], 1
je 0x6ebc3705
movzx edx, byte [ecx + 2]
xor byte [edi + 2], dl
jmp 0x6ebc3705
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x6ebc3bb7
movzx eax, byte [eax]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6ebc3c12
mov edx, 4
mov eax, ebx
call fcn.6ebc1410
cmp esi, 1
je 0x6ebc3baa
mov edx, dword [0x6ec836f0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29ea
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str._s___d:_d_
mov dword [esp], edx
call dword [0x6ec836ac]
mov eax, 0xffffffff
jmp 0x6ebc3821
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
xor edx, edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], ebx
movzx ebx, byte [edi + edx + 4]
xor byte [ecx + edx], bl
add edx, 1
cmp eax, edx
jne 0x6ebc3a14
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
jmp 0x6ebc3705
test ebp, ebp
je 0x6ebc3b88
movzx eax, byte [ebp]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6ebc3c12
mov edx, 4
mov eax, ebx
call fcn.6ebc1410
cmp esi, 1
je 0x6ebc3b6e
mov edx, dword [0x6ec836f0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x2a08
jmp 0x6ebc39db
test ebp, ebp
je 0x6ebc3b99
movzx eax, byte [ebp]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6ebc3c12
mov edx, 4
mov eax, ebx
call fcn.6ebc1410
cmp esi, 1
je 0x6ebc3b7b
mov edx, dword [0x6ec836f0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x2a04
jmp 0x6ebc39db
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x6ebc3c03
movzx ebx, byte [edx]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x6ebc3c12
mov dword [esp], eax
call fcn.6ebdea10
cmp ebx, 1
je 0x6ebc3bda
mov edx, dword [0x6ec836f0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29fc
jmp 0x6ebc39db
test ebp, ebp
je 0x6ebc3bf4
movzx ebx, byte [ebp]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x6ebc3c12
mov dword [esp], 1
call fcn.6ebdea10
cmp ebx, 1
je 0x6ebc3be7
mov edx, dword [0x6ec836f0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29ff
jmp 0x6ebc39db
mov esi, dword [0x6ec83aac]
call esi
mov ecx, 0x10028dd
mov edx, dword [eax]
mov eax, ebx
call fcn.6ebc79f0
call esi
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x6ebc3821
mov edx, dword [0x6ec836fc]
mov edx, dword [edx]
jmp 0x6ebc3a6a
mov edx, dword [0x6ec836fc]
mov edx, dword [edx]
jmp 0x6ebc3ab1
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6ebc3a44
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6ebc3a8b
mov edx, dword [0x6ec836fc]
mov edx, dword [edx]
jmp 0x6ebc39d3
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6ebc39ad
mov esi, dword [0x6ec83aac]
call esi
mov ecx, 0x10028ce
jmp 0x6ebc3b53
mov edx, dword [0x6ec836fc]
mov edx, dword [edx]
jmp 0x6ebc3af4
mov edx, dword [0x6ec836fc]
mov edx, dword [edx]
jmp 0x6ebc3b39
movzx ebx, byte [ebx + 8]
shr bl, 5
and ebx, 3
jmp 0x6ebc3b13
movzx ebx, byte [ebx + 8]
shr bl, 5
and ebx, 3
jmp 0x6ebc3ad2
mov dword [esp], 1
call fcn.6ec66938
nop