Function at 0x94a330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0xbcbae0]
mov esi, dword [ebp + 0x1c]
xor eax, ebp
mov dword [esp + 0x130], eax
push esi
call fcn.00948e30
add esp, 4
mov edi, eax
test eax, eax
jne 0x94a636
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x94a383
push dword [ebp + 0x18]
mov edi, edx
call fcn.00948ec0
mov edx, edi
add esp, 4
mov edi, eax
test eax, eax
jne 0x94a636
mov eax, dword [ebp + 0x20]
mov edi, 0x20012
mov ebx, eax
and eax, 7
shr ebx, 3
cmp eax, 1
sbb ebx, 0xffffffff
mov eax, ebx
sub eax, edx
jb 0x94a636
mov dword [esp + 0x1c], eax
imul eax, esi, 0x64
mov ecx, dword [eax + 0xc20394]
mov dword [esp + 4], eax
lea eax, [edx + ecx + 2]
cmp ebx, eax
jb 0x94a636
mov dword [esp + 0x14], ecx
push ebx
call fcn.004eafd7
add esp, 4
mov dword [esp], eax
push ebx
call fcn.004eafd7
add esp, 4
mov edi, eax
push ebx
call fcn.004eafd7
add esp, 4
mov dword [esp + 8], eax
push ebx
call fcn.004eafd7
mov ecx, dword [esp + 4]
add esp, 4
test ecx, ecx
je 0x94a408
test edi, edi
je 0x94a408
cmp dword [esp + 8], 0
je 0x94a408
test eax, eax
jne 0x94a452
test ecx, ecx
je 0x94a419
push ecx
mov esi, eax
call fcn.004eb998
mov eax, esi
add esp, 4
mov esi, dword [esp + 8]
test edi, edi
je 0x94a42e
push edi
mov edi, eax
call fcn.004eb998
mov eax, edi
add esp, 4
test esi, esi
je 0x94a43f
push esi
mov esi, eax
call fcn.004eb998
mov eax, esi
add esp, 4
mov edi, 0xc
test eax, eax
je 0x94a636
push eax
jmp 0x94a62e
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
test ecx, ecx
je 0x94a484
imul eax, dword [ebp + 0x18], 0x2c
push dword [ebp + 0x14]
push ecx
push dword [esp + 0x10]
call dword [eax + 0xc21b24]
add esp, 0xc
cmp eax, dword [ebp + 0x10]
mov edi, 0x20007
jne 0x94a607
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 8]
call dword [eax + 0xc203e0]
add esp, 4
mov edi, eax
test eax, eax
jne 0x94a607
push 8
mov edi, dword [esp + 4]
push edi
call fcn.0097f670
add esp, 8
push 8
push edi
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x10]
call dword [eax + 0xc203e4]
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x94a607
mov eax, dword [esp + 4]
lea ecx, [eax + 0xc203e4]
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x24], ecx
call dword [ecx]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x94a607
push ecx
push dword [esp + 0xc]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
call dword [eax]
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x94a607
push dword [esp + 0xc]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0xc]
call dword [eax + 0xc203e8]
add esp, 8
mov edi, eax
test eax, eax
jne 0x94a607
mov edi, dword [esp + 0x1c]
sub edi, dword [esp + 0x14]
lea eax, [edi - 2]
push eax
push 0
push dword [esp + 8]
call fcn.0097bba0
add esp, 0xc
mov eax, dword [esp]
mov byte [eax + edi - 2], 1
lea eax, [eax + edi - 1]
push dword [ebp + 0x10]
push dword [esp + 0xc]
push eax
call fcn.0097cbc0
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, eax
not ecx
add ecx, ebx
mov dword [esp + 4], ecx
push ecx
push dword [esp + 0x14]
push eax
push dword [esp + 0x18]
push esi
call fcn.0094cf40
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x94a607
mov esi, dword [esp + 4]
mov edx, dword [esp]
mov edi, dword [esp + 0x10]
test esi, esi
je 0x94a5b0
xor eax, eax
movzx ecx, byte [edi + eax]
xor byte [edx + eax], cl
inc eax
cmp eax, esi
jne 0x94a5a4
mov ecx, dword [ebp + 0x28]
cmp dword [ecx], ebx
jae 0x94a5c3
mov eax, dword [ebp + 0x28]
mov edi, 0x20004
mov dword [eax], ebx
jmp 0x94a607
mov edi, dword [ebp + 0x24]
push esi
push dword [esp + 4]
push edi
call fcn.0097cbc0
add esp, 0xc
add esi, edi
push dword [esp + 0x14]
push dword [esp + 0x10]
push esi
call fcn.0097cbc0
add esp, 0xc
mov eax, 1
mov byte [edi + ebx - 1], 0xbc
sub eax, dword [ebp + 0x20]
lea ecx, [eax + ebx*8]
mov eax, 0xff
shr eax, cl
mov ecx, dword [ebp + 0x28]
and byte [edi], al
xor edi, edi
mov dword [ecx], ebx
push dword [esp + 0xc]
call fcn.004eb998
add esp, 4
push dword [esp + 8]
call fcn.004eb998
add esp, 4
push dword [esp + 0x10]
call fcn.004eb998
add esp, 4
push dword [esp]
call fcn.004eb998
add esp, 4
mov ecx, dword [esp + 0x130]
xor ecx, ebp
call fcn.00980459
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret