Function at 0x4dbcf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28
call fcn.00628570
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
push esi
test edx, edx
jle 0x4dbfd8
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x4dbfd8
push edi
mov edi, dword [ebp + 0x10]
cmp esi, edi
jg 0x4dbfb0
cmp edi, 0xb
jl 0x4dbfb0
push ebx
push edi
mov dword [0x70e32c], 0
call fcn.0063274d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dbd71
push 0xb4
push 0x6e7010
push 0x41
lea edx, [eax + 0x71]
lea ecx, [eax + 4]
call fcn.004818c0
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
add edx, esi
add ebx, edi
mov eax, esi
mov dword [ebp - 0xc], ebx
not eax
lea ecx, [esi - 1]
shr eax, 0x1f
dec ebx
shr ecx, 0x1f
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
mov al, byte [edx]
and al, cl
mov byte [ebx], al
sub edi, 1
jne 0x4dbd78
mov edi, dword [ebp + 0x10]
mov esi, 2
movzx ecx, al
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
movzx edx, byte [eax]
lea eax, [ecx - 1]
xor edx, 2
shr eax, 0x1f
neg eax
lea edx, [edx - 1]
shr edx, 0x1f
neg edx
and edx, eax
xor ecx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
movzx edx, byte [ebx + esi]
not ecx
lea edx, [edx - 1]
shr edx, 0x1f
neg edx
and ecx, edx
mov dword [ebp - 0x14], ecx
not ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
and ecx, esi
and eax, dword [ebp - 8]
inc esi
or eax, ecx
mov ecx, dword [ebp - 0xc]
or ecx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
cmp esi, edi
jl 0x4dbdd1
mov esi, dword [ebp - 0x1c]
mov eax, edi
mov edx, dword [ebp - 8]
mov ecx, esi
sub eax, edx
dec eax
sub ecx, eax
mov dword [ebp - 8], eax
xor ecx, eax
xor eax, esi
or ecx, eax
lea eax, [edx - 0xa]
or eax, edx
xor ecx, esi
xor eax, edx
shr ecx, 0x1f
shr eax, 0x1f
dec ecx
dec eax
and ecx, eax
and dword [ebp - 4], ecx
lea ecx, [edi - 0xb]
mov edx, ecx
mov eax, ecx
sub edx, esi
xor eax, esi
xor edx, esi
or edx, eax
xor edx, ecx
lea ecx, [edi - 0xb]
shr edx, 0x1f
neg edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edx
not edx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
and eax, ecx
and edx, esi
mov esi, 1
or edx, eax
mov dword [ebp - 0xc], edx
cmp ecx, esi
jle 0x4dbee5
mov eax, edi
sub eax, dword [ebp - 8]
add eax, 0xfffffff5
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
and eax, esi
sub edi, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edi, 0xb
jle 0x4dbed8
movzx ecx, cl
add edi, 0xfffffff5
mov eax, ecx
mov dword [ebp - 0x14], ecx
not eax
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0xb]
mov ebx, dword [ebp - 0x1c]
nop dword [eax]
mov dword [ebp - 0x1c], ecx
lea eax, [eax + 1]
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x1c]
mov dl, byte [eax + esi - 1]
and dl, cl
mov ecx, dword [ebp - 0x18]
and cl, byte [eax - 1]
or cl, dl
mov byte [eax - 1], cl
mov ecx, dword [ebp - 0x14]
sub edi, 1
jne 0x4dbeb0
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp + 0x10]
add esi, esi
mov eax, dword [ebp - 0x28]
cmp esi, dword [ebp - 0x24]
jl 0x4dbe80
xor edx, edx
cmp dword [ebp - 0xc], edx
jle 0x4dbf35
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
mov edi, dword [ebp - 0x10]
or ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, esi
movzx eax, cl
mov dword [ebp - 0x28], eax
not eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov cl, byte [ebx + edx + 0xb]
and cl, al
mov eax, dword [ebp - 0x24]
and al, byte [edx + edi]
or al, cl
mov ecx, edi
mov edi, dword [ebp - 8]
mov byte [edx + ecx], al
inc edx
cmp edx, dword [ebp - 0xc]
jl 0x4dbef2
mov edi, dword [ebp + 0x10]
push edi
push ebx
call fcn.00401320
push ebx
call fcn.0062f047
mov edx, 0x71
push 0xfb
push 0x6e7010
push 0x9f
lea ecx, [edx - 0x6d]
call fcn.004818c0
mov ebx, dword [ebp - 4]
add esp, 0x18
mov esi, ebx
and esi, 1
call fcn.00481fd0
mov edi, eax
test edi, edi
je 0x4dbf96
mov edx, dword [edi + 0x180]
lea ecx, [esi - 1]
shr ecx, 0x1f
neg ecx
mov dword [ebp - 0x28], ecx
not ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
and eax, 2
or dword [edi + edx*4], eax
mov dword [ebp - 0x28], ebx
not ebx
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x28]
and ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
pop ebx
pop edi
or eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x71
push 0xae
push 0x6e7010
push 0x9f
lea ecx, [edx - 0x6d]
call fcn.004818c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret