Function at 0x4ba048
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff40
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov ebx, 1
mov edx, 0x4ed9b8
lea eax, [esp + 0x10]
mov dword [esp + 0xc], eax
lea esi, [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
dec ecx
and ecx, 7
mov eax, 0x80
shr eax, cl
xor ecx, ecx
mov cl, byte [edx]
dec ecx
shr ecx, 3
mov edi, dword [esp]
and al, byte [edi + ecx]
test al, al
jbe 0x4ba096
mov al, 1
cmp ebx, 0x20
jg 0x4ba0a3
mov ecx, dword [esp + 0xc]
mov byte [ecx], al
jmp 0x4ba0a5
mov byte [esi], al
inc ebx
inc esi
inc dword [esp + 0xc]
inc edx
cmp ebx, 0x41
jne 0x4ba073
mov ebx, 1
mov edi, 0x30
mov esi, 0x4eda38
mov eax, dword [esp + 4]
inc eax
lea edx, [esp + 0x90]
mov ecx, 0x10
sub ecx, ebx
add ecx, ecx
lea ecx, [ecx + ecx*2]
mov cl, byte [eax + ecx*8 - 1]
movzx ebp, byte [esi]
xor cl, byte [esp + ebp + 0x2f]
mov byte [edx], cl
inc edx
inc eax
inc esi
dec edi
jne 0x4ba0cc
xor eax, eax
mov al, byte [esp + 0x90]
add eax, eax
xor edx, edx
mov dl, byte [esp + 0x95]
or eax, edx
movzx esi, byte [esp + 0x91]
shl esi, 3
xor edx, edx
mov dl, byte [esp + 0x92]
shl edx, 2
or esi, edx
xor edx, edx
mov dl, byte [esp + 0x93]
add edx, edx
or esi, edx
xor edx, edx
mov dl, byte [esp + 0x94]
or esi, edx
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4eda88]
mov dl, byte [edx + esi]
mov ecx, edx
and cl, 8
and ecx, 0xff
shr ecx, 3
mov byte [esp + 0x50], cl
mov ecx, eax
add ecx, ecx
lea ecx, [ecx*8 + 0x4eda88]
mov cl, byte [ecx + esi]
and cl, 4
and ecx, 0xff
shr ecx, 2
mov byte [esp + 0x51], cl
mov ecx, edx
and cl, 2
and ecx, 0xff
shr ecx, 1
mov byte [esp + 0x52], cl
and dl, 1
mov byte [esp + 0x53], dl
xor eax, eax
mov al, byte [esp + 0x96]
add eax, eax
xor edx, edx
mov dl, byte [esp + 0x9b]
or eax, edx
movzx esi, byte [esp + 0x97]
shl esi, 3
xor edx, edx
mov dl, byte [esp + 0x98]
shl edx, 2
or esi, edx
xor edx, edx
mov dl, byte [esp + 0x99]
add edx, edx
or esi, edx
xor edx, edx
mov dl, byte [esp + 0x9a]
or esi, edx
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edac8]
mov dl, byte [edx + esi]
and dl, 8
and edx, 0xff
shr edx, 3
mov byte [esp + 0x54], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edac8]
mov dl, byte [edx + esi]
and dl, 4
and edx, 0xff
shr edx, 2
mov byte [esp + 0x55], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edac8]
mov dl, byte [edx + esi]
and dl, 2
and edx, 0xff
shr edx, 1
mov byte [esp + 0x56], dl
add eax, eax
lea eax, [eax*8 + 0x4edac8]
mov al, byte [eax + esi]
and al, 1
mov byte [esp + 0x57], al
xor eax, eax
mov al, byte [esp + 0x9c]
add eax, eax
xor edx, edx
mov dl, byte [esp + 0xa1]
or eax, edx
movzx esi, byte [esp + 0x9d]
shl esi, 3
xor edx, edx
mov dl, byte [esp + 0x9e]
shl edx, 2
or esi, edx
xor edx, edx
mov dl, byte [esp + 0x9f]
add edx, edx
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xa0]
or esi, edx
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edb08]
mov dl, byte [edx + esi]
and dl, 8
and edx, 0xff
shr edx, 3
mov byte [esp + 0x58], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edb08]
mov dl, byte [edx + esi]
and dl, 4
and edx, 0xff
shr edx, 2
mov byte [esp + 0x59], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edb08]
mov dl, byte [edx + esi]
and dl, 2
and edx, 0xff
shr edx, 1
mov byte [esp + 0x5a], dl
add eax, eax
lea eax, [eax*8 + 0x4edb08]
mov al, byte [eax + esi]
and al, 1
mov byte [esp + 0x5b], al
xor eax, eax
mov al, byte [esp + 0xa2]
add eax, eax
xor edx, edx
mov dl, byte [esp + 0xa7]
or eax, edx
movzx esi, byte [esp + 0xa3]
shl esi, 3
xor edx, edx
mov dl, byte [esp + 0xa4]
shl edx, 2
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xa5]
add edx, edx
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xa6]
or esi, edx
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edb48]
mov dl, byte [edx + esi]
and dl, 8
and edx, 0xff
shr edx, 3
mov byte [esp + 0x5c], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edb48]
mov dl, byte [edx + esi]
and dl, 4
and edx, 0xff
shr edx, 2
mov byte [esp + 0x5d], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edb48]
mov dl, byte [edx + esi]
and dl, 2
and edx, 0xff
shr edx, 1
mov byte [esp + 0x5e], dl
add eax, eax
lea eax, [eax*8 + 0x4edb48]
mov al, byte [eax + esi]
and al, 1
mov byte [esp + 0x5f], al
xor eax, eax
mov al, byte [esp + 0xa8]
add eax, eax
xor edx, edx
mov dl, byte [esp + 0xad]
or eax, edx
movzx esi, byte [esp + 0xa9]
shl esi, 3
xor edx, edx
mov dl, byte [esp + 0xaa]
shl edx, 2
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xab]
add edx, edx
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xac]
or esi, edx
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edb88]
mov dl, byte [edx + esi]
and dl, 8
and edx, 0xff
shr edx, 3
mov byte [esp + 0x60], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edb88]
mov dl, byte [edx + esi]
and dl, 4
and edx, 0xff
shr edx, 2
mov byte [esp + 0x61], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edb88]
mov dl, byte [edx + esi]
and dl, 2
and edx, 0xff
shr edx, 1
mov byte [esp + 0x62], dl
add eax, eax
lea eax, [eax*8 + 0x4edb88]
mov al, byte [eax + esi]
and al, 1
mov byte [esp + 0x63], al
xor eax, eax
mov al, byte [esp + 0xae]
add eax, eax
xor edx, edx
mov dl, byte [esp + 0xb3]
or eax, edx
movzx esi, byte [esp + 0xaf]
shl esi, 3
xor edx, edx
mov dl, byte [esp + 0xb0]
shl edx, 2
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xb1]
add edx, edx
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xb2]
or esi, edx
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edbc8]
mov dl, byte [edx + esi]
and dl, 8
and edx, 0xff
shr edx, 3
mov byte [esp + 0x64], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edbc8]
mov dl, byte [edx + esi]
and dl, 4
and edx, 0xff
shr edx, 2
mov byte [esp + 0x65], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edbc8]
mov dl, byte [edx + esi]
and dl, 2
and edx, 0xff
shr edx, 1
mov byte [esp + 0x66], dl
add eax, eax
lea eax, [eax*8 + 0x4edbc8]
mov al, byte [eax + esi]
and al, 1
mov byte [esp + 0x67], al
xor eax, eax
mov al, byte [esp + 0xb4]
add eax, eax
xor edx, edx
mov dl, byte [esp + 0xb9]
or eax, edx
movzx esi, byte [esp + 0xb5]
shl esi, 3
xor edx, edx
mov dl, byte [esp + 0xb6]
shl edx, 2
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xb7]
add edx, edx
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xb8]
or esi, edx
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edc08]
mov dl, byte [edx + esi]
and dl, 8
and edx, 0xff
shr edx, 3
mov byte [esp + 0x68], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edc08]
mov dl, byte [edx + esi]
and dl, 4
and edx, 0xff
shr edx, 2
mov byte [esp + 0x69], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edc08]
mov dl, byte [edx + esi]
and dl, 2
and edx, 0xff
shr edx, 1
mov byte [esp + 0x6a], dl
add eax, eax
lea eax, [eax*8 + 0x4edc08]
mov al, byte [eax + esi]
and al, 1
mov byte [esp + 0x6b], al
xor eax, eax
mov al, byte [esp + 0xba]
add eax, eax
xor edx, edx
mov dl, byte [esp + 0xbf]
or eax, edx
movzx esi, byte [esp + 0xbb]
shl esi, 3
xor edx, edx
mov dl, byte [esp + 0xbc]
shl edx, 2
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xbd]
add edx, edx
or esi, edx
xor edx, edx
mov dl, byte [esp + 0xbe]
or esi, edx
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edc48]
mov dl, byte [edx + esi]
and dl, 8
and edx, 0xff
shr edx, 3
mov byte [esp + 0x6c], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edc48]
mov dl, byte [edx + esi]
and dl, 4
and edx, 0xff
shr edx, 2
mov byte [esp + 0x6d], dl
mov edx, eax
add edx, edx
lea edx, [edx*8 + 0x4edc48]
mov dl, byte [edx + esi]
and dl, 2
and edx, 0xff
shr edx, 1
mov byte [esp + 0x6e], dl
add eax, eax
lea eax, [eax*8 + 0x4edc48]
mov al, byte [eax + esi]
and al, 1
mov byte [esp + 0x6f], al
mov edi, 0x20
mov esi, 0x4eda68
lea edx, [esp + 0x10]
lea eax, [esp + 0x70]
xor ecx, ecx
mov cl, byte [esi]
mov cl, byte [esp + ecx + 0x4f]
xor cl, byte [edx]
mov byte [eax], cl
inc eax
inc edx
inc esi
dec edi
jne 0x4ba678
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
mov ecx, 0x20
call fcn.004029b4
lea edx, [esp + 0x30]
lea eax, [esp + 0x70]
mov ecx, 0x20
call fcn.004029b4
inc ebx
cmp ebx, 0x11
jne 0x4ba0b6
mov eax, dword [esp + 8]
xor ecx, ecx
mov edx, 8
call fcn.0040313c
mov ebx, 1
mov esi, 0x4ed9f8
mov al, byte [esi]
cmp al, 0x20
ja 0x4ba6e3
and eax, 0xff
mov al, byte [esp + eax + 0x2f]
jmp 0x4ba6ec
and eax, 0xff
mov al, byte [esp + eax - 0x11]
test al, al
jbe 0x4ba709
mov edx, ebx
dec edx
mov ecx, edx
and ecx, 7
mov eax, 0x80
shr eax, cl
shr edx, 3
mov ecx, dword [esp + 8]
or byte [ecx + edx], al
inc ebx
inc esi
cmp ebx, 0x41
jne 0x4ba6d2
add esp, 0xc0
pop ebp
pop edi
pop esi
pop ebx
ret