Function at 0x51d7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x51d7c4
push 0x126
push str.srcprngs_sober128.c
push str.out___NULL
call fcn.0052cf10
add esp, 0xc
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x51d7e2
push 0x127
push str.srcprngs_sober128.c
push str.prng___NULL
call fcn.0052cf10
add esp, 0xc
cmp dword [esi + 0x90], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], edi
je 0x51d819
test edi, edi
je 0x51d816
mov al, byte [esi + 0x8c]
dec edi
xor byte [ebx], al
inc ebx
shr dword [esi + 0x8c], 8
add dword [esi + 0x90], 0xfffffff8
cmp dword [esi + 0x90], 0
jne 0x51d7f1
mov dword [ebp + 0xc], edi
cmp edi, 0x44
jb 0x51de0a
mov eax, 0xf0f0f0f1
mul edi
shr edx, 6
mov dword [ebp + 0x10], edx
nop
movzx eax, byte [esi + 3]
mov edi, dword [esi]
mov ecx, dword [esi + 4]
shl edi, 8
xor edi, dword [eax*4 + 0x55c1f0]
xor edi, dword [esi + 0x3c]
xor edi, dword [esi + 0x10]
add ecx, edi
mov dword [esi], edi
mov eax, ecx
shr eax, 0x18
push ebx
mov edx, dword [eax*4 + 0x55c5f0]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 8]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x1c]
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x38]
push eax
call fcn.0051e140
movzx eax, byte [esi + 7]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x40]
xor edx, dword [esi + 0x14]
add ecx, edx
mov dword [esi + 4], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 4]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0xc]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x20]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x3c]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0xb]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi]
xor edx, dword [esi + 0x18]
add ecx, edx
mov dword [esi + 8], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 8]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x10]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x24]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x40]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0xf]
mov edx, dword [esi + 0xc]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 4]
xor edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
add ecx, edx
mov dword [esi + 0xc], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0xc]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x14]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x28]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x13]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 8]
xor edx, dword [esi + 0x20]
add ecx, edx
mov dword [esi + 0x10], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x10]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x18]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x2c]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 4]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x17]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0xc]
xor edx, dword [esi + 0x24]
add ecx, edx
mov dword [esi + 0x14], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x14]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x1c]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x30]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 8]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x1b]
mov edx, dword [esi + 0x18]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x28]
xor edx, dword [esi + 0x10]
mov dword [esi + 0x18], edx
mov ecx, dword [esi + 0x1c]
add ecx, edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x18]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x20]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x34]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0xc]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x1f]
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x2c]
xor edx, dword [esi + 0x14]
add ecx, edx
mov dword [esi + 0x1c], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x1c]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x24]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x38]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x10]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x23]
add esp, 0x40
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x30]
xor edx, dword [esi + 0x18]
add ecx, edx
mov dword [esi + 0x20], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x20]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x28]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x3c]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x14]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x27]
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x34]
xor edx, dword [esi + 0x1c]
mov dword [esi + 0x24], edx
add ecx, edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x24]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x2c]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x40]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x18]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x2b]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x38]
xor edx, dword [esi + 0x20]
add ecx, edx
mov dword [esi + 0x28], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x28]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x30]
xor edx, dword [esi + 0x88]
add edx, dword [esi]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x1c]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x2f]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x3c]
xor edx, dword [esi + 0x24]
add ecx, edx
mov dword [esi + 0x2c], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x2c]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x34]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 4]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x20]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x33]
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x40]
xor edx, dword [esi + 0x28]
add ecx, edx
mov dword [esi + 0x30], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
xor edx, ecx
lea eax, [ebx + 0x30]
ror edx, 8
add edx, dword [esi + 0x38]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 8]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x24]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x37]
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x2c]
xor edx, dword [esi]
add ecx, edx
mov dword [esi + 0x34], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x34]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x3c]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0xc]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x28]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x3b]
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0x30]
xor edx, dword [esi + 4]
add ecx, edx
mov dword [esi + 0x38], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x38]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 0x40]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x10]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x2c]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x3f]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 8]
xor edx, dword [esi + 0x34]
add ecx, edx
mov dword [esi + 0x3c], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
xor edx, ecx
ror edx, 8
add edx, dword [esi]
xor edx, dword [esi + 0x88]
lea eax, [ebx + 0x3c]
add edx, dword [esi + 0x14]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x30]
push eax
call fcn.0051e140
movzx eax, byte [esi + 0x43]
add esp, 0x40
mov edx, dword [esi + 0x40]
mov ecx, dword [esi]
shl edx, 8
xor edx, dword [eax*4 + 0x55c1f0]
xor edx, dword [esi + 0xc]
xor edx, dword [esi + 0x38]
add ecx, edx
mov dword [esi + 0x40], edx
mov eax, ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x55c5f0]
lea eax, [ebx + 0x40]
xor edx, ecx
ror edx, 8
add edx, dword [esi + 4]
xor edx, dword [esi + 0x88]
add edx, dword [esi + 0x18]
push eax
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x55c5f0]
xor eax, edx
add eax, dword [esi + 0x34]
push eax
call fcn.0051e140
mov edi, dword [ebp + 0xc]
add esp, 8
sub edi, 0x44
add ebx, 0x44
ret
inc esp
dec dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
jne 0x51d830
cmp edi, 4
jb 0x51de3e
mov eax, edi
shr eax, 2
mov dword [ebp + 0xc], eax
push esi
call fcn.0051e150
add esp, 4
push ebx
push esi
call fcn.0051e1e0
add esp, 4
push eax
call fcn.0051e140
add esp, 8
add ebx, 4
sub edi, 4
dec dword [ebp + 0xc]
jne 0x51de17
test edi, edi
je 0x51de86
push esi
call fcn.0051e150
push esi
call fcn.0051e1e0
add esp, 8
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], 0x20
test edi, edi
je 0x51de86
mov cl, byte [esi + 0x8c]
dec edi
xor byte [ebx], cl
inc ebx
shr dword [esi + 0x8c], 8
add dword [esi + 0x90], 0xfffffff8
cmp dword [esi + 0x90], 0
jne 0x51de61
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret