Function at 0x4a97c0
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 0x4a9a6b
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 0x4a983d
mov al, 2
test edi, edi
je 0x4a983b
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 0x4a9820
xor bh, al
inc edi
shr ah, 1
cmp edi, 8
jl 0x4a9810
mov dh, byte [ebp - 4]
mov byte [ebp - 5], bh
xor bh, bh
xor edi, edi
nop
test dh, 1
je 0x4a987c
mov bl, 3
test edi, edi
je 0x4a987a
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 0x4a9860
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4a9850
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 0x4a98cc
mov bl, 2
test edi, edi
je 0x4a98ca
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 0x4a98b0
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4a98a0
mov dh, byte [ebp - 3]
mov byte [ebp - 5], bh
xor bh, bh
xor edi, edi
nop
test dh, 1
je 0x4a990c
mov bl, 3
test edi, edi
je 0x4a990a
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 0x4a98f0
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4a98e0
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 0x4a995c
mov bl, 2
test edi, edi
je 0x4a995a
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 0x4a9940
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4a9930
mov dh, byte [ebp - 1]
mov byte [ebp - 5], bh
xor bh, bh
xor edi, edi
nop
test dh, 1
je 0x4a999c
mov bl, 3
test edi, edi
je 0x4a999a
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 0x4a9980
xor bh, bl
inc edi
shr dh, 1
cmp edi, 8
jl 0x4a9970
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 0x4a99e1
mov bl, 3
test edi, edi
je 0x4a99df
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 0x4a99c2
mov cl, byte [ebp - 2]
xor bh, bl
shr cl, 1
inc edi
mov byte [ebp - 2], cl
cmp edi, 8
jl 0x4a99b5
mov al, byte [ebp - 1]
xor dh, dh
xor edi, edi
test al, 1
je 0x4a9a1f
mov bl, 2
test edi, edi
je 0x4a9a1d
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 0x4a9a00
mov al, byte [ebp - 1]
xor dh, bl
shr al, 1
inc edi
mov byte [ebp - 1], al
cmp edi, 8
jl 0x4a99f3
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 0x4a97e0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4