Function at 0x5bc454
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x24]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 0x24], edi
push dword [ebp + 0xc]
mov dword [ebp - 0x20], edi
call fcn.005bc01e
add esp, 0x28
test al, al
jne 0x5bc4a3
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xa
jmp 0x5bc61f
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
test bl, 0x10
mov esi, eax
jne 0x5bc4b8
test ebx, 0x400000
je 0x5bc4bc
sar eax, 1
mov esi, eax
mov eax, ebx
and eax, 0x40
je 0x5bc4c5
sar esi, 1
test ebx, 0x40000
je 0x5bc4d7
cmp eax, edi
je 0x5bc4d7
and bh, 0xef
mov dword [ebp + 0x10], ebx
mov ecx, ebx
mov eax, 0xff
and cl, 0x40
push eax
neg cl
sbb ecx, ecx
and cl, 0x7f
add ecx, 0x80
push ecx
push eax
push dword [ebp - 0x10]
push ebx
push esi
push dword [ebp + 8]
call fcn.005b817c
mov esi, eax
cmp esi, edi
jne 0x5bc514
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x67d240]
mov dword [eax], ecx
jmp 0x5bc61f
mov eax, dword [esi + 0x10c]
dec eax
push eax
push edi
push esi
call fcn.005b8ff0
mov eax, dword [ebp - 0xc]
push edi
push dword [ebp - 0x14]
mov dword [esi + 0x168], eax
push dword [ebp + 0xc]
call fcn.005b242c
mov eax, dword [esi + 0x168]
add esp, 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push edi
push esi
call fcn.005b8d9b
test al, al
jne 0x5bc56a
push esi
call fcn.005b820c
jmp 0x5bc504
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp dword [eax + 4], ecx
jne 0x5bc578
cmp dword [eax], ecx
je 0x5bc580
test ebx, 0x400000
je 0x5bc5a4
push dword [ebp + 0xc]
test bl, 0x10
je 0x5bc592
mov eax, dword [ebp - 4]
shr eax, 1
push eax
push 2
jmp 0x5bc597
push dword [ebp - 4]
push 1
push dword [ebp + 8]
call fcn.005b21b0
jmp 0x5bc639
mov edi, 0x654248
push 0x31c
push edi
push dword [ebp - 4]
push ecx
call fcn.005b15c2
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x10], ebx
jne 0x5bc5ce
push esi
call fcn.005b820c
push 0xc
jmp 0x5bc614
push dword [ebp + 0xc]
push dword [ebp - 4]
push 1
push ebx
call fcn.005b21b0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push ebx
push dword [esi + 0x168]
call fcn.005bc316
add esp, 0x24
test al, al
jne 0x5bc626
push esi
call fcn.005b820c
push 0x32a
push edi
push dword [ebp - 0x10]
push 0
call fcn.005b156b
add esp, 0x10
push 0xb
mov ecx, dword [ebp + 0x14]
pop eax
mov dword [0x67d240], eax
mov dword [ecx], eax
xor eax, eax
jmp 0x5bc6db
push 0x330
push edi
push dword [ebp - 0x10]
push 0
call fcn.005b156b
mov ebx, dword [ebp + 0x10]
add esp, 0x10
test bl, 8
je 0x5bc671
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jbe 0x5bc655
xor byte [eax], 0x80
inc eax
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x5bc64b
lea eax, [esi + 0x124]
mov edx, 0xffffff7f
and ebx, edx
mov ecx, 0x100
mov edi, dword [eax]
or ebx, ecx
and edi, edx
or edi, ecx
mov dword [eax], edi
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp + 8]
push esi
call fcn.005b8e38
mov eax, dword [ebp - 8]
test bl, 0x10
je 0x5bc68d
sar eax, 1
test bl, 0x40
je 0x5bc694
sar eax, 1
xor edi, edi
cmp dword [ebp - 0x24], edi
jne 0x5bc6ab
cmp dword [ebp - 0x20], edi
jne 0x5bc6ab
dec eax
push eax
push edi
push esi
call fcn.005b8ff0
jmp 0x5bc6c9
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push esi
call fcn.005b8ff0
test bl, 1
jne 0x5bc6c9
and ebx, 0xfffffffa
or ebx, 2
push ebx
push esi
call fcn.005b8e81
push dword [esi + 0x168]
call fcn.005bc2c9
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret