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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
jmp 0x490514
movzx ebx, byte [eax]
movzx edx, byte [eax + 1]
movzx edi, byte [eax + 5]
shl ebx, 8
xor ebx, edx
movzx edx, byte [eax + 2]
shl ebx, 8
xor ebx, edx
movzx edx, byte [eax + 3]
shl ebx, 8
xor ebx, edx
movzx edx, byte [eax + 4]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 6]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 7]
shl edx, 8
xor edx, edi
xor edx, dword [ecx + 4]
movzx edi, byte [eax + 9]
mov dword [ebp - 4], edx
movzx edx, byte [eax + 8]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 0xa]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 0xb]
shl edx, 8
xor edx, edi
xor edx, dword [ecx + 8]
movzx edi, byte [eax + 0xd]
mov dword [ebp - 0x10], edx
movzx edx, byte [eax + 0xc]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
xor ebx, dword [ecx]
shl edx, 8
xor edx, edi
mov edi, dword [ebp - 0x10]
shl edx, 8
xor edx, eax
xor edx, dword [ecx + 0xc]
shr edi, 8
mov dword [ebp - 0x14], edx
shr edx, 0x10
mov eax, 0xff
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
and edi, eax
xor edx, dword [edi*4 + reloc.MSVCRT.dll_strncpy]
mov edi, ebx
shr edi, 0x18
xor edx, dword [edi*4 + reloc.MSVCRT.dll_strncpy]
mov edi, dword [ebp - 4]
and edi, eax
xor edx, dword [edi*4 + reloc.MSVCRT.dll_strncpy]
mov edi, ebx
xor edx, dword [ecx + 0x10]
shr edi, 0x10
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x14]
shr edx, 8
and edx, eax
and edi, eax
mov dword [ebp - 8], edi
mov edi, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - 8]
xor edi, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor edi, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
and edx, eax
xor edi, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - 4]
shr edx, 0x10
shr ebx, 8
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
and ebx, eax
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 4]
xor edx, dword [ecx + 0x18]
xor edi, dword [ecx + 0x14]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
shr ebx, 8
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
and ebx, eax
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x18]
and ebx, eax
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp + 8]
xor edx, dword [ecx + 0x1c]
sar ebx, 1
add ecx, 0x20
dec ebx
mov dword [ebp + 8], ebx
jmp 0x490884
shr ebx, 8
and ebx, eax
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, edi
and ebx, eax
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0xc]
xor edx, dword [ecx]
shr ebx, 0x10
and ebx, eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, edi
shr ebx, 0x18
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 8]
and ebx, eax
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0xc]
xor edx, dword [ecx + 4]
shr ebx, 8
and ebx, eax
mov dword [ebp - 4], edx
mov edx, edi
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 8]
shr edi, 8
and edi, eax
xor edx, dword [ecx + 8]
shr ebx, 0x10
mov dword [ebp - 8], edi
and ebx, eax
mov edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 8]
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, edx
xor edi, dword [ecx + 0xc]
shr ebx, 8
mov dword [ebp - 0x14], edi
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + reloc.MSVCRT.dll_strncpy]
and ebx, eax
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 4]
and ebx, eax
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov dword [ebp - 0x10], edx
xor edi, dword [ecx + 0x10]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x14]
shr edi, 8
and edi, eax
mov ebx, dword [ebp - 0x18]
mov edi, dword [edi*4 + reloc.MSVCRT.dll_strncpy]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x18]
and edx, eax
xor edi, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
shr ebx, 8
and ebx, eax
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [ebp - 0x10]
xor edx, dword [ecx + 0x18]
xor edi, dword [ecx + 0x14]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 4]
shr ebx, 0x10
shr edx, 8
and ebx, eax
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
and edx, eax
xor ebx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - 0x14]
shr edx, 0x18
xor ebx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - 0x18]
and edx, eax
xor ebx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
add ecx, 0x20
xor ebx, dword [ecx - 4]
dec dword [ebp + 8]
mov edx, ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
jne 0x4906a8
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
and ebx, 0xff00
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
and edx, 0xff0000
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
and ebx, 0xff000000
xor edx, ebx
mov ebx, edi
and ebx, eax
movzx ebx, byte [ebx*4 + 0x49c13c]
xor edx, ebx
xor edx, dword [ecx]
mov ebx, edx
shr ebx, 0x18
mov byte [esi], bl
mov ebx, edx
shr ebx, 0x10
mov byte [esi + 1], bl
mov byte [esi + 3], dl
mov ebx, edx
shr ebx, 8
mov byte [esi + 2], bl
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
and ebx, 0xff00
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
and edx, 0xff0000
xor edx, ebx
mov ebx, edi
shr ebx, 0x18
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
and ebx, 0xff000000
xor edx, ebx
mov ebx, dword [ebp - 8]
and ebx, eax
movzx ebx, byte [ebx*4 + 0x49c13c]
xor edx, ebx
xor edx, dword [ecx + 4]
mov ebx, edx
shr ebx, 0x18
mov byte [esi + 4], bl
mov ebx, edx
shr ebx, 0x10
mov byte [esi + 5], bl
mov ebx, edx
shr ebx, 8
mov byte [esi + 6], bl
mov ebx, dword [ebp - 0xc]
mov byte [esi + 7], dl
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov edx, edi
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
and ebx, 0xff00
and edx, 0xff0000
xor edx, ebx
mov ebx, dword [ebp - 8]
shr ebx, 0x18
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
and ebx, 0xff000000
xor edx, ebx
mov ebx, dword [ebp - 0x14]
and ebx, eax
movzx ebx, byte [ebx*4 + 0x49c13c]
xor edx, ebx
xor edx, dword [ecx + 8]
mov ebx, edx
shr ebx, 0x18
mov byte [esi + 8], bl
mov ebx, edx
mov byte [esi + 0xb], dl
shr ebx, 0x10
mov byte [esi + 9], bl
mov ebx, edx
mov edx, dword [ebp - 8]
shr edi, 8
and edi, eax
shr edx, 0x10
and edx, eax
shr ebx, 8
mov byte [esi + 0xa], bl
mov edi, dword [edi*4 + reloc.MSVCRT.dll_strncpy]
mov edx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
and edi, 0xff00
and edx, 0xff0000
xor edx, edi
mov edi, dword [ebp - 0x14]
shr edi, 0x18
mov edi, dword [edi*4 + reloc.MSVCRT.dll_strncpy]
and edi, 0xff000000
xor edx, edi
mov edi, dword [ebp - 0xc]
and edi, eax
movzx eax, byte [edi*4 + 0x49c13c]
xor edx, eax
xor edx, dword [ecx + 0xc]
mov eax, edx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [esi + 0xe], al
mov byte [esi + 0xf], dl
jmp 0x490a45
pop edi
pop ebx
leave
ret