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

Disassembly:
sub esp, 0x28
xor eax, eax
push ebp
mov ebp, dword [esp + 0x30]
push edi
mov byte [esp + 0x10], 0
mov word [esp + 0x11], ax
mov byte [esp + 0x13], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.0056dec0
mov ecx, dword [esp + 0x38]
mov edi, dword [ecx + 4]
cmp edi, 0x20
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
jle 0x573999
pop edi
mov eax, 0xc
pop ebp
add esp, 0x28
ret
xor eax, eax
xor edx, edx
test edi, edi
push esi
jle 0x5739dd
mov esi, dword [ecx]
jmp 0x5739b0
movzx ecx, byte [esi + eax]
mov byte [esp + edx*4 + 0x14], cl
movzx ecx, byte [esi + eax + 1]
mov byte [esp + edx*4 + 0x15], cl
movzx ecx, byte [esi + eax + 2]
mov byte [esp + edx*4 + 0x16], cl
movzx ecx, byte [esi + eax + 3]
mov byte [esp + edx*4 + 0x17], cl
add eax, 4
add edx, 1
cmp eax, edi
jl 0x5739b0
push ebx
lea ebx, [edx + 6]
xor esi, esi
xor eax, eax
xor ecx, ecx
test edx, edx
mov dword [esp + 0x3c], ebx
mov dword [ebp], ebx
jle 0x573a2c
lea edi, [ebx + 1]
cmp esi, edi
jge 0x573a2c
cmp ecx, edx
jge 0x573a1a
lea ecx, [ecx]
cmp eax, 4
jge 0x573a1d
mov ebx, dword [esp + ecx*4 + 0x18]
lea edi, [eax + esi*4]
add ecx, 1
add eax, 1
cmp ecx, edx
mov dword [ebp + edi*4 + 0x10], ebx
jl 0x573a00
cmp eax, 4
jne 0x573a24
add esi, 1
xor eax, eax
cmp ecx, edx
mov ebx, dword [esp + 0x3c]
jl 0x5739f2
lea ecx, [ebx + 1]
cmp esi, ecx
jge 0x573b8f
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x40], 0x61fc28
jmp 0x573a50
movzx ecx, byte [esp + edx*4 + 0x15]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x18], cl
movzx ecx, byte [esp + edx*4 + 0x16]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x19], cl
movzx ecx, byte [esp + edx*4 + 0x17]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x1a], cl
movzx ecx, byte [esp + edx*4 + 0x14]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x1b], cl
mov ecx, dword [esp + 0x40]
movzx ecx, byte [ecx]
xor byte [esp + 0x18], cl
mov ecx, dword [esp + 0x18]
xor dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
xor ecx, dword [esp + 0x1c]
add dword [esp + 0x40], 4
xor ebx, ecx
mov dword [esp + 0x20], ecx
mov ecx, edx
sub ecx, 4
mov dword [esp + 0x24], ebx
je 0x573b39
sub ecx, 2
je 0x573b2d
sub ecx, 2
jne 0x573d32
movzx ecx, bl
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x28], cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x29], cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2a], cl
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2b], cl
mov ecx, dword [esp + 0x28]
xor dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
xor dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
xor dword [esp + 0x34], ecx
jmp 0x573b39
xor dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x28]
xor dword [esp + 0x2c], ecx
xor ecx, ecx
test edx, edx
jle 0x573b7c
nop
mov edi, dword [esp + 0x3c]
add edi, 1
cmp esi, edi
jge 0x573b7c
cmp ecx, edx
jge 0x573b6a
nop
cmp eax, 4
jge 0x573b6d
mov ebx, dword [esp + ecx*4 + 0x18]
lea edi, [eax + esi*4]
add ecx, 1
add eax, 1
cmp ecx, edx
mov dword [ebp + edi*4 + 0x10], ebx
jl 0x573b50
cmp eax, 4
jne 0x573b74
add esi, 1
xor eax, eax
cmp ecx, edx
mov ebx, dword [esp + 0x24]
jl 0x573b40
mov ecx, dword [esp + 0x3c]
add ecx, 1
cmp esi, ecx
jl 0x573a50
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
cmp edi, 1
jne 0x573d07
cmp ebx, edi
jle 0x573ca2
lea eax, [ebp + 0x28]
lea esi, [ebx - 1]
lea ebx, [ebx]
mov ecx, dword [eax - 8]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x6208a0]
xor edx, dword [ebx*4 + 0x6204a0]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x6200a0]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x61fca0]
mov ecx, dword [eax - 4]
mov dword [eax - 8], edx
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x6208a0]
xor edx, dword [ebx*4 + 0x6204a0]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x6200a0]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x61fca0]
mov ecx, dword [eax]
mov dword [eax - 4], edx
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x6208a0]
xor edx, dword [ebx*4 + 0x6204a0]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x6200a0]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x61fca0]
mov ecx, dword [eax + 4]
mov dword [eax], edx
mov ebx, ecx
shr ebx, 0x10
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x6208a0]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x6204a0]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x6200a0]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x61fca0]
add eax, 0x10
sub esi, 1
mov dword [eax - 0xc], edx
jne 0x573bb0
mov eax, dword [esp + 0x10]
cmp eax, 0x17
je 0x573cb0
cmp eax, 0x28
jne 0x573d07
mov ecx, dword [esp + 0x3c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x573d07
shl ecx, 4
lea edx, [ecx + ebp + 0x18]
lea ecx, [ebp + 0x18]
mov esi, eax
jmp 0x573cd0
mov ebx, dword [edx - 8]
mov eax, dword [ecx - 8]
mov dword [ecx - 8], ebx
mov ebx, dword [edx - 4]
mov dword [edx - 8], eax
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebx
mov ebx, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebx
mov dword [edx + 4], eax
add ecx, 0x10
sub edx, 0x10
sub esi, 1
jne 0x573cd0
mov eax, dword [esp + 0x10]
cmp eax, 0x17
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], ecx
je 0x573d3f
cmp eax, 0x28
je 0x573d3f
mov dword [ebp + 0x100], 0x575b30
mov dword [ebp + 0x104], 0x574b90
jmp 0x573d53
pop ebx
pop esi
pop edi
mov eax, 0xc
pop ebp
add esp, 0x28
ret
mov dword [ebp + 0x100], 0x575af0
mov dword [ebp + 0x104], 0x574b50
cmp ecx, 0x10
mov eax, 0x573930
je 0x573d73
cmp ecx, 0x18
je 0x573d73
cmp ecx, 0x20
je 0x573d73
mov dword [ebp + 0x100], eax
mov dword [ebp + 0x104], eax
test edi, edi
jne 0x573d87
pop ebx
pop esi
mov dword [ebp + 0x104], eax
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret
pop ebx
pop esi
mov dword [ebp + 0x100], eax
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret