Function at 0xb8ed20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x240]
cmp eax, 0x10
jg 0xb8f08e
xor ebx, ebx
cmp eax, ebx
jl 0xb8f08e
mov eax, dword [esi + 0x234]
push eax
call fcn.00b90dd0
add esp, 4
cmp eax, ebx
jne 0xb8ee01
cmp dword [esi + 0x23c], 1
push edi
lea edi, [ebx + 2]
jne 0xb8edf3
mov eax, dword [esi + 0x240]
cmp eax, ebx
je 0xb8ed9d
cdq
shld edx, eax, 3
add eax, eax
add eax, eax
add eax, eax
add dword [esi + 0x248], eax
lea ecx, [esi + 0x1f4]
push ecx
adc dword [esi + 0x24c], edx
push esi
call fcn.00b90d40
add esp, 8
mov ecx, 0xfffffdfc
lea eax, [esi + 0x213]
sub ecx, esi
lea ebx, [ebx]
inc byte [eax]
jne 0xb8edbd
dec eax
lea edx, [ecx + eax]
cmp edx, 0xc
jge 0xb8edb0
mov eax, dword [esi + 0x234]
lea eax, [eax + eax*2]
push esi
lea ecx, [esi + 0x224]
shl eax, 5
mov eax, dword [eax + 0xbfe8bc]
push ecx
lea edx, [esi + 0x204]
push edx
call eax
add esp, 0xc
cmp eax, ebx
jne 0xb8ee00
mov dword [esi + 0x240], ebx
mov dword [esi + 0x23c], edi
cmp dword [esi + 0x23c], edi
je 0xb8ee07
mov eax, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x240], ebx
jne 0xb8efa0
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], ebx
cmp dword [ebp + 0x18], ebx
jne 0xb8eee5
and eax, 0xfffffff0
mov dword [ebp - 8], eax
jbe 0xb8efa0
mov ebx, dword [ebp + 0xc]
sub ebx, dword [ebp + 0x14]
mov eax, 0xfffffdfc
sub eax, esi
mov dword [ebp - 4], eax
mov edi, edi
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0x14]
lea ecx, [esi + 0x1f4]
mov edi, 4
mov eax, dword [ebx + edx]
xor eax, dword [ecx + 0x30]
add edx, 4
mov dword [edx - 4], eax
xor dword [ecx], eax
add ecx, 4
dec edi
jne 0xb8ee51
add dword [esi + 0x250], 0x80
lea eax, [esi + 0x1f4]
push eax
adc dword [esi + 0x254], edi
push esi
call fcn.00b90d40
add esp, 8
lea eax, [esi + 0x213]
jmp 0xb8ee90
inc byte [eax]
jne 0xb8eea0
mov ecx, dword [ebp - 4]
dec eax
lea edx, [eax + ecx]
cmp edx, 0xc
jge 0xb8ee90
mov eax, dword [esi + 0x234]
lea ecx, [eax + eax*2]
push esi
lea eax, [esi + 0x224]
push eax
shl ecx, 5
mov edx, dword [ecx + 0xbfe8bc]
lea eax, [esi + 0x204]
push eax
call edx
add esp, 0xc
test eax, eax
jne 0xb8ee00
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 8]
jb 0xb8ee40
jmp 0xb8ef9d
and eax, 0xfffffff0
mov dword [ebp - 8], eax
jbe 0xb8efa0
mov edi, dword [ebp + 0xc]
sub edi, dword [ebp + 0x14]
mov eax, 0xfffffdfc
sub eax, esi
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 8]
lea eax, [esi + 0x1f4]
mov edx, 4
mov ebx, dword [ecx]
xor dword [eax], ebx
mov ebx, dword [eax + 0x30]
xor ebx, dword [ecx]
add eax, 4
mov dword [ecx + edi], ebx
add ecx, 4
dec edx
jne 0xb8ef12
add dword [esi + 0x250], 0x80
lea eax, [esi + 0x1f4]
push eax
adc dword [esi + 0x254], edx
push esi
call fcn.00b90d40
mov ecx, dword [ebp - 4]
add esp, 8
lea eax, [esi + 0x213]
inc byte [eax]
jne 0xb8ef5d
dec eax
lea edx, [eax + ecx]
cmp edx, 0xc
jge 0xb8ef50
mov eax, dword [esi + 0x234]
lea ecx, [eax + eax*2]
push esi
lea eax, [esi + 0x224]
push eax
shl ecx, 5
mov edx, dword [ecx + 0xbfe8bc]
lea eax, [esi + 0x204]
push eax
call edx
add esp, 0xc
test eax, eax
jne 0xb8ee00
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 8]
jb 0xb8ef01
mov ebx, dword [ebp + 8]
cmp ebx, dword [ebp + 0x10]
jae 0xb8f085
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
sub edx, eax
lea edi, [ebx + eax]
mov dword [ebp + 8], edx
cmp dword [esi + 0x240], 0x10
jne 0xb8f034
add dword [esi + 0x250], 0x80
lea eax, [esi + 0x1f4]
push eax
adc dword [esi + 0x254], 0
push esi
call fcn.00b90d40
mov ecx, 0xfffffdfc
add esp, 8
lea eax, [esi + 0x213]
sub ecx, esi
mov edi, edi
inc byte [eax]
jne 0xb8effd
dec eax
lea edx, [eax + ecx]
cmp edx, 0xc
jge 0xb8eff0
mov eax, dword [esi + 0x234]
lea eax, [eax + eax*2]
push esi
lea ecx, [esi + 0x224]
shl eax, 5
mov eax, dword [eax + 0xbfe8bc]
push ecx
lea edx, [esi + 0x204]
push edx
call eax
add esp, 0xc
test eax, eax
jne 0xb8ee00
mov edx, dword [ebp + 8]
mov dword [esi + 0x240], eax
cmp dword [ebp + 0x18], 0
mov eax, dword [esi + 0x240]
jne 0xb8f052
movzx ecx, byte [edi + edx]
movzx eax, byte [esi + eax + 0x224]
xor ecx, eax
mov byte [edi], cl
jmp 0xb8f060
mov cl, byte [edi]
mov al, byte [esi + eax + 0x224]
xor al, cl
mov byte [edi + edx], al
mov eax, dword [esi + 0x240]
xor byte [esi + eax + 0x1f4], cl
inc dword [esi + 0x240]
lea eax, [esi + eax + 0x1f4]
inc ebx
inc edi
cmp ebx, dword [ebp + 0x10]
jb 0xb8efb7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x10
pop ebx
mov esp, ebp
pop ebp
ret