Function at 0x410804
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ebp + edx*4 - 0x410], ecx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x810], edx
mov ecx, dword [ebp - 8]
add ecx, ecx
test byte [ebp - 8], 0x80
je 0x410846
mov ebx, 0x1b
jmp 0x410848
xor ebx, ebx
xor ecx, ebx
xor ecx, dword [ebp - 8]
and ecx, 0xff
mov dword [ebp - 8], ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
jl 0x41081a
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [edx*4 + 0x57fd88], ecx
mov eax, dword [ebp - 8]
add eax, eax
test byte [ebp - 8], 0x80
je 0x41088d
mov edx, 0x1b
jmp 0x41088f
xor edx, edx
xor eax, edx
and eax, 0xff
mov dword [ebp - 8], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x41086e
mov byte [0x57db88], 0x63
mov byte [0x57eceb], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov ecx, 0xff
sub ecx, dword [ebp + eax*4 - 0x810]
mov eax, dword [ebp + ecx*4 - 0x410]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov ebx, dword [ebp - 0xc]
sar ebx, 7
or ecx, ebx
and ecx, 0xff
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
add edx, edx
mov ecx, dword [ebp - 0xc]
sar ecx, 7
or edx, ecx
and edx, 0xff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
xor dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
add edx, edx
mov ecx, dword [ebp - 0xc]
sar ecx, 7
or edx, ecx
and edx, 0xff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
xor dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
add edx, edx
mov ecx, dword [ebp - 0xc]
sar ecx, 7
or edx, ecx
and edx, 0xff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
xor eax, 0x63
xor dword [ebp - 8], eax
mov dl, byte [ebp - 8]
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x57db88], dl
mov al, byte [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [edx + 0x57ec88], al
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
jl 0x4108b7
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x57db88]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
add ecx, ecx
test byte [ebp - 8], 0x80
je 0x410996
mov ebx, 0x1b
jmp 0x410998
xor ebx, ebx
xor ecx, ebx
and ecx, 0xff
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
shl edx, 8
xor edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp - 0x10]
shl eax, 0x18
xor edx, eax
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x57dc88], edx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x57dc88]
shl eax, 8
and eax, 0xffffffff
mov edx, dword [ebp - 4]
mov ecx, dword [edx*4 + 0x57dc88]
shr ecx, 0x18
or eax, ecx
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x57e088], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x57e088]
shl ecx, 8
and ecx, 0xffffffff
mov ebx, dword [ebp - 4]
mov eax, dword [ebx*4 + 0x57e088]
shr eax, 0x18
or ecx, eax
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x57e488], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx*4 + 0x57e488]
shl eax, 8
and eax, 0xffffffff
mov edx, dword [ebp - 4]
mov ecx, dword [edx*4 + 0x57e488]
shr ecx, 0x18
or eax, ecx
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x57e888], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0x57ec88]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x410a84
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x810]
add eax, dword [ebp - 0x7d8]
mov ecx, 0xff
cdq
idiv ecx
mov ecx, dword [ebp + edx*4 - 0x410]
jmp 0x410a86
xor ecx, ecx
cmp dword [ebp - 8], 0
je 0x410aad
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x810]
add eax, dword [ebp - 0x7ec]
mov ebx, 0xff
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x410]
jmp 0x410aaf
xor eax, eax
shl eax, 8
xor ecx, eax
cmp dword [ebp - 8], 0
je 0x410adb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x810]
add eax, dword [ebp - 0x7dc]
mov ebx, 0xff
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x410]
jmp 0x410add
xor eax, eax
shl eax, 0x10
xor ecx, eax
cmp dword [ebp - 8], 0
je 0x410b09
mov edx, dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x810]
add eax, dword [ebp - 0x7e4]
mov ebx, 0xff
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x410]
jmp 0x410b0b
xor eax, eax
shl eax, 0x18
xor ecx, eax
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x57ed88], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx*4 + 0x57ed88]
shl eax, 8
and eax, 0xffffffff
mov edx, dword [ebp - 4]
mov ecx, dword [edx*4 + 0x57ed88]
shr ecx, 0x18
or eax, ecx
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x57f188], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x57f188]
shl ecx, 8
and ecx, 0xffffffff
mov ebx, dword [ebp - 4]
mov eax, dword [ebx*4 + 0x57f188]
shr eax, 0x18
or ecx, eax
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x57f588], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx*4 + 0x57f588]
shl eax, 8
and eax, 0xffffffff
mov edx, dword [ebp - 4]
mov ecx, dword [edx*4 + 0x57f588]
shr ecx, 0x18
or eax, ecx
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x57f988], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
jl 0x410976
pop ebx
mov esp, ebp
pop ebp
ret