Function at 0x2646a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xe8
mov eax, 0xffffffff
cmp dword [esp + 0x114], 0
je 0x2649ef
mov ebx, dword [esp + 0x108]
cmp ebx, 0x100000
ja 0x2649ef
mov esi, dword [esp + 0x100]
test esi, esi
je 0x2649ef
test ebx, ebx
je 0x2649ef
mov ecx, dword [esp + 0x110]
add ecx, 0xfffffbff
cmp ecx, 0xfffffc00
jb 0x2649ef
lea eax, [ebx + 4]
mov dword [esp + 0x3c], eax
push eax
push 1
call fcn.004f8dc8
add esp, 8
mov ebp, eax
mov eax, 0xffffffff
test ebp, ebp
je 0x2649ef
mov eax, dword [esp + 0x110]
lea edi, [eax + 0x1f]
shr edi, 5
push ebx
push dword [esp + 0x108]
push ebp
call fcn.004f8d80
add esp, 0xc
mov ebx, esp
push ebx
call fcn.002482e0
add esp, 4
push esi
push dword [esp + 0x100]
push dword [esp + 8]
call fcn.0032a610
add esp, 0xc
lea eax, [esp + 0x68]
push 0
push eax
push dword [esp + 8]
call fcn.0032a730
add esp, 0xc
push dword [esp]
call fcn.00329f60
add esp, 4
mov ecx, dword [esp + 0x110]
lea eax, [edi + ecx]
dec eax
mov dword [esp + 0x28], 0
xor edx, edx
mov dword [esp + 0x44], edi
div di
mov edi, ebx
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x114]
dec eax
mov dword [esp + 0x34], eax
mov eax, 1
lea ebx, [esp + 0xa8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ebp
jmp 0x2647e9
xor ecx, ecx
mov eax, dword [esp + 0x40]
inc eax
inc dword [esp + 0x28]
sub dword [esp + 0x30], ecx
mov ebp, dword [esp + 0x38]
je 0x264944
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp + 0x40], eax
bswap eax
mov ecx, dword [esp + 0x108]
mov dword [ebp + ecx], eax
push edi
call fcn.002482e0
add esp, 4
push dword [esp + 0x3c]
push ebp
push dword [esp + 8]
call fcn.0032a610
add esp, 0xc
push 0
push ebx
push dword [esp + 8]
call fcn.0032a730
add esp, 0xc
push dword [esp]
call fcn.00329f60
add esp, 4
lea ecx, [esp + 0x68]
mov edx, ebx
lea eax, [esp + 0x48]
push eax
call fcn.00264a00
add esp, 4
movups xmm0, xmmword [esp + 0x48]
movups xmm1, xmmword [esp + 0x58]
movups xmmword [esp + 0x18], xmm1
movups xmmword [esp + 8], xmm0
cmp dword [esp + 0x114], 1
je 0x2648dc
mov ebp, dword [esp + 0x34]
nop dword [eax + eax]
push edi
call fcn.002482e0
add esp, 4
push 0x20
lea esi, [esp + 0x4c]
push esi
push dword [esp + 8]
call fcn.0032a610
add esp, 0xc
push 0
push ebx
push dword [esp + 8]
call fcn.0032a730
add esp, 0xc
push dword [esp]
call fcn.00329f60
add esp, 4
lea ecx, [esp + 0x68]
mov edx, ebx
push esi
call fcn.00264a00
add esp, 4
movups xmm0, xmmword [esp + 0x48]
movups xmm1, xmmword [esp + 0x58]
movups xmm2, xmmword [esp + 8]
xorps xmm2, xmm0
movups xmm0, xmmword [esp + 0x18]
xorps xmm0, xmm1
movups xmmword [esp + 8], xmm2
movups xmmword [esp + 0x18], xmm0
dec ebp
jne 0x264870
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 4]
cmp ecx, eax
cmovb eax, ecx
test ecx, ecx
mov dword [esp + 0x2c], eax
je 0x2647d0
cmp eax, 1
adc eax, 0
mov dword [esp + 4], eax
xor ecx, ecx
mov ebp, dword [esp + 0x28]
nop word cs:[eax + eax]
cmp ebp, dword [esp + 0x110]
jae 0x2647d2
movzx eax, byte [esp + ecx + 8]
mov esi, edi
mov edi, dword [esp + 0x10c]
mov byte [edi + ebp], al
mov edi, esi
inc ecx
add ebp, dword [esp + 0x44]
cmp dword [esp + 4], ecx
jne 0x264910
mov ecx, dword [esp + 4]
jmp 0x2647d2
mov byte [esp + 8], 0
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
mov byte [esp + 0x22], 0
mov byte [esp + 0x23], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 0
push ebp
call fcn.004f8dd0
add esp, 4
xor eax, eax
add esp, 0xe8
pop esi
pop edi
pop ebx
pop ebp
ret