Function at 0x56e200
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
lea edi, [ebp - 0x150]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x68], 0
jmp 0x56e245
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 4
jae 0x56e276
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x8c]
mov eax, dword [ecx + eax*4]
xor eax, dword [edx]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x8c]
add eax, 4
mov dword [ebp - 0x8c], eax
jmp 0x56e23c
mov dword [ebp - 0x74], 0
jmp 0x56e288
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x80]
jge 0x56e445
mov dword [ebp - 0x68], 0
jmp 0x56e2a6
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 4
jae 0x56e3ff
mov eax, dword [ebp - 0x68]
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
shr ecx, 0x18
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x68]
add eax, 1
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x68]
add eax, 2
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
shr ecx, 8
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x68]
add eax, 3
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x80]
sub eax, 1
cmp dword [ebp - 0x74], eax
jge 0x56e3da
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x44]
xor eax, dword [ebp - 0x50]
xor eax, dword [ebp - 0x5c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x44]
push eax
call fcn.0056e530
add esp, 4
movzx ecx, al
xor ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x44]
xor eax, dword [ebp - 0x50]
push eax
call fcn.0056e530
add esp, 4
movzx ecx, al
xor ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x44]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x50]
xor eax, dword [ebp - 0x5c]
push eax
call fcn.0056e530
add esp, 4
movzx ecx, al
xor ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x50]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x5c]
xor eax, dword [ebp - 0x2c]
push eax
call fcn.0056e530
add esp, 4
movzx ecx, al
xor ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x38]
shl eax, 0x18
mov ecx, dword [ebp - 0x44]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp - 0x50]
shl edx, 8
or eax, edx
or eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
mov dword [ebp + ecx*4 - 0x14], eax
jmp 0x56e29d
mov dword [ebp - 0x68], 0
jmp 0x56e411
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 4
jae 0x56e440
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp + eax*4 - 0x14]
xor edx, dword [ecx]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + eax*4], edx
mov edx, dword [ebp - 0x8c]
add edx, 4
mov dword [ebp - 0x8c], edx
jmp 0x56e408
jmp 0x56e27f
push edx
mov ecx, ebp
push eax
lea edx, [0x56e46c]
call fcn.004a8880
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x150
cmp ebp, esp
call fcn.004a7520
mov esp, ebp
pop ebp
ret