Function at 0x5b90a0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x654a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.004f0420
mov esi, dword [esp + 0x158]
xor ebx, ebx
mov dword [esp + 0x14c], ebx
mov eax, dword [esi + 0x538]
cmp eax, 0x10
jg 0x5b95c7
cmp eax, ebx
jl 0x5b95c7
cmp dword [esi + 0x534], ebx
jne 0x5b9452
cmp dword [esi + 0x530], ebx
jne 0x5b9146
cmp eax, 0xc
jne 0x5b9146
lea ebp, [esi + 0x520]
lea eax, [esi + 0x500]
mov ecx, ebp
mov edx, eax
mov byte [esi + 0x50c], bl
mov byte [esi + 0x50d], bl
mov edi, dword [ecx]
mov byte [esi + 0x50e], bl
mov dword [edx], edi
mov byte [esi + 0x50f], 1
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
jmp 0x5b9408
cmp eax, ebx
jbe 0x5b916a
mov ecx, 0xfffffb10
lea eax, [esi + 0x4f0]
sub ecx, esi
mov dl, byte [eax + 0x30]
xor byte [eax], dl
mov edi, dword [esi + 0x538]
inc eax
lea edx, [ecx + eax]
cmp edx, edi
jb 0x5b9157
mov eax, dword [esi + 0x538]
cmp eax, ebx
je 0x5b91b0
cdq
push ebx
push 8
push edx
push eax
call fcn.00643400
mov ebp, dword [esi + 0x540]
lea ecx, [esi + 0x4f0]
add ebp, eax
lea eax, [esp + 0x18]
mov dword [esi + 0x540], ebp
mov ebx, dword [esi + 0x544]
push eax
push ecx
adc ebx, edx
push esi
mov dword [esi + 0x544], ebx
call fcn.005b8d20
add esp, 0xc
lea ebp, [esi + 0x520]
xor edx, edx
mov eax, ebp
mov ecx, 0x38
mov dword [eax], edx
mov dword [eax + 4], edx
mov eax, dword [esi + 0x540]
mov edx, dword [esi + 0x544]
call fcn.00643780
mov byte [esi + 0x528], al
mov eax, dword [esi + 0x540]
mov edx, dword [esi + 0x544]
mov ecx, 0x30
call fcn.00643780
mov byte [esi + 0x529], al
mov eax, dword [esi + 0x540]
mov edx, dword [esi + 0x544]
mov ecx, 0x28
call fcn.00643780
mov byte [esi + 0x52a], al
mov eax, dword [esi + 0x540]
mov edx, dword [esi + 0x544]
mov ecx, 0x20
call fcn.00643780
mov byte [esi + 0x52b], al
mov eax, dword [esi + 0x540]
mov edx, dword [esi + 0x544]
mov ecx, 0x18
call fcn.00643780
mov byte [esi + 0x52c], al
mov eax, dword [esi + 0x540]
mov edx, dword [esi + 0x544]
mov ecx, 0x10
call fcn.00643780
mov byte [esi + 0x52d], al
mov eax, dword [esi + 0x540]
mov edx, dword [esi + 0x544]
mov ecx, 8
call fcn.00643780
mov byte [esi + 0x52e], al
mov cl, byte [esi + 0x540]
lea edi, [esi + 0x4f0]
mov byte [esi + 0x52f], cl
mov dl, byte [ebp]
mov cl, byte [esi + 0x522]
mov al, byte [edi]
xor al, dl
mov dl, byte [esi + 0x4f2]
mov byte [edi], al
mov al, byte [esi + 0x521]
mov bl, byte [esi + 0x4f1]
xor dl, cl
mov cl, byte [esi + 0x525]
xor bl, al
mov al, byte [esi + 0x4f3]
mov byte [esi + 0x4f2], dl
mov dl, byte [esi + 0x523]
mov byte [esi + 0x4f1], bl
mov bl, byte [esi + 0x4f4]
xor al, dl
mov dl, byte [esi + 0x4f5]
mov byte [esi + 0x4f3], al
mov al, byte [esi + 0x524]
xor dl, cl
mov cl, byte [esi + 0x528]
xor bl, al
mov al, byte [esi + 0x4f6]
mov byte [esi + 0x4f5], dl
mov dl, byte [esi + 0x526]
mov byte [esi + 0x4f4], bl
mov bl, byte [esi + 0x4f7]
xor al, dl
mov dl, byte [esi + 0x4f8]
mov byte [esi + 0x4f6], al
mov al, byte [esi + 0x527]
xor bl, al
mov al, byte [esi + 0x4f9]
xor dl, cl
mov byte [esi + 0x4f7], bl
mov byte [esi + 0x4f8], dl
mov dl, byte [esi + 0x529]
mov cl, byte [esi + 0x52b]
mov bl, byte [esi + 0x4fa]
xor al, dl
mov dl, byte [esi + 0x4fb]
mov byte [esi + 0x4f9], al
mov al, byte [esi + 0x52a]
xor dl, cl
mov cl, byte [esi + 0x52e]
xor bl, al
mov al, byte [esi + 0x4fc]
mov byte [esi + 0x4fb], dl
mov dl, byte [esi + 0x52c]
xor al, dl
mov dl, byte [esi + 0x4fe]
mov byte [esi + 0x4fa], bl
mov bl, byte [esi + 0x4fd]
mov byte [esi + 0x4fc], al
mov al, byte [esi + 0x52d]
xor dl, cl
xor bl, al
mov al, byte [esi + 0x4ff]
mov byte [esi + 0x4fe], dl
mov dl, byte [esi + 0x52f]
mov byte [esi + 0x4fd], bl
xor al, dl
mov byte [esi + 0x4ff], al
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.005b8d20
lea eax, [esi + 0x500]
mov ecx, edi
mov edx, eax
add esp, 0xc
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
xor edx, edx
mov dword [edi], edx
xor ebx, ebx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov edx, dword [eax]
lea ecx, [esi + 0x510]
mov dword [esi + 0x510], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
xor ecx, ecx
mov dword [ebp], ecx
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
mov dword [esi + 0x538], ebx
mov dword [esi + 0x540], ebx
mov dword [esi + 0x544], ebx
mov dword [esi + 0x534], 1
cmp dword [esi + 0x534], 1
jne 0x5b95b4
cmp dword [esi + 0x538], 0x10
jge 0x5b95b4
mov edx, dword [esp + 0x15c]
lea edi, [edx + 0x4c]
mov ecx, edi
call fcn.004dda10
mov ecx, edi
mov ebp, eax
call fcn.005a8750
mov ecx, dword [esi + 0x538]
xor edi, edi
cmp ecx, ebx
mov dword [esp + 0x10], eax
jne 0x5b9526
mov ecx, eax
and ecx, 0xfffffff0
mov dword [esp + 0x14], ecx
jbe 0x5b9524
lea ebx, [esi + 0x4f0]
mov eax, dword [edi + ebp]
mov ecx, dword [ebx]
xor ecx, eax
mov eax, dword [esi + 0x4f8]
mov dword [ebx], ecx
mov ecx, dword [edi + ebp + 4]
mov edx, dword [ebx + 4]
xor edx, ecx
mov dword [ebx + 4], edx
mov edx, dword [edi + ebp + 8]
xor eax, edx
mov dword [esi + 0x4f8], eax
mov eax, dword [edi + ebp + 0xc]
mov ecx, dword [esi + 0x4fc]
xor ecx, eax
mov dword [esi + 0x4fc], ecx
lea ecx, [esp + 0x18]
push ecx
push ebx
push esi
call fcn.005b8d20
mov eax, dword [esi + 0x540]
add esp, 0xc
add eax, 0x80
mov dword [esi + 0x540], eax
mov edx, dword [esi + 0x544]
mov eax, dword [esp + 0x14]
adc edx, 0
add edi, 0x10
cmp edi, eax
mov dword [esi + 0x544], edx
jb 0x5b94ab
mov eax, dword [esp + 0x10]
xor ebx, ebx
add ebp, edi
cmp edi, eax
jae 0x5b959c
sub eax, edi
mov edi, eax
mov edx, dword [esi + 0x538]
mov cl, byte [ebp]
lea eax, [esi + edx + 0x4f0]
mov dl, byte [esi + edx + 0x4f0]
xor dl, cl
inc ebp
mov byte [eax], dl
mov ecx, dword [esi + 0x538]
inc ecx
mov eax, ecx
mov dword [esi + 0x538], ecx
cmp eax, 0x10
jne 0x5b9599
lea edx, [esp + 0x18]
lea eax, [esi + 0x4f0]
push edx
push eax
push esi
call fcn.005b8d20
mov dword [esi + 0x538], ebx
mov ecx, dword [esi + 0x540]
add esp, 0xc
add ecx, 0x80
mov dword [esi + 0x540], ecx
mov eax, dword [esi + 0x544]
adc eax, ebx
mov dword [esi + 0x544], eax
dec edi
jne 0x5b952e
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], 0xffffffff
call fcn.004f0460
mov al, 1
jmp 0x5b95ee
mov ecx, dword [esp + 0x160]
push str.Internal_error_2
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x5b95d8
mov ecx, dword [esp + 0x160]
push str.Internal_error.
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], 0xffffffff
call fcn.004f0460
xor al, al
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 0x10