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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x4c], 0
cmp dword [0x4fd700], 0
jne 0x487a0a
mov dword [0x4fd700], 1
call fcn.00488b58
mov dword [0x4fd710], eax
cmp dword [0x4fd710], 0
je 0x487a0a
sub esp, 4
push dword [0x4fd710]
push 0x4f5c58
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
cmp dword [0x4fd710], 0
je 0x487a1f
mov dword [ebp - 0x80], 0x32
jmp 0x487dbd
cmp dword [ebp + 0x10], 0x10
jne 0x487a35
mov dword [ebp - 0xc], 0xa
mov dword [ebp - 0x7c], 4
jmp 0x487a6d
cmp dword [ebp + 0x10], 0x18
jne 0x487a4b
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 0x7c], 6
jmp 0x487a6d
cmp dword [ebp + 0x10], 0x20
jne 0x487a61
mov dword [ebp - 0xc], 0xe
mov dword [ebp - 0x7c], 8
jmp 0x487a6d
mov dword [ebp - 0x80], 0x2c
jmp 0x487dbd
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp + 0x10]
jae 0x487ab8
mov edx, dword [ebp - 0x3c]
and edx, 3
mov eax, dword [ebp - 0x3c]
sar eax, 2
shl eax, 2
lea ecx, [ebp - 8]
add eax, ecx
add eax, edx
lea edx, [eax - 0x30]
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [edx], al
lea eax, [ebp - 0x3c]
inc dword [eax]
jmp 0x487a86
mov eax, dword [ebp - 0x7c]
dec eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
js 0x487ada
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp + eax*4 - 0x38]
mov dword [ebp + edx*4 - 0x78], eax
lea eax, [ebp - 0x40]
dec dword [eax]
jmp 0x487abf
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x7c]
jge 0x487b50
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [ebp - 0x44]
jle 0x487b50
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x7c]
jge 0x487b3c
cmp dword [ebp - 0x48], 3
jg 0x487b3c
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov ecx, eax
shl ecx, 4
mov eax, edx
shl eax, 2
lea eax, [ecx + eax]
add eax, dword [ebp + 8]
lea edx, [eax + 8]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp + eax*4 - 0x78]
mov dword [edx], eax
lea eax, [ebp - 0x40]
inc dword [eax]
lea eax, [ebp - 0x48]
inc dword [eax]
jmp 0x487b00
cmp dword [ebp - 0x48], 4
jne 0x487aef
lea eax, [ebp - 0x44]
inc dword [eax]
mov dword [ebp - 0x48], 0
jmp 0x487aef
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [ebp - 0x44]
jle 0x487db6
mov eax, dword [ebp - 0x7c]
mov al, byte [ebp + eax*4 - 0x7b]
and eax, 0xff
mov dl, byte [eax + str.cw]
lea eax, [ebp - 0x78]
xor byte [eax], dl
mov eax, dword [ebp - 0x7c]
mov al, byte [ebp + eax*4 - 0x7a]
and eax, 0xff
mov dl, byte [eax + str.cw]
lea eax, [ebp - 0x77]
xor byte [eax], dl
mov eax, dword [ebp - 0x7c]
mov al, byte [ebp + eax*4 - 0x79]
and eax, 0xff
mov dl, byte [eax + str.cw]
lea eax, [ebp - 0x76]
xor byte [eax], dl
mov eax, dword [ebp - 0x7c]
mov al, byte [ebp + eax*4 - 0x7c]
and eax, 0xff
mov dl, byte [eax + str.cw]
lea eax, [ebp - 0x75]
xor byte [eax], dl
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax*4 + 0x4f5be0]
lea eax, [ebp - 0x78]
xor byte [eax], dl
lea eax, [ebp - 0x4c]
inc dword [eax]
cmp dword [ebp - 0x7c], 8
je 0x487c02
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x7c]
jge 0x487d46
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp + eax*4 - 0x7c]
xor eax, dword [ebp + edx*4 - 0x78]
mov dword [ebp + ecx*4 - 0x78], eax
lea eax, [ebp - 0x40]
inc dword [eax]
jmp 0x487bda
mov dword [ebp - 0x40], 1
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
cmp eax, dword [ebp - 0x40]
jle 0x487c3a
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp + eax*4 - 0x7c]
xor eax, dword [ebp + edx*4 - 0x78]
mov dword [ebp + ecx*4 - 0x78], eax
lea eax, [ebp - 0x40]
inc dword [eax]
jmp 0x487c09
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
mov ecx, eax
sar ecx, 1
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
mov al, byte [ebp + eax*4 - 0x7c]
and eax, 0xff
mov al, byte [eax + str.cw]
xor byte [ebp + ecx*4 - 0x78], al
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
mov ecx, eax
sar ecx, 1
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
mov al, byte [ebp + eax*4 - 0x7b]
and eax, 0xff
mov al, byte [eax + str.cw]
xor byte [ebp + ecx*4 - 0x77], al
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
mov ecx, eax
sar ecx, 1
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
mov al, byte [ebp + eax*4 - 0x7a]
and eax, 0xff
mov al, byte [eax + str.cw]
xor byte [ebp + ecx*4 - 0x76], al
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
mov ecx, eax
sar ecx, 1
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
mov al, byte [ebp + eax*4 - 0x79]
and eax, 0xff
mov al, byte [eax + str.cw]
xor byte [ebp + ecx*4 - 0x75], al
mov edx, dword [ebp - 0x7c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x7c]
jge 0x487d46
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp + eax*4 - 0x7c]
xor eax, dword [ebp + edx*4 - 0x78]
mov dword [ebp + ecx*4 - 0x78], eax
lea eax, [ebp - 0x40]
inc dword [eax]
jmp 0x487d22
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x7c]
jge 0x487b50
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [ebp - 0x44]
jle 0x487b50
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x7c]
jge 0x487da2
cmp dword [ebp - 0x48], 3
jg 0x487da2
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov ecx, eax
shl ecx, 4
mov eax, edx
shl eax, 2
lea eax, [ecx + eax]
add eax, dword [ebp + 8]
lea edx, [eax + 8]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp + eax*4 - 0x78]
mov dword [edx], eax
lea eax, [ebp - 0x40]
inc dword [eax]
lea eax, [ebp - 0x48]
inc dword [eax]
jmp 0x487d66
cmp dword [ebp - 0x48], 4
jne 0x487d4d
lea eax, [ebp - 0x44]
inc dword [eax]
mov dword [ebp - 0x48], 0
jmp 0x487d4d
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
leave
ret