Function at 0x593140
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [ecx + 0x1c]
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
lea eax, [edx + 2]
shl eax, 4
shl edx, 4
mov eax, dword [eax + ecx]
lea ebx, [edx + ecx]
xor eax, esi
mov esi, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov edx, dword [ebx + 0x24]
and eax, 0xff
xor edx, esi
mov esi, dword [ebx + 0x28]
xor esi, dword [edi + 8]
mov ebx, dword [ebx + 0x2c]
xor ebx, dword [edi + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], esi
and edx, 0xff
mov edi, dword [ebp - 0xd]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xa]
and edi, 0xff
and ebx, 0xff
and esi, 0xff
mov edi, dword [edi*4 + 0x73bd18]
xor edi, dword [ebx*4 + 0x73b918]
mov ebx, dword [ebp - 7]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x73b518]
mov ebx, dword [eax*4 + 0x73b118]
mov eax, dword [ebp + 0x10]
xor edi, ebx
mov ebx, dword [ebp - 6]
mov dword [eax], edi
mov edi, dword [ebp - 9]
and edi, 0xff
and ebx, 0xff
mov edi, dword [edi*4 + 0x73bd18]
xor edi, dword [ebx*4 + 0x73b918]
mov ebx, dword [ebp - 0x13]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x73b518]
mov ebx, dword [edx*4 + 0x73b118]
mov edx, dword [ebp - 5]
xor edi, ebx
and edx, 0xff
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x12]
mov edx, dword [edx*4 + 0x73bd18]
and edi, 0xff
mov ebx, dword [edi*4 + 0x73b918]
mov edi, dword [ebp - 0xf]
and edi, 0xff
xor edx, ebx
mov ebx, dword [edi*4 + 0x73b518]
mov edi, dword [esi*4 + 0x73b118]
xor edx, ebx
mov esi, dword [ebp - 0xe]
xor edx, edi
and esi, 0xff
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x11]
mov ebx, dword [esi*4 + 0x73b918]
and edx, 0xff
mov edi, dword [edx*4 + 0x73bd18]
mov edx, dword [ebp - 0xb]
and edx, 0xff
xor edi, ebx
mov ebx, dword [edx*4 + 0x73b518]
mov edx, dword [ebp - 8]
and edx, 0xff
xor edi, ebx
xor edi, dword [edx*4 + 0x73b118]
mov dword [eax + 0xc], edi
mov edx, dword [ecx + 0x1c]
dec edx
cmp edx, 1
jle 0x59340d
mov esi, edx
shl esi, 4
dec edx
lea edi, [esi + ecx + 0x24]
mov dword [ebp + 0x10], edx
mov dword [ebp + 0xc], edi
mov ecx, dword [edi - 4]
mov ebx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [edi]
xor ecx, ebx
mov ebx, dword [eax + 8]
xor edx, esi
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
xor esi, ebx
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0x10], edx
xor edi, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xd]
mov ebx, dword [ebp - 0xa]
and edi, 0xff
and ebx, 0xff
mov dword [ebp - 0x14], ecx
mov edi, dword [edi*4 + 0x73bd18]
and ecx, 0xff
xor edi, dword [ebx*4 + 0x73b918]
mov ebx, dword [ebp - 7]
and ebx, 0xff
and edx, 0xff
and esi, 0xff
xor edi, dword [ebx*4 + 0x73b518]
mov ebx, dword [ecx*4 + 0x73b118]
mov ecx, dword [ebp - 9]
xor edi, ebx
and ecx, 0xff
mov dword [eax], edi
mov edi, dword [ebp - 6]
mov ecx, dword [ecx*4 + 0x73bd18]
and edi, 0xff
mov ebx, dword [edi*4 + 0x73b918]
mov edi, dword [ebp - 0x13]
and edi, 0xff
xor ecx, ebx
mov ebx, dword [edi*4 + 0x73b518]
mov edi, dword [edx*4 + 0x73b118]
xor ecx, ebx
mov edx, dword [ebp - 5]
xor ecx, edi
and edx, 0xff
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x12]
mov edx, dword [edx*4 + 0x73bd18]
and ecx, 0xff
mov edi, dword [ecx*4 + 0x73b918]
mov ecx, dword [ebp - 0xf]
and ecx, 0xff
xor edx, edi
mov edi, dword [ecx*4 + 0x73b518]
mov ecx, dword [ebp - 0xe]
xor edx, edi
mov edi, dword [esi*4 + 0x73b118]
xor edx, edi
and ecx, 0xff
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x11]
mov edi, dword [ecx*4 + 0x73b918]
mov ecx, dword [ebp - 0xb]
and ecx, 0xff
and edx, 0xff
mov ebx, dword [ecx*4 + 0x73b518]
mov ecx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x73bd18]
and ecx, 0xff
xor edx, edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ecx*4 + 0x73b118]
mov ecx, dword [ebp + 0x10]
xor edx, ebx
sub edi, 0x10
xor edx, esi
dec ecx
mov dword [eax + 0xc], edx
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], ecx
jne 0x5932b4
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x30]
mov edi, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
xor esi, edi
mov edi, dword [ecx + 0x34]
xor edi, edx
mov edx, dword [ecx + 0x38]
xor edx, ebx
mov ebx, dword [ecx + 0x3c]
xor ebx, dword [eax + 0xc]
mov dword [ebp - 0x14], esi
and esi, 0xff
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
mov bl, byte [esi + 0x73c118]
mov esi, dword [ebp - 7]
and esi, 0xff
mov byte [eax], bl
and edi, 0xff
and edx, 0xff
mov bl, byte [esi + 0x73c118]
mov esi, dword [ebp - 0xa]
and esi, 0xff
mov byte [eax + 1], bl
mov bl, byte [esi + 0x73c118]
mov esi, dword [ebp - 0xd]
and esi, 0xff
mov byte [eax + 2], bl
mov bl, byte [esi + 0x73c118]
mov esi, dword [ebp - 0x13]
mov byte [eax + 3], bl
mov bl, byte [edi + 0x73c118]
and esi, 0xff
mov byte [eax + 4], bl
mov bl, byte [esi + 0x73c118]
mov esi, dword [ebp - 6]
and esi, 0xff
mov byte [eax + 5], bl
mov bl, byte [esi + 0x73c118]
mov esi, dword [ebp - 9]
and esi, 0xff
mov byte [eax + 6], bl
mov bl, byte [esi + 0x73c118]
mov esi, dword [ebp - 8]
mov byte [eax + 7], bl
mov dl, byte [edx + 0x73c118]
mov byte [eax + 8], dl
mov edx, dword [ebp - 0xf]
and edx, 0xff
and esi, 0xff
mov ebx, dword [eax]
mov dl, byte [edx + 0x73c118]
mov byte [eax + 9], dl
mov edx, dword [ebp - 0x12]
and edx, 0xff
mov dl, byte [edx + 0x73c118]
mov byte [eax + 0xa], dl
mov edx, dword [ebp - 5]
and edx, 0xff
mov dl, byte [edx + 0x73c118]
mov byte [eax + 0xb], dl
mov dl, byte [esi + 0x73c118]
mov byte [eax + 0xc], dl
mov edx, dword [ebp - 0xb]
and edx, 0xff
mov dl, byte [edx + 0x73c118]
mov byte [eax + 0xd], dl
mov edx, dword [ebp - 0xe]
and edx, 0xff
mov dl, byte [edx + 0x73c118]
mov byte [eax + 0xe], dl
mov edx, dword [ebp - 0x11]
and edx, 0xff
mov dl, byte [edx + 0x73c118]
mov byte [eax + 0xf], dl
mov edx, dword [ecx + 0x20]
xor ebx, edx
mov dword [eax], ebx
mov edx, dword [ecx + 0x24]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
xor edi, edx
mov dword [eax + 4], edi
mov edx, dword [ecx + 0x28]
xor esi, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 8], esi
mov ecx, dword [ecx + 0x2c]
xor edx, ecx
pop edi
pop esi
mov dword [eax + 0xc], edx
pop ebx
mov esp, ebp
pop ebp
ret