Function at 0x592410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edx
push eax
mov eax, 0x24
call fcn.00602270
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ebx, ebx
je 0x592449
test esi, esi
je 0x592449
mov edi, eax
and edi, 7
test edi, edi
je 0x59245d
mov eax, 0xffffffff
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret 8
test eax, eax
jl 0x592449
lea ecx, [esi + 4]
lea edi, [eax + esi]
test edx, edx
je 0x5929d9
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 esi, edi
jae 0x5929c8
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi]
mov dword [ebp - 8], edi
mov eax, dword [ecx]
mov dword [ebp - 4], 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 edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
xor edx, dword [ebx + 0xc44]
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
xor eax, dword [ebx + 0xc40]
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
xor edx, dword [ebx + 0xc3c]
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
xor eax, dword [ebx + 0xc38]
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
xor edx, dword [ebx + 0xc34]
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
xor eax, dword [ebx + 0xc30]
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
xor edx, dword [ebx + 0xc2c]
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
xor eax, dword [ebx + 0xc28]
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
xor edx, dword [ebx + 0xc24]
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
xor eax, dword [ebx + 0xc20]
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
xor edx, dword [ebx + 0xc1c]
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
xor eax, dword [ebx + 0xc18]
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
xor edx, dword [ebx + 0xc14]
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
xor eax, dword [ebx + 0xc10]
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
xor edx, dword [ebx + 0xc0c]
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
xor eax, dword [ebx + 0xc08]
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 + 0xc04]
xor esi, dword [ebp - 0x1c]
xor edx, esi
mov dword [ebp - 8], edx
mov edx, dword [ebx + 0xc00]
xor edx, dword [ebp - 0x18]
xor eax, edx
mov dword [ebp - 4], 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 - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov dword [esi], edx
add esi, 8
mov dword [ebp - 0x14], esi
add ecx, 8
mov edi, dword [ebp - 0x20]
cmp esi, edi
jb 0x5924a2
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jmp 0x592494