Function at 0x6ebd7810
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
test ebx, ebx
je 0x6ebd7b8c
test edi, edi
je 0x6ebd7ba8
mov dword [esp], ebp
call fcn.6ebddfd0
test eax, eax
mov dword [esp + 0x18], eax
jne 0x6ebd7878
imul esi, ebp, 0x68
add esi, 0x6ec7e860
cmp dword [esi + 0x10], 0x10
jne 0x6ebd7bc4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [esi + 0x18]
test eax, eax
mov dword [esp + 0x18], eax
je 0x6ebd7884
mov eax, dword [esp + 0x18]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x20]
mov dword [esp + 4], 0x10
mov dword [esp], edi
call fcn.6ebdea30
lea edx, [ebx + 0x10a0]
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0x14], edx
mov dword [esp + 4], edx
call dword [esi + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x6ebd7878
lea ecx, [ebx + 0x10e0]
lea esi, [ebx + 0x10b0]
mov dword [esp + 4], 0x10
mov dword [esp], ecx
call fcn.6ebdea30
mov dword [esp], esi
mov dword [esp + 4], 0x10
xor esi, esi
call fcn.6ebdea30
mov dword [ebx + 0x10f0], ebp
mov dword [ebx + 0x10f8], 0
mov dword [ebx + 0x10f4], 0
mov dword [ebx + 0x10fc], 0
mov dword [ebx + 0x1100], 0
mov dword [ebx + 0x1104], 0
mov dword [ebx + 0x1108], 0
mov dword [ebx + 0x110c], 0
mov dword [esp + 4], 0x10
mov dword [esp], edi
call fcn.6ebdea30
lea eax, [ebx + 0x1110]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x14]
mov ebp, eax
mov dword [esp + 0x1c], eax
lea esi, [esi]
lea edi, [edi]
mov edx, esi
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], ebx
mov byte [esp + 0x20], dl
call fcn.6ebe1690
lea eax, [ebp + 0x10]
lea ecx, [esi + 1]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov byte [esp + 0x20], cl
call fcn.6ebe1690
lea ecx, [ebp + 0x20]
lea edx, [esi + 2]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov byte [esp + 0x20], dl
call fcn.6ebe1690
lea eax, [ebp + 0x30]
lea edx, [esi + 3]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov byte [esp + 0x20], dl
call fcn.6ebe1690
lea edx, [ebp + 0x40]
lea ecx, [esi + 4]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], edx
mov byte [esp + 0x20], cl
call fcn.6ebe1690
lea eax, [ebp + 0x50]
lea ecx, [esi + 5]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov byte [esp + 0x20], cl
call fcn.6ebe1690
lea ecx, [ebp + 0x60]
lea edx, [esi + 6]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov byte [esp + 0x20], dl
call fcn.6ebe1690
lea eax, [ebp + 0x70]
lea edx, [esi + 7]
mov dword [esp + 4], edi
mov dword [esp], ebx
add esi, 8
sub ebp, 0xffffff80
mov dword [esp + 8], eax
mov byte [esp + 0x20], dl
call fcn.6ebe1690
cmp esi, 0x100
jne 0x6ebd7960
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x1c]
lea ebp, [edi + 0x10110]
mov dword [esp + 0x1c], ebp
lea edi, [ebx + 0x1000]
lea esi, [ebx + 0x2000]
mov dword [esp + 0x14], ebx
mov eax, edi
mov ebp, dword [esp + 0x14]
add eax, 0x20
movzx ebx, byte [ebp + 0xe]
movzx ecx, byte [ebp + 0xf]
mov byte [eax - 0x11], bl
movzx edx, byte [ebp + 0xd]
add ecx, ecx
mov byte [eax - 0x12], dl
movzx ebx, byte [ebp + 0xc]
mov byte [eax - 0x13], bl
movzx edx, byte [ebp + 0xb]
mov byte [eax - 0x14], dl
movzx ebx, byte [ebp + 0xa]
mov byte [eax - 0x15], bl
movzx edx, byte [ebp + 9]
mov byte [eax - 0x16], dl
movzx ebx, byte [ebp + 8]
mov byte [eax - 0x17], bl
movzx edx, byte [ebp + 7]
mov byte [eax - 0x18], dl
movzx ebx, byte [ebp + 6]
mov byte [eax - 0x19], bl
movzx edx, byte [ebp + 5]
mov byte [eax - 0x1a], dl
movzx ebx, byte [ebp + 4]
mov byte [eax - 0x1b], bl
movzx edx, byte [ebp + 3]
mov byte [eax - 0x1c], dl
movzx ebx, byte [ebp + 2]
mov byte [eax - 0x1d], bl
movzx edx, byte [ebp + 1]
mov byte [eax - 0x1e], dl
movzx edx, byte [ecx + 0x6ec72ea0]
movzx ebx, byte [ebp]
mov byte [eax - 0x20], dl
xor bl, byte [ecx + 0x6ec72ea1]
lea ecx, [ebp + 0x10]
mov byte [eax - 0x1f], bl
movzx edx, byte [ecx + 0xe]
movzx ebp, byte [ebp + 0x1f]
mov byte [eax - 1], dl
movzx ebx, byte [ecx + 0xd]
add ebp, ebp
mov byte [eax - 2], bl
movzx edx, byte [ecx + 0xc]
mov byte [eax - 3], dl
movzx ebx, byte [ecx + 0xb]
mov byte [eax - 4], bl
movzx edx, byte [ecx + 0xa]
mov byte [eax - 5], dl
movzx ebx, byte [ecx + 9]
mov byte [eax - 6], bl
movzx edx, byte [ecx + 8]
mov byte [eax - 7], dl
movzx ebx, byte [ecx + 7]
mov byte [eax - 8], bl
movzx edx, byte [ecx + 6]
mov byte [eax - 9], dl
movzx ebx, byte [ecx + 5]
mov byte [eax - 0xa], bl
movzx edx, byte [ecx + 4]
mov byte [eax - 0xb], dl
movzx ebx, byte [ecx + 3]
mov byte [eax - 0xc], bl
movzx edx, byte [ecx + 2]
mov ebx, dword [esp + 0x14]
mov byte [eax - 0xd], dl
movzx ecx, byte [ecx + 1]
mov byte [eax - 0xe], cl
movzx ecx, byte [ebx + 0x10]
xor cl, byte [ebp + 0x6ec72ea1]
movzx edx, byte [ebp + 0x6ec72ea0]
add dword [esp + 0x14], 0x20
mov byte [eax - 0x10], dl
mov byte [eax - 0xf], cl
cmp eax, esi
jne 0x6ebd7a62
cmp dword [esp + 0x1c], edi
mov ebx, edi
jne 0x6ebd7a50
jmp 0x6ebd7878
mov dword [esp + 8], 0x23
mov dword [esp + 4], str.src_encauth_gcm_gcm_init.c
mov dword [esp], 0x6ec7214f
call fcn.6ebddf90
mov dword [esp + 8], 0x24
mov dword [esp + 4], str.src_encauth_gcm_gcm_init.c
mov dword [esp], 0x6ec7215b
call fcn.6ebddf90
mov dword [esp + 0x18], 0xa
jmp 0x6ebd7878