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

Disassembly:
sub esp, 0x20
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
cmp byte [edi + 4], 0
je 0x415f1f
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 4]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [esi + 2]
shl eax, 8
or ebx, eax
movzx edx, byte [esi + 0xc]
movzx eax, byte [esi + 3]
or ebx, eax
shl edx, 0x18
movzx eax, byte [esi + 5]
shl eax, 0x10
or ecx, eax
xor ebx, dword [edi + 0x1e8]
movzx eax, byte [esi + 6]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [esi + 7]
or ecx, eax
movzx eax, byte [esi + 8]
xor ecx, dword [edi + 0x1ec]
mov dword [esp + 0x10], ecx
movzx ecx, byte [esi + 9]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 0xa]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 0xb]
or eax, ecx
movzx ecx, byte [esi + 0xd]
xor eax, dword [edi + 0x1f0]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [esi + 0xe]
shl ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, byte [esi + 0xf]
or dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x34]
or ecx, edx
mov edx, dword [edi + 0x3d0]
xor ecx, dword [edi + 0x1f4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], edx
cmp edx, 1
jle 0x415d5d
lea esi, [edi + 0x210]
dec edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edx
mov ebp, dword [esp + 0x10]
mov edx, ecx
sar edx, 8
mov ecx, ebp
sar ecx, 0x18
and edx, 0xff
and ecx, 0xff
mov edi, dword [edx*4 + 0x653ad0]
mov edx, eax
xor edi, dword [ecx*4 + 0x6542d0]
mov ecx, ebx
sar ecx, 0x10
and ecx, 0xff
sar edx, 0x18
and edx, 0xff
xor edi, dword [ecx*4 + 0x653ed0]
movzx ecx, al
xor edi, dword [ecx*4 + 0x6536d0]
mov ecx, ebp
xor edi, dword [esi - 4]
mov esi, dword [edx*4 + 0x6542d0]
sar ecx, 0x10
and ecx, 0xff
mov edx, dword [esp + 0x34]
xor esi, dword [ecx*4 + 0x653ed0]
mov ecx, ebx
sar ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x653ad0]
movzx ecx, dl
sar edx, 0x18
and edx, 0xff
xor esi, dword [ecx*4 + 0x6536d0]
mov ecx, dword [esp + 0x18]
mov edx, dword [edx*4 + 0x6542d0]
xor esi, dword [ecx]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
sar eax, 8
and eax, 0xff
xor edx, dword [ecx*4 + 0x653ed0]
mov ecx, ebp
sar ecx, 8
and ecx, 0xff
mov ebp, dword [esp + 0x18]
xor edx, dword [ecx*4 + 0x653ad0]
movzx ecx, bl
sar ebx, 0x18
and ebx, 0xff
xor edx, dword [ecx*4 + 0x6536d0]
mov ecx, dword [esp + 0x34]
xor edx, dword [ebp + 4]
sar ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x653ed0]
xor ecx, dword [eax*4 + 0x653ad0]
mov eax, dword [esp + 0x10]
xor ecx, dword [ebx*4 + 0x6542d0]
movzx eax, al
mov dword [esp + 0x10], edi
xor ecx, dword [eax*4 + 0x6536d0]
mov eax, esi
xor ecx, dword [ebp - 8]
add ebp, 0x20
dec dword [esp + 0x20]
mov ebx, ecx
mov ecx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], ecx
mov esi, ebp
jne 0x415c16
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
shl edx, 5
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov ebx, dword [edx + edi + 0x1e8]
mov ecx, ebx
mov edi, dword [esp + 0x18]
mov edx, edi
sar ecx, 0x18
sar edx, 0x18
and edx, 0xff
xor cl, byte [edx + 0x6556d0]
mov edx, dword [esp + 0x34]
mov byte [esi], cl
mov ecx, ebx
sar ecx, 0x10
sar edx, 0x10
and edx, 0xff
xor cl, byte [edx + 0x6556d0]
mov edx, eax
mov byte [esi + 1], cl
mov ecx, ebx
sar ecx, 8
sar edx, 8
and edx, 0xff
xor cl, byte [edx + 0x6556d0]
mov edx, dword [esp + 0x10]
mov byte [esi + 2], cl
movzx ecx, dl
sar edx, 0x18
and edx, 0xff
movzx ecx, byte [ecx + 0x6556d0]
xor cl, bl
mov ebx, dword [esp + 0x1c]
mov byte [esi + 3], cl
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + ebx + 0x1ec]
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + 0x6556d0]
mov edx, edi
mov byte [esi + 4], cl
mov ecx, ebx
sar edx, 0x10
and edx, 0xff
sar ecx, 0x10
xor cl, byte [edx + 0x6556d0]
mov edx, dword [esp + 0x34]
mov byte [esi + 5], cl
mov ecx, ebx
sar edx, 8
and edx, 0xff
sar ecx, 8
xor cl, byte [edx + 0x6556d0]
mov edx, eax
mov byte [esi + 6], cl
movzx ecx, al
sar edx, 0x18
and edx, 0xff
movzx ecx, byte [ecx + 0x6556d0]
xor cl, bl
mov ebx, dword [esp + 0x14]
mov byte [esi + 7], cl
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ebx + ecx + 0x1f0]
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + 0x6556d0]
mov edx, dword [esp + 0x10]
sar edx, 0x10
mov byte [esi + 8], cl
and edx, 0xff
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [edx + 0x6556d0]
mov edx, edi
sar edx, 8
mov byte [esi + 9], cl
and edx, 0xff
mov ecx, ebx
sar ecx, 8
xor cl, byte [edx + 0x6556d0]
mov edx, dword [esp + 0x14]
mov byte [esi + 0xa], cl
mov ecx, dword [esp + 0x34]
movzx ecx, cl
sar eax, 0x10
and eax, 0xff
movzx ecx, byte [ecx + 0x6556d0]
xor cl, bl
mov ebx, dword [esp + 0x34]
mov byte [esi + 0xb], cl
mov ecx, dword [esp + 0x1c]
sar ebx, 0x18
and ebx, 0xff
mov edx, dword [edx + ecx + 0x1f4]
mov ecx, edx
sar ecx, 0x18
xor cl, byte [ebx + 0x6556d0]
mov byte [esi + 0xc], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + 0x6556d0]
mov eax, edx
mov byte [esi + 0xd], cl
mov ecx, dword [esp + 0x10]
sar ecx, 8
and ecx, 0xff
sar eax, 8
xor al, byte [ecx + 0x6556d0]
mov byte [esi + 0xe], al
mov eax, edi
movzx eax, al
mov al, byte [eax + 0x6556d0]
xor al, dl
mov byte [esi + 0xf], al
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret 8
push 0x699644
lea ecx, [esp + 0x1c]
call fcn.005d5ad4
push 0x692b58
lea eax, [esp + 0x1c]
push eax
call fcn.005d9e70
int3