Function at 0x4f0df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
mov esi, edx
mov dword [ebp - 0x1c], ebx
cmp dword [ebx], 0
je 0x4f0e0f
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 8], 0
je 0x4f0e20
pop esi
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4f1163
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4f1163
cdq
and edx, 0x7f
push edi
lea edi, [edx + eax]
mov eax, dword [ebx + 4]
sar edi, 7
mov dword [ebp - 0x18], edi
sub eax, 0
je 0x4f112c
dec eax
je 0x4f1090
dec eax
je 0x4f0e61
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
mov esi, edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x20], eax
test edi, edi
jle 0x4f1157
mov al, byte [ebp - 0x1d]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x1e]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x1f]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x20]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0x21]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0x22]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 0x23]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0x24]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 9], al
mov al, byte [ebp - 0x25]
mov byte [ebp - 8], al
mov al, byte [ebp - 0x26]
mov byte [ebp - 7], al
mov al, byte [ebp - 0x27]
mov byte [ebp - 6], al
mov al, byte [ebp - 0x28]
mov byte [ebp - 5], al
mov al, byte [ebp - 0x29]
mov byte [ebp - 4], al
mov al, byte [ebp - 0x2a]
mov byte [ebp - 3], al
mov al, byte [ebp - 0x2b]
mov byte [ebp - 2], al
mov al, byte [ebp - 0x2c]
mov byte [ebp - 1], al
jmp 0x4f0ef0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x2c]
mov ecx, ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
mov edx, eax
call fcn.004f17b0
mov eax, dword [ebp - 0x14]
add esp, 4
mov bl, al
cdq
and edx, 7
and bl, 7
add edx, eax
mov cl, bl
mov al, byte [ebp - 0x3c]
mov ah, byte [ebp - 1]
and al, 0x80
shr al, cl
add ah, ah
mov cl, byte [ebp - 2]
sar edx, 3
xor byte [edx + edi], al
mov al, cl
shr al, 7
add cl, cl
or ah, al
mov dl, byte [edx + edi]
mov byte [ebp - 1], ah
mov byte [ebp - 0x2c], ah
mov ah, byte [ebp - 3]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 2], cl
mov byte [ebp - 0x2b], cl
mov cl, byte [ebp - 4]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 3], ah
mov byte [ebp - 0x2a], ah
mov ah, byte [ebp - 5]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 4], cl
mov byte [ebp - 0x29], cl
mov cl, byte [ebp - 6]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 5], ah
mov byte [ebp - 0x28], ah
mov ah, byte [ebp - 7]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 6], cl
mov byte [ebp - 0x27], cl
mov cl, byte [ebp - 8]
mov al, cl
shr al, 7
or ah, al
mov byte [ebp - 7], ah
mov byte [ebp - 0x26], ah
mov ah, byte [ebp - 9]
mov al, ah
shr al, 7
add cl, cl
or cl, al
mov dh, byte [ebp - 0xf]
mov byte [ebp - 8], cl
add ah, ah
mov byte [ebp - 0x25], cl
mov cl, byte [ebp - 0xa]
mov al, cl
mov ch, byte [ebp - 0x10]
shr al, 7
add cl, cl
or ah, al
mov byte [ebp - 9], ah
mov byte [ebp - 0x24], ah
mov ah, byte [ebp - 0xb]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 0xa], cl
mov byte [ebp - 0x23], cl
mov cl, byte [ebp - 0xc]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 0xb], ah
mov byte [ebp - 0x22], ah
mov ah, byte [ebp - 0xd]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 0xc], cl
mov byte [ebp - 0x21], cl
mov cl, byte [ebp - 0xe]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov al, dh
shr al, 7
add dh, dh
or cl, al
mov byte [ebp - 0xd], ah
mov al, ch
mov byte [ebp - 0xe], cl
mov byte [ebp - 0x1f], cl
add ch, ch
shr al, 7
mov cl, 7
or dh, al
mov byte [ebp - 0x20], ah
mov eax, dword [ebp - 0x14]
sub cl, bl
mov ebx, dword [ebp - 0x1c]
inc eax
shr dl, cl
and dl, 1
mov byte [ebp - 0xf], dh
or ch, dl
mov byte [ebp - 0x1e], dh
mov byte [ebp - 0x10], ch
mov byte [ebp - 0x1d], ch
mov dword [ebp - 0x14], eax
cmp eax, 0x80
jl 0x4f0ef7
dec esi
test esi, esi
jg 0x4f0ef0
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
lea edx, [ebp - 0x3c]
xor eax, dword [esi]
push dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
call fcn.004f17b0
lea eax, [edi - 1]
add esp, 4
add esi, 0x10
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x4f1157
mov edi, dword [ebp + 0xc]
add edi, 8
mov eax, dword [edi - 8]
lea edi, [edi + 0x10]
xor eax, dword [esi]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, ebx
mov eax, dword [edi - 0x14]
xor eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 8]
xor eax, dword [edi - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [edi - 0xc]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [edi - 8]
push eax
call fcn.004f17b0
mov eax, dword [ebp - 0x1c]
lea esi, [esi + 0x10]
dec eax
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x4f10d8
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], edi
test edi, edi
jle 0x4f1157
mov edi, dword [ebp + 0xc]
sub esi, edi
push edi
lea edx, [esi + edi]
mov ecx, ebx
call fcn.004f17b0
mov eax, dword [ebp - 0x1c]
add esp, 4
dec eax
add edi, 0x10
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x4f1138
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret