Function at 0x29ae7580
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi + 4]
sub esp, 0x5c
cmp eax, 0xa
push ebx
jl 0x29ae75a6
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x29ae75a1
xor eax, eax
pop ebx
add esp, 0x5c
ret
add ebx, 0xa
jmp 0x29ae75a8
mov ebx, eax
mov edx, dword [esi + 0x18]
push ebp
push edi
lea ecx, [edx + 1]
mov ebp, ecx
shr ecx, 2
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x1c]
mov edi, edx
cmp edi, eax
mov dword [esp + 0x18], ebx
jl 0x29ae7640
cmp dword [esi + 4], 2
jne 0x29ae78db
mov edx, dword [esi + 0x10]
cmp edx, 1
jne 0x29ae776b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
movzx edi, byte [eax + ecx - 1]
cmp eax, dword [esi + 0x1c]
jge 0x29ae78db
jmp 0x29ae7600
mov edx, dword [esi + 0x20]
lea ebp, [edx + eax]
mov dl, byte [ebp]
movzx ecx, dl
shl edi, 8
or edi, ecx
mov ecx, dword [esi + 0xc]
mov ebx, edi
shr ebx, cl
add eax, 8
xor bl, dl
mov byte [ebp], bl
cmp eax, dword [esi + 0x1c]
jl 0x29ae7600
mov edx, dword [esi + 0x18]
pop edi
pop ebp
mov dword [esi + 0x24], edx
mov eax, 1
pop ebx
add esp, 0x5c
ret
mov ebx, dword [esp + 0x18]
jmp 0x29ae7640
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x29ae7654
mov cl, byte [esp + eax + 0x23]
mov byte [esp + eax + 0x24], cl
dec eax
test eax, eax
jg 0x29ae7647
mov edx, dword [esi + 0x20]
mov al, byte [edi + edx]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov byte [esp + 0x24], al
call dword [edx + 0x18]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x29ae7759
lea ecx, [ebx - 0xb]
cmp ecx, 3
ja case.default.0x29ae767e
jmp dword [ecx*4 + 0x29ae78f0]
mov ecx, dword [esi + 0x20]
mov ebp, dword [esi + 0x18]
mov edx, ecx
sub edx, ebp
mov dl, byte [edx + edi]
add dl, al
mov byte [ecx + edi], dl
jmp 0x29ae7748
mov ecx, dword [esi + 0x20]
mov dl, byte [ecx + edi]
add ecx, edi
add dl, al
mov byte [ecx], dl
jmp 0x29ae7748
mov ecx, dword [esi + 0x20]
mov ebx, dword [esi + 0x18]
mov edx, ecx
sub edx, ebx
movzx edx, byte [edx + edi]
movzx ebx, byte [ecx + edi]
add edx, ebx
sar edx, 1
add dl, al
mov byte [ecx + edi], dl
jmp 0x29ae7748
mov ebp, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov ecx, ebp
sub ecx, eax
movzx edx, byte [ecx + edi]
movzx eax, byte [esp + eax + 0x24]
movzx ecx, byte [edi + ebp]
mov dword [esp + 0xc], ecx
sub ecx, eax
add ecx, edx
mov dword [esp + 0x1c], eax
mov eax, ecx
sub eax, edx
jns 0x29ae76f5
neg eax
mov ebx, ecx
sub ebx, dword [esp + 0xc]
mov dword [esp + 0x14], ebx
jns 0x29ae7707
neg ebx
mov dword [esp + 0x14], ebx
sub ecx, dword [esp + 0x1c]
jns 0x29ae770f
neg ecx
mov ebx, dword [esp + 0x14]
cmp eax, ebx
jg 0x29ae7724
cmp eax, ecx
jg 0x29ae7724
add dl, byte [esp + 0x10]
mov byte [edi + ebp], dl
jmp 0x29ae7748
cmp ebx, ecx
mov cl, byte [esp + 0x10]
jg 0x29ae7737
mov al, byte [esp + 0xc]
add al, cl
mov byte [edi + ebp], al
jmp 0x29ae7748
mov al, byte [esp + 0x1c]
add al, cl
mov byte [edi + ebp], al
jmp 0x29ae7748
mov edx, dword [esi + 0x20]
mov byte [edi + edx], al
mov eax, dword [esi + 0x1c]
inc edi
cmp edi, eax
jl 0x29ae7637
jmp 0x29ae75d1
cmp edi, dword [esi + 0x18]
jg 0x29ae75d1
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
cmp edx, 8
jne 0x29ae77af
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
jge 0x29ae78db
lea esp, [esp]
mov ecx, dword [esi + 0x20]
mov ebp, dword [esi + 0xc]
mov bl, byte [ecx + eax]
mov edx, ecx
sub edx, ebp
mov dl, byte [edx + eax]
add bl, dl
mov byte [ecx + eax], bl
mov ecx, dword [esi + 0x1c]
inc eax
cmp eax, ecx
jl 0x29ae7780
mov edx, dword [esi + 0x18]
pop edi
pop ebp
mov dword [esi + 0x24], edx
mov eax, 1
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esi + 0xc]
inc ecx
mov ebx, ecx
shr ecx, 2
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dword [esp + 0x18], ecx
dec eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], eax
xor ebp, ebp
xor eax, eax
cmp ecx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], edx
jle 0x29ae78db
lea esp, [esp]
mov ecx, dword [esi + 0xc]
test ecx, ecx
mov dword [esp + 0xc], 0
jle 0x29ae78a0
mov edi, dword [esi + 0x10]
cmp edx, edi
jge 0x29ae783e
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
movzx ecx, byte [ecx + ebx]
mov ebx, dword [esp + 0x10]
shl ebx, 8
or ecx, ebx
mov ebx, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
add edx, 8
mov ebx, dword [esp + 0xc]
mov ecx, edx
mov edx, dword [esp + 0x10]
sub ecx, edi
shr edx, cl
add ebp, edi
add dl, byte [esp + ebx + 0x24]
and dl, byte [esp + 0x20]
mov ebx, dword [esp + 0xc]
mov byte [esp + ebx + 0x24], dl
mov edx, ecx
mov ecx, edi
shl eax, cl
mov ecx, ebx
movzx ecx, byte [esp + ecx + 0x24]
or eax, ecx
cmp ebp, 8
jl 0x29ae788c
mov edi, dword [esp + 0x18]
lea ecx, [ebp - 8]
mov ebx, eax
shr ebx, cl
mov ecx, dword [esi + 0x20]
inc edi
mov dword [esp + 0x18], edi
mov byte [edi + ecx - 1], bl
sub ebp, 8
mov ecx, dword [esp + 0xc]
mov edi, dword [esi + 0xc]
inc ecx
cmp ecx, edi
mov dword [esp + 0xc], ecx
jl 0x29ae7813
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi + 8]
inc ecx
cmp ecx, edi
mov dword [esp + 0x1c], ecx
jl 0x29ae7800
test ebp, ebp
jle 0x29ae78db
mov bl, byte [esp + 0x10]
mov edi, 8
sub edi, ebp
mov ecx, edi
mov dl, 1
shl dl, cl
shl al, cl
mov ecx, dword [esp + 0x18]
dec dl
and dl, bl
add dl, al
mov eax, dword [esi + 0x20]
mov byte [ecx + eax], dl
mov edx, dword [esi + 0x18]
pop edi
pop ebp
mov dword [esi + 0x24], edx
mov eax, 1
pop ebx
add esp, 0x5c
ret