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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov edx, dword [ebp + 8]
push ebx
xor eax, eax
push esi
mov ebx, dword [edx + 0x1c]
push edi
sub ebx, 6
mov dword [ebp - 4], eax
cmp ebx, eax
mov dword [ebp - 0xc], ebx
jle 0x5929b8
mov esi, dword [ebp + 0xc]
mov ecx, ebx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov esi, 4
test ebx, ebx
jle 0x592a1a
mov dword [ebp - 8], 8
mov edi, dword [ebp - 4]
cmp edi, dword [edx + 0x1c]
ja 0x592a1a
cmp ecx, ebx
jge 0x592a01
lea edi, [ebp + ecx*4 - 0x2c]
mov dword [ebp + 0xc], edi
cmp eax, esi
jge 0x592a03
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
add esi, eax
inc ecx
mov edi, dword [edi]
mov dword [edx + esi*4], edi
mov edi, dword [ebp + 0xc]
mov esi, 4
add edi, esi
inc eax
cmp ecx, ebx
mov dword [ebp + 0xc], edi
jl 0x5929dd
cmp eax, esi
jne 0x592a16
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
add eax, esi
inc edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
xor eax, eax
cmp ecx, ebx
jl 0x5929ca
mov ecx, dword [ebp - 4]
mov esi, dword [edx + 0x1c]
cmp ecx, esi
ja 0x592b9f
mov esi, 0x73d218
jmp 0x592a32
mov esi, dword [ebp - 8]
mov cl, byte [ebp - 0x2c]
xor edx, edx
mov dl, byte [ebp + ebx*4 - 0x2f]
add esi, 4
mov dword [ebp - 8], esi
xor cl, byte [edx + 0x73a018]
xor edx, edx
mov byte [ebp - 0x2c], cl
mov dl, byte [ebp + ebx*4 - 0x2e]
mov dl, byte [edx + 0x73a018]
xor byte [ebp - 0x2b], dl
xor edx, edx
mov dl, byte [ebp + ebx*4 - 0x2d]
mov dl, byte [edx + 0x73a018]
xor byte [ebp - 0x2a], dl
xor edx, edx
mov dl, byte [ebp + ebx*4 - 0x30]
mov dl, byte [edx + 0x73a018]
xor byte [ebp - 0x29], dl
mov dl, byte [esi - 4]
xor cl, dl
cmp ebx, 8
mov byte [ebp - 0x2c], cl
je 0x592aa7
cmp ebx, 1
jle 0x592b31
lea ecx, [ebp - 0x28]
lea edx, [ebx - 1]
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
xor edi, esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x592a93
jmp 0x592b31
lea ecx, [ebp - 0x28]
mov edx, 3
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
xor edi, esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x592aaf
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
mov dl, byte [ecx + 0x73a018]
mov cl, byte [ebp - 0x1c]
xor cl, dl
mov byte [ebp - 0x1c], cl
mov ecx, dword [ebp - 0x1f]
and ecx, 0xff
mov dl, byte [ecx + 0x73a018]
mov cl, byte [ebp - 0x1b]
xor cl, dl
mov byte [ebp - 0x1b], cl
mov ecx, dword [ebp - 0x1e]
and ecx, 0xff
mov dl, byte [ecx + 0x73a018]
mov cl, byte [ebp - 0x1a]
xor cl, dl
mov byte [ebp - 0x1a], cl
mov ecx, dword [ebp - 0x1d]
and ecx, 0xff
mov dl, byte [ecx + 0x73a018]
mov cl, byte [ebp - 0x19]
xor cl, dl
mov edx, 3
mov byte [ebp - 0x19], cl
lea ecx, [ebp - 0x18]
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
xor edi, esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x592b22
xor ecx, ecx
test ebx, ebx
jle 0x592b90
mov edx, dword [ebp - 4]
lea edx, [edx*4 + 8]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp esi, dword [edx + 0x1c]
ja 0x592b90
cmp ecx, ebx
jge 0x592b75
lea edx, [ebp + ecx*4 - 0x2c]
cmp eax, 4
jge 0x592b78
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [edx]
add esi, eax
inc ecx
add edx, 4
mov dword [ebx + esi*4], edi
mov ebx, dword [ebp - 0xc]
inc eax
cmp ecx, ebx
jl 0x592b57
cmp eax, 4
jne 0x592b8c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
add eax, 4
inc edx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], edx
xor eax, eax
cmp ecx, ebx
jl 0x592b44
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [edx + 0x1c]
jbe 0x592a2f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret