Function at 0x475820
Capabilities:
Authenticate hmac
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660bbd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x7000a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov eax, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
cmp ecx, 0x10
je 0x47586f
cmp ecx, 0x18
je 0x47586f
cmp ecx, 0x20
jne 0x475b12
mov eax, ecx
mov dword [ebp - 0x64], 0
cdq
and edx, 3
mov dword [ebp - 0x60], 1
add eax, edx
mov dword [ebp - 0x5c], 2
sar eax, 2
mov dword [ebp - 0x58], 4
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x4c], 0x20
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], 0x80
mov dword [ebp - 0x40], 0x1b
mov dword [ebp - 0x3c], 0x36
mov dword [ebp - 0x20], eax
cmp ecx, 0x10
je 0x475905
cmp ecx, 0x18
je 0x4758f0
cmp ecx, 0x20
jne 0x475b12
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x34], 0xf0
mov dword [ebp - 0x24], 0xf0
jmp 0x475918
mov eax, 0x34
mov dword [ebp - 0x34], 0xd0
mov dword [ebp - 0x24], 0xd0
jmp 0x475918
mov eax, 0x2c
mov dword [ebp - 0x34], 0xb0
mov dword [ebp - 0x24], 0xb0
lea esi, [eax*4]
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push esi
movq qword [ebp - 0x1c], xmm0
call fcn.004b75ce
mov edi, eax
push esi
push 0
push edi
lea ebx, [edi + esi]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
call fcn.004b9340
add esp, 0x10
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 0
test ecx, ecx
jle 0x475981
mov esi, dword [ebp - 0x30]
mov ecx, edi
mov edx, dword [ebp - 0x20]
sub esi, edi
nop dword [eax]
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub edx, 1
jne 0x475970
mov ecx, dword [ebp - 0x20]
mov esi, ecx
cmp ecx, dword [ebp - 0x28]
jge 0x475a62
mov dword [ebp - 0x30], edi
nop
mov eax, esi
mov ebx, dword [edi + esi*4 - 4]
cdq
idiv ecx
mov dword [ebp - 0x38], eax
test edx, edx
jne 0x4759f5
mov eax, ebx
shr ebx, 8
shl eax, 0x18
or ebx, eax
bswap eax
mov ecx, ebx
movzx ebx, byte [eax + 0x6f7810]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x6f7810]
or ebx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x6f7810]
or ebx, eax
movzx eax, cl
shl ebx, 8
movzx eax, byte [eax + 0x6f7810]
or ebx, eax
mov eax, dword [ebp - 0x38]
xor ebx, dword [ebp + eax*4 - 0x64]
jmp 0x475a42
cmp ecx, 6
jle 0x475a45
cmp edx, 4
jne 0x475a45
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x6f7810]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x6f7810]
shl eax, 8
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x6f7810]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx ebx, byte [eax + 0x6f7810]
or ebx, ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
add edx, 4
xor eax, ebx
mov dword [ebp - 0x30], edx
mov dword [edi + esi*4], eax
inc esi
cmp esi, dword [ebp - 0x28]
jl 0x475990
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
xorps xmm0, xmm0
push dword [ebp - 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.004b75ce
mov ecx, dword [ebp - 0x2c]
mov esi, eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
add eax, esi
mov dword [ecx], esi
push 0
mov dword [ecx + 4], esi
push esi
mov dword [ecx + 8], eax
call fcn.004b9340
mov eax, dword [ebp - 0x2c]
sub ebx, edi
add esi, dword [ebp - 0x24]
and ebx, 0xfffffffc
push ebx
push edi
mov dword [eax + 4], esi
push dword [eax]
call fcn.004b94a0
add esp, 0x1c
test edi, edi
je 0x475aee
cmp ebx, 0x1000
jb 0x475ae4
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x475b0d
mov edi, ecx
push ebx
push edi
call fcn.004b75c0
add esp, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
call fcn.004bccbf
push str.Invalid_key_size
lea ecx, [ebp - 0x1c]
call fcn.00476750
push 0x6fe24c
lea eax, [ebp - 0x1c]
push eax
call fcn.004ba01e
int3