Function at 0xf3a2d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x140
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x1c]
mov dword [eax], 0
push esi
call fcn.00f3a2b4
add esp, 4
mov ebx, eax
test eax, eax
jne 0xf3a5ea
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov ebx, 0x20012
mov eax, ecx
and ecx, 7
shr eax, 3
cmp ecx, 1
sbb eax, 0xffffffff
cmp eax, edx
jb 0xf3a5ea
cmp eax, dword [ebp + 0x14]
jne 0xf3a5ea
imul edi, esi, 0x64
mov ecx, edx
mov edx, dword [edi + 0x11e66dc]
mov dword [esp + 0x14], edi
lea ecx, [ecx + edx + 2]
cmp eax, ecx
jb 0xf3a5ea
mov edi, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
push edi
call fcn.00dbf520
add esp, 4
mov ebx, eax
push edi
call fcn.00dbf520
add esp, 4
mov dword [esp + 8], eax
push edi
call fcn.00dbf520
add esp, 4
mov dword [esp + 0x18], eax
push edi
call fcn.00dbf520
add esp, 4
test ebx, ebx
je 0xf3a396
cmp dword [esp + 8], 0
je 0xf3a396
cmp dword [esp + 0x18], 0
je 0xf3a396
test eax, eax
jne 0xf3a3da
mov edi, eax
test ebx, ebx
je 0xf3a3a5
push ebx
call fcn.00dbfc80
add esp, 4
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x18]
test eax, eax
je 0xf3a3ba
push eax
call fcn.00dbfc80
add esp, 4
test esi, esi
je 0xf3a3c7
push esi
call fcn.00dbfc80
add esp, 4
mov ebx, 0xc
test edi, edi
je 0xf3a5ea
push edi
jmp 0xf3a5e2
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x10], ebx
cmp byte [ecx + edi - 1], 0xbc
je 0xf3a3f2
mov ebx, 0x20005
jmp 0xf3a5bd
mov ebx, dword [esp + 0xc]
not ebx
add ebx, edi
push ebx
push ecx
push dword [esp + 0x18]
mov dword [esp + 0x10], eax
call fcn.00dcc890
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], ebx
lea eax, [eax + ebx]
push dword [esp + 0xc]
push eax
push dword [esp + 0xc]
call fcn.00dcc890
add esp, 0xc
mov edx, edi
xor edi, edi
mov eax, dword [ebp + 0x10]
mov ebx, 0xff
inc edi
mov ecx, edi
sub ecx, dword [ebp + 0x20]
movzx eax, byte [eax]
lea ecx, [ecx + edx*8]
mov edx, 0xffffff00
shr ebx, cl
sar edx, cl
test edx, eax
je 0xf3a456
mov ebx, 0x20005
jmp 0xf3a5b9
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
push dword [esp + 0x20]
push dword [esp + 0xc]
push dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push edi
push esi
call fcn.010161e8
add esp, 0x14
mov ebx, eax
test eax, eax
mov eax, edi
jne 0xf3a5bd
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 8]
test ebx, ebx
je 0xf3a4a1
xor eax, eax
mov cl, byte [esi + eax]
xor byte [edx + eax], cl
inc eax
cmp eax, ebx
jne 0xf3a496
mov eax, 0xfffffffe
mov ebx, dword [esp + 0x24]
sub eax, dword [ebp + 0x18]
and bl, byte [edx]
add eax, dword [ebp + 0x14]
mov byte [edx], bl
sub eax, dword [esp + 0xc]
je 0xf3a4de
test bl, bl
jne 0xf3a44c
xor esi, esi
mov bl, byte [edx + esi + 1]
lea ecx, [esi + 1]
cmp ecx, eax
jae 0xf3a4d7
test bl, bl
mov esi, ecx
jne 0xf3a44c
jmp 0xf3a4c0
add esi, 2
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 4]
cmp bl, 1
mov ebx, 0x20005
jne 0xf3a5bd
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
call dword [eax + 0x11e6728]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0xf3a5bd
mov esi, 8
push esi
mov ebx, dword [esp + 0xc]
push ebx
call fcn.00dcde50
add esp, 8
push esi
lea esi, [esp + 0x2c]
push ebx
push esi
mov eax, dword [esp + 0x20]
call dword [eax + 0x11e672c]
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0xf3a5bd
mov eax, dword [esp + 0x14]
lea edi, [eax + 0x11e672c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [edi]
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0xf3a5bd
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x1c]
push dword [ebp + 0x18]
push eax
push esi
call dword [edi]
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0xf3a5bd
push dword [esp + 8]
push esi
mov eax, dword [esp + 0x1c]
call dword [eax + 0x11e6730]
add esp, 8
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0xf3a5bd
push dword [esp + 0xc]
push eax
push dword [esp + 0x10]
call fcn.00dccee0
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0xf3a5b9
mov eax, dword [ebp + 0x24]
mov dword [eax], 1
mov eax, dword [esp + 4]
push eax
call fcn.00dbfc80
add esp, 4
push dword [esp + 0x18]
call fcn.00dbfc80
add esp, 4
push dword [esp + 8]
call fcn.00dbfc80
add esp, 4
push dword [esp + 0x10]
call fcn.00dbfc80
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret