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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, eax
mov esi, ecx
mov eax, dword [esi + 0xf0]
shr eax, 1
cmp eax, 7
mov dword [ebp - 0x18], eax
ja 0x1003a9d4
test eax, eax
je 0x1003a9d4
push ebx
push 4
pop ebx
push ebx
lea eax, [ebp - 4]
push edi
push eax
call sub.MSVCRT.dll_memcpy
push ebx
lea eax, [edi + 4]
push eax
lea eax, [ebp - 8]
push eax
call sub.MSVCRT.dll_memcpy
push ebx
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
push ebx
add edi, 0xc
lea eax, [ebp - 0x10]
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ebx, eax
mov edx, ecx
add esp, 0x30
ror ebx, 8
rol eax, 8
ror edx, 8
rol ecx, 8
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0xc]
mov edi, edx
ror edi, 8
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
rol edx, 8
xor edx, dword [ebp - 0x14]
xor eax, ebx
ror edi, 8
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x10]
rol edi, 8
mov dword [ebp - 0x10], edi
mov edi, 0xff00ff
and eax, edi
xor eax, ebx
xor eax, dword [esi]
and ecx, edi
xor ecx, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0xc]
and eax, edi
xor eax, dword [esi + 0xc]
and edx, edi
xor eax, dword [ebp - 0x1c]
xor edx, dword [esi + 8]
mov dword [ebp - 8], ecx
xor edx, dword [ebp - 0x14]
mov ebx, eax
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x10048648]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10048a48]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x10048248]
movzx ecx, byte [ebp - 8]
xor eax, dword [ecx*4 + 0x10048e48]
mov dword [ebp - 0x14], edx
xor eax, dword [esi + 0x10]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, 8
movzx eax, al
shr ecx, 0x18
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax*4 + 0x10048a48]
mov eax, dword [ebp - 0x1c]
xor ecx, dword [eax*4 + 0x10048248]
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x10048648]
movzx eax, dl
xor ecx, dword [eax*4 + 0x10048e48]
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
shr edx, 0x18
mov edx, dword [edx*4 + 0x10048248]
xor edx, dword [eax*4 + 0x10048648]
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x10048a48]
movzx eax, bl
xor edx, dword [eax*4 + 0x10048e48]
mov eax, dword [ebp - 0x14]
xor ecx, dword [esi + 0x14]
shr eax, 0x10
movzx eax, al
shr ebx, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx*4 + 0x10048248]
mov ebx, dword [ebp - 0x1c]
xor eax, dword [ebx*4 + 0x10048648]
mov ebx, dword [ebp - 8]
shr ebx, 8
movzx ebx, bl
xor eax, dword [ebx*4 + 0x10048a48]
movzx ebx, byte [ebp - 4]
xor eax, dword [ebx*4 + 0x10048e48]
xor eax, dword [esi + 0x1c]
jmp 0x1003a7e9
shr ebx, 0x10
movzx esi, bl
mov esi, dword [esi*4 + 0x10048648]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x10048a48]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
mov dword [ebp - 0x1c], esi
xor esi, dword [ebx*4 + 0x10048248]
movzx ebx, cl
xor esi, dword [ebx*4 + 0x10048e48]
mov ebx, dword [ebp - 0xc]
xor esi, dword [ebx]
mov ebx, eax
shr ebx, 8
mov dword [ebp - 4], esi
movzx esi, bl
mov esi, dword [esi*4 + 0x10048a48]
mov ebx, ecx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x10048248]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x10
movzx ebx, bl
mov dword [ebp - 0x1c], esi
xor esi, dword [ebx*4 + 0x10048648]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x10048e48]
mov ebx, dword [ebp - 0xc]
xor esi, dword [ebx + 4]
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, edx
shr ebx, 0x10
movzx ebx, bl
shr esi, 0x18
mov esi, dword [esi*4 + 0x10048248]
xor esi, dword [ebx*4 + 0x10048648]
mov ebx, dword [ebp - 0x10]
shr ebx, 8
shr ecx, 8
mov dword [ebp - 0x1c], esi
movzx esi, bl
mov ebx, dword [ebp - 0x1c]
xor ebx, dword [esi*4 + 0x10048a48]
shr edx, 0x10
movzx ecx, cl
movzx esi, al
xor ebx, dword [esi*4 + 0x10048e48]
mov esi, dword [ebp - 0xc]
xor ebx, dword [esi + 8]
movzx edx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0x10048248]
xor eax, dword [edx*4 + 0x10048648]
mov edx, ebx
xor eax, dword [ecx*4 + 0x10048a48]
movzx ecx, byte [ebp - 0x10]
xor eax, dword [ecx*4 + 0x10048e48]
shr edx, 8
xor eax, dword [esi + 0xc]
movzx edx, dl
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x10048648]
xor ecx, dword [edx*4 + 0x10048a48]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x10048248]
movzx edx, byte [ebp - 8]
xor ecx, dword [edx*4 + 0x10048e48]
mov edx, dword [ebp - 8]
xor ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, 0x18
mov ecx, dword [ecx*4 + 0x10048a48]
xor ecx, dword [edx*4 + 0x10048248]
mov edx, dword [ebp - 4]
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x10048648]
movzx edx, bl
xor ecx, dword [edx*4 + 0x10048e48]
mov edx, ebx
xor ecx, dword [esi + 0x14]
shr edx, 0x18
mov edx, dword [edx*4 + 0x10048248]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr ecx, 0x10
movzx esi, cl
xor edx, dword [esi*4 + 0x10048648]
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx esi, cl
xor edx, dword [esi*4 + 0x10048a48]
movzx esi, al
xor edx, dword [esi*4 + 0x10048e48]
mov esi, dword [ebp - 0xc]
shr eax, 0x18
mov eax, dword [eax*4 + 0x10048248]
shr ebx, 0x10
mov ecx, dword [ebp - 0x14]
movzx ebx, bl
xor eax, dword [ebx*4 + 0x10048648]
mov ebx, eax
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x10048a48]
movzx eax, byte [ebp - 4]
xor ebx, dword [eax*4 + 0x10048e48]
xor ebx, dword [esi + 0x1c]
mov eax, ebx
xor edx, dword [esi + 0x18]
add esi, 0x20
dec dword [ebp - 0x18]
mov dword [ebp - 0xc], esi
mov ebx, eax
jne 0x1003a60a
shr ebx, 0x10
movzx esi, bl
mov esi, dword [esi*4 + str.RRRR_t_t_t_tjjjj]
and esi, 0xff0000
mov ebx, edx
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor esi, ebx
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor esi, ebx
movzx ebx, cl
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, ebx
mov ebx, dword [ebp - 0xc]
xor esi, dword [ebx]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, edi
or ebx, esi
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x10]
shr ebx, 0x10
movzx esi, bl
mov esi, dword [esi*4 + str.RRRR_t_t_t_tjjjj]
and esi, 0xff0000
mov ebx, eax
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor esi, ebx
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor esi, ebx
movzx ebx, dl
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, ebx
mov ebx, dword [ebp - 0xc]
xor esi, dword [ebx + 4]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, edi
or ebx, esi
mov dword [ebp - 8], ebx
mov ebx, ecx
shr ebx, 0x10
movzx esi, bl
mov esi, dword [esi*4 + str.RRRR_t_t_t_tjjjj]
and esi, 0xff0000
mov ebx, edx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor esi, ebx
mov ebx, dword [ebp - 0x10]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor esi, ebx
movzx ebx, al
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, ebx
mov ebx, dword [ebp - 0xc]
xor esi, dword [ebx + 8]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, edi
shr edx, 0x10
shr eax, 0x18
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
movzx edx, dl
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff000000
and edx, 0xff0000
xor edx, eax
shr ecx, 8
movzx eax, cl
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff00
xor edx, eax
movzx eax, byte [ebp - 0x10]
movzx eax, byte [eax*4 + str.RRRR_t_t_t_tjjjj]
xor edx, eax
mov eax, dword [ebp - 0xc]
xor edx, dword [eax + 0xc]
or ebx, esi
mov esi, dword [ebp + 8]
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, edi
push 4
or eax, edx
pop edi
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_memcpy
push edi
lea eax, [ebp - 8]
push eax
lea eax, [esi + 4]
push eax
call sub.MSVCRT.dll_memcpy
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
call sub.MSVCRT.dll_memcpy
push edi
lea eax, [ebp - 0x10]
push eax
add esi, 0xc
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop ebx
pop edi
pop esi
leave
ret