Function at 0x100254f0
Capabilities:
Encode data using xor

Disassembly:
add dword [esp + 4], 0x10
jmp 0x100254f0
sub esp, 0x40
mov eax, dword [0x1007b6c0]
xor eax, esp
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
xor ebp, ebp
mov dword [esp + 0x24], ebx
push esi
mov esi, dword [esp + 0x60]
mov dword [edx], ebp
cmp dword [ebx], 1
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
je 0x10025558
mov esi, 0xb
push esi
call fcn.10051300
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10052dd6
add esp, 0x40
ret
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x68]
add eax, 7
shr eax, 3
lea edx, [eax*2 + 1]
lea eax, [edx + 0x14]
mov dword [esp + 0x24], edx
cmp edi, eax
ja 0x1002557e
mov esi, 5
jmp 0x1002553c
sub edi, edx
lea eax, [esi + edx]
sub edi, 0x14
mov dword [esp + 0x14], eax
add eax, edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x34], eax
test ecx, ecx
jne 0x100255b3
mov eax, dword [esp + 0x28]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10052dd6
add esp, 0x40
ret
cmp dword [esp + 0x60], edi
jae 0x100255c3
mov esi, 0xa
jmp 0x1002553c
push dword [esp + 0x18]
call fcn.10051e40
mov esi, eax
add esp, 4
test esi, esi
jne 0x100257d0
push esi
push dword [ebx + 4]
lea eax, [ebx + 0x24]
push eax
push dword [ebx + 0x20]
lea eax, [ebx + 0x2c]
push esi
push esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push eax
push dword [ebx + 0x7c]
call fcn.10008b60
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x100257d0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x24]
add eax, 7
shr eax, 3
cmp ecx, eax
je 0x10025627
mov esi, 0xf
jmp 0x100257d0
mov eax, 1
cmp ecx, eax
jbe 0x1002563e
mov edx, dword [ebx + 0x20]
cmp byte [edx + eax], 0
jne 0x1002563e
inc eax
cmp eax, ecx
jb 0x10025633
cmp eax, ecx
jb 0x1002564c
mov esi, 0xf
jmp 0x100257d0
push edi
push dword [ebx + 0x7c]
call fcn.10050640
mov ebp, eax
add esp, 8
mov dword [esp + 0x30], ebp
test ebp, ebp
jne 0x1002566a
lea esi, [eax + 0x10]
jmp 0x100257d0
push edi
push ebp
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x7c]
call fcn.10036e60
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x100257d0
xor edx, edx
test edi, edi
je 0x1002574a
cmp edi, 0x10
jb 0x10025719
mov ecx, dword [esp + 0x1c]
lea eax, [edi - 1]
add eax, ebp
cmp ecx, eax
ja 0x100256b0
lea eax, [ecx - 1]
add eax, edi
cmp eax, ebp
jae 0x10025719
mov eax, dword [esp + 0x14]
dec eax
add eax, edi
cmp ecx, eax
ja 0x100256c6
lea eax, [ecx - 1]
add eax, edi
cmp eax, dword [esp + 0x14]
jae 0x10025719
mov ebx, dword [esp + 0x14]
mov eax, edi
sub ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ecx
and eax, 0xf
sub dword [esp + 0x18], eax
mov ecx, ebp
sub ecx, ebx
mov eax, ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
movdqu xmm1, xmmword [edi + eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [ebx + eax - 0x10], xmm1
cmp edx, ecx
jb 0x100256f3
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x2c]
cmp edx, edi
jae 0x1002574a
mov ebx, dword [esp + 0x14]
lea ecx, [edx + ebp]
sub dword [esp + 0x1c], ebp
sub ebx, ebp
mov ebp, edi
sub ebp, edx
mov edx, dword [esp + 0x1c]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [edx + ecx - 1], al
dec ebp
jne 0x10025732
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
push dword [ebx + 0x7c]
call fcn.10037270
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10037120
add esp, 0xc
test eax, eax
je 0x10025771
mov esi, 0x10
jmp 0x100257d0
push dword [esp + 0x10]
call fcn.100371e0
add esp, 4
test eax, eax
je 0x10025788
mov esi, 0x10
jmp 0x100257d0
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [esp + 0x18]
call fcn.10037210
push edi
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.10037210
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x2c]
call fcn.10050400
push 0x14
push dword [esp + 0x58]
lea eax, [esp + 0x60]
push eax
call fcn.10050670
add esp, 0x2c
mov ecx, 0x1fb
test eax, eax
cmovne esi, ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100257eb
push eax
call fcn.10037080
add esp, 4
mov ecx, 0x10
test eax, eax
cmovne esi, ecx
test ebp, ebp
je 0x10025804
push edi
push 0
push ebp
call fcn.100506f0
push ebp
push dword [ebx + 0x7c]
call fcn.10050630
add esp, 0x14
test esi, esi
jne 0x1002553c
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10052dd6
add esp, 0x40
ret