Function at 0x5864b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x174]
mov edx, dword [ebx + 0x160]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x164]
mov dword [ebp - 0x18], eax
mov eax, esi
add eax, dword [ebx + 0x38]
mov dword [ebp - 0x1c], edx
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x5866c0
jb 0x5864f7
cmp eax, 0xffffffe0
ja 0x5866c0
cmp dword [ebx + 0x16c], 0
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], ecx
je 0x58651d
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call edx
add esp, 8
mov dword [ebx + 0x16c], 0
mov eax, dword [ebx + 0xc]
push edi
mov edi, dword [ebx + 0x168]
mov dword [ebp - 0x14], edi
bswap eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x586594
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
nop
test esi, esi
je 0x58657c
mov cl, byte [eax]
dec esi
inc eax
mov dword [ebp + 0x14], esi
mov dword [ebp - 4], eax
mov al, byte [edi + ebx + 0x10]
xor al, cl
mov byte [edx], al
lea eax, [edi + ebx]
xor byte [eax + 0x40], cl
inc edx
mov eax, dword [ebp - 4]
inc edi
and edi, 0xf
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edi
jne 0x586540
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [ebp - 0x1c]
add esp, 8
jmp 0x5865a0
test edi, edi
jne 0x5866b1
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [ebp - 0x1c]
add esp, 8
jmp 0x5865a0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp esi, 0xc00
jb 0x586616
mov edi, dword [ebp - 4]
lea ecx, [ebx + 0x60]
mov eax, 0xaaaaaaab
mul esi
shr edx, 0xb
mov dword [ebp + 0x14], edx
jmp 0x5865c0
push 0xc00
push edi
push ecx
lea eax, [ebx + 0x40]
push eax
call dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push 0xc0
push dword [ebp - 8]
push edi
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add esp, 0x24
add dword [ebp - 8], 0xc00
add ecx, 0xc0
mov dword [ebp - 0xc], ecx
add edi, 0xc00
bswap ecx
sub esi, 0xc00
mov dword [ebx + 0xc], ecx
dec dword [ebp + 0x14]
lea ecx, [ebx + 0x60]
jne 0x5865c0
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp + 0x14], esi
mov eax, esi
and eax, 0xfffffff0
mov dword [ebp - 0x1c], eax
je 0x586660
push eax
push dword [ebp - 4]
mov esi, eax
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
shr esi, 4
push eax
call dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add esp, 0x24
add eax, esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], eax
add dword [ebp - 4], eax
sub esi, eax
test esi, esi
je 0x5866b1
push dword [ebp - 0x10]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x170]
push ebx
call eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
inc eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 8]
sub dword [ebp - 4], eax
lea edx, [edi + eax]
lea eax, [ebx + 0x40]
mov ebx, dword [ebp - 4]
mov dword [ebp + 0x14], eax
mov cl, byte [ebx + edx]
lea edx, [edx + 1]
xor byte [eax + edi], cl
mov eax, dword [ebp + 0x14]
mov al, byte [eax + edi - 0x30]
inc edi
xor al, cl
mov byte [edx - 1], al
mov eax, dword [ebp + 0x14]
dec esi
jne 0x586692
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x168], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret