Function at 0x29ab1fb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x138
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x158]
mov eax, dword [eax]
add eax, 0x48
push edi
push eax
mov ebx, ecx
call fcn.29ad17eb
add esp, 4
test esi, esi
mov ebp, eax
mov edi, ebp
je 0x29ab2014
mov eax, dword [esi]
cmp eax, 0x20
mov esi, dword [esi + 4]
jge 0x29ab2019
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x20
sub ecx, eax
lea edi, [eax + ebp]
mov eax, ecx
shr ecx, 2
mov esi, 0x29b77748
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x29ab2020
mov esi, 0x29b77748
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x154]
mov esi, dword [ecx + 4]
mov eax, ebx
sar eax, 0x10
lea edi, [ebp + 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov byte [ebp + 0x40], bl
mov byte [ebp + 0x42], al
mov eax, dword [esp + 0x15c]
mov edx, ebx
sar edx, 8
mov byte [ebp + 0x41], dl
sar ebx, 0x18
mov byte [ebp + 0x43], bl
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edx, ecx
shr ecx, 2
lea edi, [ebp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax]
mov ecx, dword [esp + 0x164]
add eax, 0x44
test ecx, ecx
jne 0x29ab208e
mov byte [eax + ebp], 0xff
inc eax
mov byte [eax + ebp], 0xff
inc eax
mov byte [eax + ebp], 0xff
inc eax
mov byte [eax + ebp], 0xff
inc eax
mov esi, dword [esp + 0x160]
push esi
push eax
push ebp
call fcn.29ab2420
mov eax, dword [esp + 0x158]
add esp, 0xc
cmp eax, 3
jne 0x29ab20e9
mov edi, 0x32
mov eax, dword [esp + 0x150]
push esi
push eax
push esi
call fcn.29ab2420
add esp, 0xc
dec edi
jne 0x29ab20b1
mov eax, dword [esp + 0x158]
mov esi, dword [eax + 4]
mov ecx, 8
lea edi, [esp + 0x18]
mov edx, 0x13
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], edx
jmp 0x29ab2170
cmp eax, 2
jne 0x29ab2242
mov ebx, dword [esp + 0x150]
push esi
lea esi, [esp + 0x4c]
call fcn.29ab2260
mov ecx, dword [esp + 0x15c]
mov edi, dword [ecx + 4]
xor eax, eax
add esp, 4
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
xor esi, esi
lea esp, [esp]
xor edx, edx
mov dl, byte [edi + esi]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x48]
push edx
lea edx, [esp + 0x16]
call fcn.29ab23b0
add esp, 4
mov byte [esp + esi + 0x18], al
inc esi
cmp esi, 0x20
jl 0x29ab2120
xor eax, eax
mov ecx, 8
mov edi, 0x29b77748
lea esi, [esp + 0x18]
repe cmpsd dword [esi], dword es:[edi]
mov edx, eax
sete dl
mov esi, edx
jmp 0x29ab2244
mov edx, dword [esp + 0x14]
jmp 0x29ab2170
mov edi, dword [esp + 0x150]
xor eax, eax
test edi, edi
jle 0x29ab21a0
mov ecx, dword [esp + 0x160]
lea esi, [esp + 0x38]
sub ecx, esi
lea ebx, [ebx]
lea esi, [esp + eax + 0x38]
mov bl, byte [ecx + esi]
xor bl, dl
inc eax
cmp eax, edi
mov byte [esi], bl
jl 0x29ab2190
lea ecx, [esp + 0x38]
push ecx
lea esi, [esp + 0x4c]
mov ebx, edi
call fcn.29ab2260
xor eax, eax
add esp, 4
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
xor esi, esi
nop
xor edx, edx
mov dl, byte [esp + esi + 0x18]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x48]
push edx
lea edx, [esp + 0x16]
call fcn.29ab23b0
add esp, 4
mov byte [esp + esi + 0x18], al
inc esi
cmp esi, 0x20
jl 0x29ab21c0
dec dword [esp + 0x14]
jns 0x29ab2162
mov eax, dword [esp + 0x15c]
mov ecx, 8
mov esi, 0x29b77748
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edx, ecx
shr ecx, 2
lea edi, [ebp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax]
push ebp
add eax, 0x20
push eax
push ebp
call fcn.29ab2420
add esp, 0xc
xor edx, edx
mov ecx, 4
mov edi, ebp
lea esi, [esp + 0x18]
repe cmpsd dword [esi], dword es:[edi]
mov eax, edx
sete al
mov esi, eax
jmp 0x29ab2244
xor esi, esi
push ebp
call fcn.29ad18fe
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret