Function at 0x4f88b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, dword [esi + 0x170]
mov ebx, dword [esi + 0x160]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x164]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov ecx, eax
add ecx, dword [esi + 0x38]
mov dword [ebp - 0x18], ebx
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
ja 0x4f8b07
jb 0x4f8900
cmp ecx, 0xffffffe0
ja 0x4f8b07
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
je 0x4f8929
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call ebx
mov eax, dword [ebp + 0x14]
add esp, 8
mov dword [esi + 0x16c], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x168]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
bswap ecx
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x4f8981
test eax, eax
je 0x4f896b
mov al, byte [edx + esi + 0x10]
mov cl, byte [edi]
inc edi
xor al, cl
mov byte [ebx], al
inc ebx
xor byte [edx + esi + 0x40], cl
inc edx
mov eax, dword [ebp + 0x14]
dec eax
and edx, 0xf
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x10], edx
jne 0x4f8945
jmp 0x4f8973
test edx, edx
jne 0x4f8af8
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp + 0x14]
cmp ecx, 0xc00
jb 0x4f8a1a
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [ebp - 0x18], edx
nop dword [eax]
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x14], 0xc0
nop dword [eax + eax]
push dword [ebp - 8]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
mov dword [ebp - 4], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x14], 1
jne 0x4f89c0
mov ecx, dword [ebp + 0x14]
sub ecx, 0xc00
sub dword [ebp - 0x18], 1
mov dword [ebp + 0x14], ecx
jne 0x4f89a0
mov eax, ecx
and eax, 0xfffffff0
je 0x4f8a93
push eax
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
cmp ecx, 0x10
jb 0x4f8a93
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], ecx
push dword [ebp - 8]
push eax
push esi
call dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
sub ecx, 0x10
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x1c], 1
lea eax, [esi + 0x10]
mov dword [ebp + 0x14], ecx
jne 0x4f8a42
test ecx, ecx
je 0x4f8af5
push dword [ebp - 8]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x10]
inc eax
bswap eax
mov dword [esi + 0xc], eax
sub edi, ebx
lea eax, [edx + ebx]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x40]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov cl, byte [edi + esi]
lea esi, [esi + 1]
xor byte [eax + edx], cl
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + edx - 0x30]
inc edx
xor al, cl
mov byte [esi - 1], al
mov eax, dword [ebp - 0x1c]
sub ebx, 1
jne 0x4f8ac5
mov esi, dword [ebp + 8]
xor eax, eax
pop edi
mov dword [esi + 0x168], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
pop edi
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret