Function at 0x591d58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edx
push eax
mov eax, 0x1c
call fcn.006021b0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ebx, ebx
je 0x591d91
test ecx, ecx
je 0x591d91
mov esi, eax
and esi, 7
test esi, esi
je 0x591da2
mov eax, 0xffffffff
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 8
test eax, eax
jl 0x591d91
lea esi, [ecx + 4]
lea edi, [eax + ecx]
test edx, edx
je 0x592338
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov edx, dword [edx + 4]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
xchg al, ah
rol eax, 0x10
xchg al, ah
xchg dl, dh
ror edx, 0x10
xchg dl, dh
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
cmp ecx, edi
jae 0x592327
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
mov dword [ebp - 4], esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xchg al, ah
rol eax, 0x10
xchg al, ah
xchg dl, dh
ror edx, 0x10
xchg dl, dh
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc00]
xor edx, esi
mov dword [ebp - 8], edx
mov edi, edx
shr edi, 0x18
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, edx
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, edx
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc04]
xor eax, esi
mov dword [ebp - 4], eax
mov edi, eax
shr edi, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, eax
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor edx, esi
mov dword [ebp - 8], edx
mov esi, dword [ebx + 0xc08]
xor edx, esi
mov dword [ebp - 8], edx
mov edi, edx
shr edi, 0x18
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, edx
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, edx
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc0c]
xor eax, esi
mov dword [ebp - 4], eax
mov edi, eax
shr edi, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, eax
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor edx, esi
mov dword [ebp - 8], edx
mov esi, dword [ebx + 0xc10]
xor edx, esi
mov dword [ebp - 8], edx
mov edi, edx
shr edi, 0x18
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, edx
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, edx
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc14]
xor eax, esi
mov dword [ebp - 4], eax
mov edi, eax
shr edi, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, eax
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor edx, esi
mov dword [ebp - 8], edx
mov esi, dword [ebx + 0xc18]
xor edx, esi
mov dword [ebp - 8], edx
mov edi, edx
shr edi, 0x18
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, edx
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, edx
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc1c]
xor eax, esi
mov dword [ebp - 4], eax
mov edi, eax
shr edi, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, eax
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor edx, esi
mov dword [ebp - 8], edx
mov esi, dword [ebx + 0xc20]
xor edx, esi
mov dword [ebp - 8], edx
mov edi, edx
shr edi, 0x18
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, edx
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, edx
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc24]
xor eax, esi
mov dword [ebp - 4], eax
mov edi, eax
shr edi, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, eax
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor edx, esi
mov dword [ebp - 8], edx
mov esi, dword [ebx + 0xc28]
xor edx, esi
mov dword [ebp - 8], edx
mov edi, edx
shr edi, 0x18
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, edx
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, edx
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc2c]
xor eax, esi
mov dword [ebp - 4], eax
mov edi, eax
shr edi, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, eax
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor edx, esi
mov dword [ebp - 8], edx
mov esi, dword [ebx + 0xc30]
xor edx, esi
mov dword [ebp - 8], edx
mov edi, edx
shr edi, 0x18
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, edx
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, edx
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc34]
xor eax, esi
mov dword [ebp - 4], eax
mov edi, eax
shr edi, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, eax
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor edx, esi
mov dword [ebp - 8], edx
mov esi, dword [ebx + 0xc38]
xor edx, esi
mov dword [ebp - 8], edx
mov edi, edx
shr edi, 0x18
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, edx
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, edx
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc3c]
xor eax, esi
mov dword [ebp - 4], eax
mov edi, eax
shr edi, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [ebx + esi*4]
add esi, dword [ebx + edi*4 + 0x400]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebx + edi*4 + 0xc48]
mov edi, eax
and edi, 0xff
add esi, dword [ebx + edi*4 + 0x800]
xor edx, esi
mov dword [ebp - 8], edx
mov esi, dword [ebx + 0xc40]
xor edx, esi
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebx + 0xc44]
xor eax, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xchg al, ah
rol eax, 0x10
xchg al, ah
xchg dl, dh
ror edx, 0x10
xchg dl, dh
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov dword [esi], edx
add ecx, 8
add esi, 8
mov dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x18]
cmp ecx, edi
jb 0x591de7
xor eax, eax
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jmp 0x591dd9