Function at 0x5b8e40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xe0
call fcn.0045cf80
mov eax, dword [0x673010]
xor eax, esp
mov dword [esp + 0xdc], eax
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0x104]
push ebx
mov ebx, dword [esp + 0xf8]
push ebp
mov ebp, dword [esp + 0xf8]
push esi
mov esi, dword [esp + 0x108]
mov dword [esp + 0xc], eax
mov eax, dword [edx]
mov ecx, eax
push edi
sub ecx, esi
mov dword [esp + 0x14], eax
xor edi, edi
mov dword [esp + 0x18], ecx
cmp dword [esp + 0xf8], esi
jb 0x5b8eb2
cmp esi, 0x40
ja 0x5b8eb2
test esi, esi
jne 0x5b8ecd
cmp dword [esp + 0x110], edi
jne 0x5b90cb
xor eax, eax
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045bfb6
add esp, 0xe0
ret
cmp dword [esp + 0x108], 1
mov dword [edx], ecx
jne 0x5b8efa
test ebp, ebp
je 0x5b8ee9
mov eax, dword [esp + 0xfc]
add eax, ecx
mov dword [ebp], eax
test ebx, ebx
je 0x5b90cb
mov dword [ebx], edi
mov eax, 1
jmp 0x5b8eb4
push 0
push esi
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
call fcn.004d00a0
add esp, 0x10
test eax, eax
jle 0x5b8eb2
test ebp, ebp
je 0x5b8eb2
test ebx, ebx
je 0x5b8eb2
push 0x104
push str.ssl_record_tls_pad.c
push esi
call fcn.004a6ea0
add esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [ebp], eax
test eax, eax
je 0x5b8eb2
lea ecx, [esp + 0x6c]
mov dword [ebx], 1
neg ecx
lea edx, [esp + 0x6c]
and ecx, 0x3f
lea eax, [esi + 0x100]
add edx, ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x24], edx
cmp ecx, eax
jbe 0x5b8f70
mov edi, ecx
sub edi, esi
sub edi, 0x100
push esi
xor ebp, ebp
mov dword [esp + 0x24], 0
push ebp
push edx
call fcn.005bbf50
add esp, 0xc
xor ebx, ebx
cmp edi, dword [esp + 0xf8]
jae 0x5b9016
mov ecx, edi
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
nop
xor ecx, dword [esp + 0x14]
mov eax, edi
xor eax, dword [esp + 0x18]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, edi
xor eax, dword [esp + 0x14]
neg edx
or ecx, eax
mov eax, edx
or eax, dword [esp + 0x20]
xor ecx, edi
shr ecx, 0x1f
and edx, ebx
neg ecx
or ebp, edx
mov edx, dword [esp + 0x24]
and ecx, eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x20], ecx
mov al, byte [edi + eax]
inc edi
and al, cl
or byte [ebx + edx], al
inc ebx
mov ecx, ebx
mov eax, esi
sub ecx, esi
xor eax, ebx
xor ecx, esi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp edi, dword [esp + 0xf8]
jb 0x5b8fa0
jmp 0x5b901a
mov edx, dword [esp + 0x24]
test esi, esi
je 0x5b90cb
movzx eax, byte [esp + 0x110]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
not eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
sub eax, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], eax
mov eax, ebp
lea edi, [edi + 1]
and eax, 0xffffffdf
mov bl, byte [eax + edx]
mov eax, ebp
or eax, 0x20
mov cl, byte [eax + edx]
mov eax, ebp
and eax, 0x20
inc ebp
dec eax
shr eax, 0x1f
neg al
movzx eax, al
mov dword [esp + 0x18], eax
not eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
and al, cl
and dl, bl
or dl, al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
and cl, byte [eax + edi - 1]
mov eax, dword [esp + 0x18]
and al, dl
mov edx, dword [esp + 0x24]
or al, cl
mov ecx, ebp
sub ecx, esi
mov byte [edi - 1], al
xor ecx, esi
mov eax, esi
xor eax, ebp
or ecx, eax
xor ecx, ebp
shr ecx, 0x1f
neg ecx
and ebp, ecx
sub dword [esp + 0x10], 1
jne 0x5b9046
mov eax, 1
jmp 0x5b8eb4