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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
cmp byte [esi + 4], 0
je 0x4378b8
mov edx, dword [ebp + 8]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx ebx, byte [edx + 8]
movzx eax, byte [edx + 2]
shl eax, 8
or ecx, eax
shl ebx, 0x18
movzx eax, byte [edx + 3]
or ecx, eax
movzx eax, byte [edx + 5]
xor ecx, dword [esi + 0x1e8]
shl eax, 0x10
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 4]
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 7]
or ecx, eax
movzx eax, byte [edx + 9]
xor ecx, dword [esi + 0x1ec]
shl eax, 0x10
or ebx, eax
mov dword [ebp - 8], ecx
movzx eax, byte [edx + 0xa]
movzx ecx, byte [edx + 0xc]
shl eax, 8
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 0xb]
or ebx, eax
movzx eax, byte [edx + 0xd]
xor ebx, dword [esi + 0x1f0]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 0xe]
shl eax, 8
mov dword [ebp + 8], eax
movzx eax, byte [edx + 0xf]
mov edx, dword [ebp + 8]
or edx, eax
or edx, ecx
mov ecx, dword [esi + 0x3d0]
xor edx, dword [esi + 0x1f4]
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], ecx
cmp ecx, 1
jle 0x437710
lea eax, [esi + 0x210]
mov dword [ebp - 0xc], eax
lea eax, [ecx - 1]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, edx
sar eax, 0x18
mov edx, 0xff
and eax, 0xff
sar ecx, 8
and ecx, 0xff
mov edi, dword [ecx*4 + 0x516ee0]
mov ecx, ebx
xor edi, dword [eax*4 + 0x5176e0]
mov eax, dword [ebp - 4]
sar eax, 0x10
and eax, 0xff
sar ecx, 0x18
and ecx, 0xff
xor edi, dword [eax*4 + 0x5172e0]
mov esi, dword [ecx*4 + 0x5176e0]
movzx eax, bl
mov ecx, dword [ebp + 8]
xor edi, dword [eax*4 + 0x516ae0]
mov eax, dword [ebp - 0xc]
xor edi, dword [eax - 4]
mov eax, dword [ebp - 8]
sar eax, 0x10
and eax, 0xff
xor esi, dword [eax*4 + 0x5172e0]
mov eax, dword [ebp - 4]
sar eax, 8
and eax, edx
xor esi, dword [eax*4 + 0x516ee0]
movzx eax, cl
sar ecx, 0x18
and ecx, edx
xor esi, dword [eax*4 + 0x516ae0]
mov eax, dword [ebp - 0xc]
xor esi, dword [eax]
mov eax, ebx
sar eax, 0x10
and eax, edx
sar ebx, 8
mov edx, dword [ecx*4 + 0x5176e0]
mov ecx, dword [ebp - 4]
xor edx, dword [eax*4 + 0x5172e0]
mov eax, dword [ebp - 8]
sar eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x516ee0]
movzx eax, cl
mov ecx, 0xff
and ebx, ecx
xor edx, dword [eax*4 + 0x516ae0]
mov eax, dword [ebp - 0xc]
xor edx, dword [eax + 4]
mov eax, dword [ebp + 8]
sar eax, 0x10
and eax, ecx
mov dword [ebp + 8], edx
mov ecx, dword [eax*4 + 0x5172e0]
mov eax, dword [ebp - 4]
xor ecx, dword [ebx*4 + 0x516ee0]
mov ebx, esi
sar eax, 0x18
and eax, 0xff
xor ecx, dword [eax*4 + 0x5176e0]
mov eax, dword [ebp - 8]
movzx eax, al
mov dword [ebp - 8], edi
xor ecx, dword [eax*4 + 0x516ae0]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0xc], 0x20
xor ecx, dword [eax - 8]
dec dword [ebp - 0x18]
mov eax, ecx
mov dword [ebp - 4], eax
jne 0x4375da
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x437713
mov eax, dword [ebp - 4]
shl ecx, 5
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x14]
mov edx, dword [ecx + esi + 0x1e8]
mov ecx, eax
mov esi, dword [ebp + 0xc]
mov eax, edx
sar eax, 0x18
sar ecx, 0x18
and ecx, 0xff
xor al, byte [ecx + 0x518ae0]
mov ecx, dword [ebp + 8]
mov byte [esi], al
mov eax, edx
sar eax, 0x10
sar ecx, 0x10
and ecx, 0xff
xor al, byte [ecx + 0x518ae0]
mov ecx, ebx
mov byte [esi + 1], al
mov eax, edx
sar eax, 8
sar ecx, 8
and ecx, 0xff
xor al, byte [ecx + 0x518ae0]
mov ecx, dword [ebp - 8]
mov byte [esi + 2], al
movzx eax, cl
sar ecx, 0x18
and ecx, 0xff
mov al, byte [eax + 0x518ae0]
xor al, dl
mov edx, dword [ebp - 0x14]
mov byte [esi + 3], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + edx + 0x1ec]
mov eax, edx
sar eax, 0x18
xor al, byte [ecx + 0x518ae0]
mov ecx, dword [ebp - 4]
mov byte [esi + 4], al
mov eax, edx
sar ecx, 0x10
and ecx, 0xff
sar eax, 0x10
xor al, byte [ecx + 0x518ae0]
mov ecx, dword [ebp + 8]
mov byte [esi + 5], al
mov eax, edx
sar ecx, 8
and ecx, 0xff
sar eax, 8
xor al, byte [ecx + 0x518ae0]
mov ecx, ebx
mov byte [esi + 6], al
movzx eax, bl
sar ecx, 0x18
and ecx, 0xff
mov al, byte [eax + 0x518ae0]
xor al, dl
mov byte [esi + 7], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + edi + 0x1f0]
mov eax, edx
sar eax, 0x18
xor al, byte [ecx + 0x518ae0]
mov ecx, dword [ebp - 8]
sar ecx, 0x10
mov byte [esi + 8], al
and ecx, 0xff
mov eax, edx
sar eax, 0x10
xor al, byte [ecx + 0x518ae0]
mov ecx, dword [ebp - 4]
sar ecx, 8
mov byte [esi + 9], al
and ecx, 0xff
mov eax, edx
sar eax, 8
xor al, byte [ecx + 0x518ae0]
mov byte [esi + 0xa], al
mov eax, dword [ebp + 8]
movzx eax, al
sar ebx, 0x10
mov al, byte [eax + 0x518ae0]
xor al, dl
mov edx, dword [ebp + 8]
mov byte [esi + 0xb], al
mov eax, dword [ebp - 0x10]
sar edx, 0x18
mov ecx, dword [eax + edi + 0x1f4]
mov edi, 0xff
and edx, edi
mov eax, ecx
sar eax, 0x18
and ebx, edi
xor al, byte [edx + 0x518ae0]
mov edx, dword [ebp - 8]
mov byte [esi + 0xc], al
mov eax, ecx
sar eax, 0x10
xor al, byte [ebx + 0x518ae0]
mov byte [esi + 0xd], al
mov eax, ecx
sar edx, 8
and edx, edi
sar eax, 8
pop edi
xor al, byte [edx + 0x518ae0]
mov byte [esi + 0xe], al
mov eax, dword [ebp - 4]
movzx eax, al
mov al, byte [eax + 0x518ae0]
xor al, cl
mov byte [esi + 0xf], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x548c80
lea ecx, [ebp - 0x24]
call fcn.004da840
push 0x542d14
lea eax, [ebp - 0x24]
push eax
call fcn.004e349b
int3