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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov edx, ecx
push ebx
xor eax, eax
push esi
mov ebx, dword [edx + 0x1c]
push edi
sub ebx, 6
mov dword [ebp - 0xc], edx
cmp ebx, eax
mov dword [ebp - 0x10], ebx
jle 0x401e27
mov esi, dword [ebp + 8]
mov ecx, ebx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [ebp + 8], eax
test ebx, ebx
mov esi, 4
jle 0x401e8c
mov dword [ebp - 8], 8
mov edi, dword [ebp + 8]
cmp edi, dword [edx + 0x1c]
ja 0x401e8c
cmp ecx, ebx
jge 0x401e73
lea edi, [ebp + ecx*4 - 0x30]
mov dword [ebp - 4], edi
cmp eax, esi
jge 0x401e75
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
add esi, eax
inc ecx
mov edi, dword [edi]
mov dword [edx + esi*4], edi
mov edi, dword [ebp - 4]
mov esi, 4
add edi, esi
inc eax
cmp ecx, ebx
mov dword [ebp - 4], edi
jl 0x401e4f
cmp eax, esi
jne 0x401e88
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
add eax, esi
inc edi
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
xor eax, eax
cmp ecx, ebx
jl 0x401e3c
mov ecx, dword [ebp + 8]
mov esi, dword [edx + 0x1c]
cmp ecx, esi
ja 0x402011
mov esi, 0x454290
jmp 0x401ea4
mov esi, dword [ebp - 4]
mov cl, byte [ebp - 0x30]
xor edx, edx
mov dl, byte [ebp + ebx*4 - 0x33]
add esi, 4
mov dword [ebp - 4], esi
xor cl, byte [edx + 0x451090]
xor edx, edx
mov byte [ebp - 0x30], cl
mov dl, byte [ebp + ebx*4 - 0x32]
mov dl, byte [edx + 0x451090]
xor byte [ebp - 0x2f], dl
xor edx, edx
mov dl, byte [ebp + ebx*4 - 0x31]
mov dl, byte [edx + 0x451090]
xor byte [ebp - 0x2e], dl
xor edx, edx
mov dl, byte [ebp + ebx*4 - 0x34]
mov dl, byte [edx + 0x451090]
xor byte [ebp - 0x2d], dl
mov dl, byte [esi - 4]
xor cl, dl
cmp ebx, 8
mov byte [ebp - 0x30], cl
je 0x401f19
cmp ebx, 1
jle 0x401fa3
lea ecx, [ebp - 0x2c]
lea edx, [ebx - 1]
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
xor edi, esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x401f05
jmp 0x401fa3
lea ecx, [ebp - 0x2c]
mov edx, 3
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
xor edi, esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x401f21
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
mov dl, byte [ecx + 0x451090]
mov cl, byte [ebp - 0x20]
xor cl, dl
mov byte [ebp - 0x20], cl
mov ecx, dword [ebp - 0x23]
and ecx, 0xff
mov dl, byte [ecx + 0x451090]
mov cl, byte [ebp - 0x1f]
xor cl, dl
mov byte [ebp - 0x1f], cl
mov ecx, dword [ebp - 0x22]
and ecx, 0xff
mov dl, byte [ecx + 0x451090]
mov cl, byte [ebp - 0x1e]
xor cl, dl
mov byte [ebp - 0x1e], cl
mov ecx, dword [ebp - 0x21]
and ecx, 0xff
mov dl, byte [ecx + 0x451090]
mov cl, byte [ebp - 0x1d]
xor cl, dl
mov edx, 3
mov byte [ebp - 0x1d], cl
lea ecx, [ebp - 0x1c]
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
xor edi, esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x401f94
xor ecx, ecx
test ebx, ebx
jle 0x402002
mov edx, dword [ebp + 8]
lea edx, [edx*4 + 8]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp esi, dword [edx + 0x1c]
ja 0x402002
cmp ecx, ebx
jge 0x401fe7
lea edx, [ebp + ecx*4 - 0x30]
cmp eax, 4
jge 0x401fea
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [edx]
add esi, eax
inc ecx
add edx, 4
mov dword [ebx + esi*4], edi
mov ebx, dword [ebp - 0x10]
inc eax
cmp ecx, ebx
jl 0x401fc9
cmp eax, 4
jne 0x401ffe
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
add eax, 4
inc edx
mov dword [ebp - 8], eax
mov dword [ebp + 8], edx
xor eax, eax
cmp ecx, ebx
jl 0x401fb6
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x1c]
jbe 0x401ea1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4