Function at 0x4ad180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push esi
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], esi
cmp dword [eax], esi
jle 0x4ad42b
push ebx
push edi
mov edi, dword [ebp + 8]
nop
mov eax, dword [edi]
xor bh, bh
add eax, esi
mov dword [ebp - 0x10], eax
mov cl, byte [eax]
mov eax, dword [edi + 4]
mov byte [ebp - 2], cl
mov al, byte [esi + eax]
mov byte [ebp - 4], al
mov eax, dword [edi + 8]
mov al, byte [esi + eax]
mov byte [ebp - 3], al
mov eax, dword [edi + 0xc]
xor edi, edi
mov al, byte [esi + eax]
mov ah, cl
mov byte [ebp - 1], al
nop dword [eax]
test ah, 1
je 0x4ad1fd
mov al, 2
test edi, edi
je 0x4ad1fb
mov esi, edi
nop dword [eax]
mov bl, al
add bl, bl
mov cl, bl
xor cl, 0x1b
test al, al
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
mov al, dl
sub esi, 1
jne 0x4ad1e0
xor bh, al
inc edi
shr ah, 1
cmp edi, 8
jl 0x4ad1d0
mov dh, byte [ebp - 4]
mov byte [ebp - 5], bh
xor bh, bh
xor edi, edi
nop
test dh, 1
je 0x4ad23c
mov bl, 3
test edi, edi
je 0x4ad23a
mov esi, edi
nop dword [eax]
mov dl, bl
add dl, dl
mov al, dl
xor al, 0x1b
test bl, bl
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov bl, cl
sub esi, 1
jne 0x4ad220
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4ad210
mov al, byte [ebp - 3]
xor al, byte [ebp - 1]
mov dh, byte [ebp - 4]
xor al, bh
xor al, byte [ebp - 5]
xor bh, bh
mov byte [ebp - 6], al
xor edi, edi
nop dword [eax]
test dh, 1
je 0x4ad28c
mov bl, 2
test edi, edi
je 0x4ad28a
mov esi, edi
nop dword [eax]
mov dl, bl
add dl, dl
mov al, dl
xor al, 0x1b
test bl, bl
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov bl, cl
sub esi, 1
jne 0x4ad270
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4ad260
mov dh, byte [ebp - 3]
mov byte [ebp - 5], bh
xor bh, bh
xor edi, edi
nop
test dh, 1
je 0x4ad2cc
mov bl, 3
test edi, edi
je 0x4ad2ca
mov esi, edi
nop dword [eax]
mov dl, bl
add dl, dl
mov al, dl
xor al, 0x1b
test bl, bl
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov bl, cl
sub esi, 1
jne 0x4ad2b0
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4ad2a0
mov al, byte [ebp - 2]
xor al, byte [ebp - 1]
mov dh, byte [ebp - 3]
xor al, bh
xor al, byte [ebp - 5]
xor bh, bh
mov byte [ebp - 7], al
xor edi, edi
nop dword [eax]
test dh, 1
je 0x4ad31c
mov bl, 2
test edi, edi
je 0x4ad31a
mov esi, edi
nop dword [eax]
mov dl, bl
add dl, dl
mov al, dl
xor al, 0x1b
test bl, bl
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov bl, cl
sub esi, 1
jne 0x4ad300
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4ad2f0
mov dh, byte [ebp - 1]
mov byte [ebp - 5], bh
xor bh, bh
xor edi, edi
nop
test dh, 1
je 0x4ad35c
mov bl, 3
test edi, edi
je 0x4ad35a
mov esi, edi
nop dword [eax]
mov dl, bl
add dl, dl
mov al, dl
xor al, 0x1b
test bl, bl
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov bl, cl
sub esi, 1
jne 0x4ad340
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4ad330
mov cl, byte [ebp - 2]
mov al, cl
xor al, byte [ebp - 4]
xor al, bh
xor bh, bh
xor byte [ebp - 5], al
xor edi, edi
test cl, 1
je 0x4ad3a1
mov bl, 3
test edi, edi
je 0x4ad39f
mov esi, edi
mov dl, bl
add dl, dl
mov al, dl
xor al, 0x1b
test bl, bl
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov bl, cl
sub esi, 1
jne 0x4ad382
mov cl, byte [ebp - 2]
xor bh, bl
shr cl, 1
inc edi
mov byte [ebp - 2], cl
cmp edi, 8
jl 0x4ad375
mov al, byte [ebp - 1]
xor dh, dh
xor edi, edi
test al, 1
je 0x4ad3df
mov bl, 2
test edi, edi
je 0x4ad3dd
mov esi, edi
nop
mov dl, bl
add dl, dl
mov al, dl
xor al, 0x1b
test bl, bl
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov bl, cl
sub esi, 1
jne 0x4ad3c0
mov al, byte [ebp - 1]
xor dh, bl
shr al, 1
inc edi
mov byte [ebp - 1], al
cmp edi, 8
jl 0x4ad3b3
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov al, byte [ebp - 6]
mov esi, dword [ebp - 0xc]
mov byte [ecx], al
mov eax, dword [edi + 4]
mov cl, byte [ebp - 7]
mov byte [esi + eax], cl
mov eax, dword [edi + 8]
mov cl, byte [ebp - 5]
mov byte [esi + eax], cl
mov cl, byte [ebp - 3]
xor cl, byte [ebp - 4]
mov eax, dword [edi + 0xc]
xor cl, dh
xor cl, bh
mov byte [esi + eax], cl
inc esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
cmp esi, dword [eax]
jl 0x4ad1a0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4