Function at 0x629490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx], 0
je 0x6294ad
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 4], 2
je 0x6294c6
mov eax, dword [ebx + 8]
test eax, eax
jne 0x6294c6
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x62988a
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x62988a
mov eax, edi
cdq
and edx, 0x7f
add eax, edx
mov ecx, eax
mov eax, edi
sar ecx, 7
and eax, 0x8000007f
mov dword [ebp + 0x10], ecx
jns 0x6294fa
dec eax
or eax, 0xffffff80
inc eax
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, dword [ebx + 4]
sar edi, 3
sub eax, 0
mov dword [ebp - 4], edi
je 0x629857
dec eax
je 0x6296f0
dec eax
je 0x629528
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], edx
mov edx, dword [ebx + 0x18]
test ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jle 0x62987e
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
jmp 0x629556
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov eax, edi
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xc]
xor esi, esi
mov dword [eax + 0xc], edx
jmp 0x629575
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
push ecx
push edx
push ebx
mov dword [ebp - 0x20], eax
call fcn.00629be0
mov al, byte [ebp - 0x1b]
mov dl, byte [ebp - 0x1c]
mov cl, al
add esp, 0xc
shr cl, 7
shl dl, 1
or cl, dl
mov byte [ebp - 0x1c], cl
mov cl, byte [ebp - 0x1a]
mov dl, cl
shr dl, 7
shl al, 1
or dl, al
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x1b], dl
mov dl, al
shr dl, 7
shl cl, 1
or dl, cl
mov cl, byte [ebp - 0x18]
mov byte [ebp - 0x1a], dl
mov dl, cl
shr dl, 7
shl al, 1
or dl, al
mov al, byte [ebp - 0x17]
mov byte [ebp - 0x19], dl
mov dl, al
shr dl, 7
shl cl, 1
or dl, cl
mov cl, byte [ebp - 0x16]
mov byte [ebp - 0x18], dl
mov dl, cl
shr dl, 7
shl al, 1
or dl, al
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x17], dl
mov dl, al
shr dl, 7
shl cl, 1
or dl, cl
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0x16], dl
mov dl, cl
shr dl, 7
shl al, 1
or dl, al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0x15], dl
mov dl, al
shr dl, 7
shl cl, 1
or dl, cl
mov cl, byte [ebp - 0x12]
mov byte [ebp - 0x14], dl
mov dl, cl
shr dl, 7
shl al, 1
or dl, al
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x13], dl
mov dl, al
shr dl, 7
shl cl, 1
or dl, cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0x12], dl
mov dl, cl
mov ebx, esi
shr dl, 7
shl al, 1
or dl, al
mov al, byte [ebp - 0xf]
mov byte [ebp - 0x11], dl
mov dl, al
shr dl, 7
shl cl, 1
or dl, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x10], dl
mov dl, cl
shr dl, 7
shl al, 1
or dl, al
mov al, byte [ebp - 0xd]
shr al, 7
shl cl, 1
or al, cl
mov byte [ebp - 0xf], dl
mov byte [ebp - 0xe], al
mov eax, esi
cdq
and edx, 7
and ebx, 7
add eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 3
mov cl, 7
mov dl, byte [eax + edx]
sub cl, bl
shr dl, cl
mov cl, byte [ebp - 0xd]
shl cl, 1
and dl, 1
or dl, cl
mov cl, bl
mov byte [ebp - 0xd], dl
mov dl, byte [ebp - 0x2c]
mov bl, byte [eax + edi]
and dl, 0x80
shr dl, cl
xor bl, dl
inc esi
cmp esi, 0x80
mov byte [eax + edi], bl
jl 0x629572
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add edi, 0x10
add ecx, 0x10
dec eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], eax
jne 0x629550
mov ecx, dword [ebp + 0x10]
pop edi
mov eax, ecx
pop esi
shl eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x6297b2
dec ecx
lea eax, [ebp - 0x2c]
mov dword [ebp + 0x10], ecx
push eax
shl ecx, 4
add esi, ecx
mov dword [ebp + 8], ecx
push esi
push ebx
mov dword [ebp - 8], esi
call fcn.0062a050
add esp, 0xc
xor eax, eax
test edi, edi
jle 0x62972e
mov cl, byte [esi + eax + 0x10]
mov dl, byte [ebp + eax - 0x2c]
xor cl, dl
mov byte [ebp + eax - 0x1c], cl
inc eax
cmp eax, edi
jl 0x62971b
mov ecx, edi
add esi, 0x10
mov edx, ecx
lea edi, [ebp - 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, edx
and ecx, 3
lea edx, [ebp - 0x2c]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x14]
lea edi, [eax + ecx]
push edi
push edx
push ebx
mov dword [ebp - 0xc], edi
call fcn.0062a050
mov ecx, dword [ebp - 4]
lea esi, [ebp - 0x1c]
mov eax, ecx
add edi, 0x10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
add esp, 0xc
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x629795
xor eax, eax
mov esi, dword [ebp + 0x14]
mov cl, byte [ebx + eax + 0xc]
mov dl, byte [eax + esi]
xor dl, cl
mov byte [eax + esi], dl
inc eax
cmp eax, 0x10
jl 0x62977e
jmp 0x6297af
xor eax, eax
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov cl, byte [edx + eax - 0x10]
mov dl, byte [esi + eax]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 0x10
jl 0x629797
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x18]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], ecx
jle 0x62987b
mov edx, eax
mov dword [ebp + 0xc], edx
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.0062a050
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
xor ecx, edi
mov edi, dword [ebp - 0x24]
xor edx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
xor edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x20]
xor edi, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], edi
mov edi, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
add eax, 0x10
add esp, 0xc
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
add esi, 0x10
dec eax
mov dword [ebp - 0x10], edx
mov dword [ebp + 0xc], eax
jne 0x6297d7
mov ecx, dword [ebp + 0x10]
pop edi
mov eax, ecx
pop esi
shl eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jle 0x62987e
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
push edi
push esi
push ebx
call fcn.0062a050
mov eax, dword [ebp + 0xc]
add esp, 0xc
add esi, 0x10
add edi, 0x10
dec eax
mov dword [ebp + 0xc], eax
jne 0x629861
mov ecx, dword [ebp + 0x10]
mov eax, ecx
pop edi
pop esi
pop ebx
shl eax, 7
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret